Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/mips/gen/longjmp.c
Show All 26 Lines | |||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
jhb: I actually think this entire file can be removed. | |||||
#include "namespace.h" | #include "namespace.h" | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <ucontext.h> | #include <ucontext.h> | ||||
#include <signal.h> | #include <signal.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#define _WANT_MIPS_REGNUM | |||||
#include <machine/regnum.h> | #include <machine/regnum.h> | ||||
void | void | ||||
__longjmp14(jmp_buf env, int val) | __longjmp14(jmp_buf env, int val) | ||||
{ | { | ||||
struct sigcontext *sc = (void *)env; | struct sigcontext *sc = (void *)env; | ||||
ucontext_t uc; | ucontext_t uc; | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
I actually think this entire file can be removed.