signalcontext.c (103769) | signalcontext.c (111010) |
---|---|
1/*- 2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libc/i386/gen/signalcontext.c 103769 2002-09-21 23:54:32Z mini $ | 26 * $FreeBSD: head/lib/libc/i386/gen/signalcontext.c 111010 2003-02-16 17:29:11Z nectar $ |
27 */ 28 29#include <sys/cdefs.h> 30__FBSDID("$FreeBSD"); 31 32#include <sys/param.h> 33#include <sys/ucontext.h> 34#include <machine/psl.h> 35#include <machine/sigframe.h> 36#include <signal.h> | 27 */ 28 29#include <sys/cdefs.h> 30__FBSDID("$FreeBSD"); 31 32#include <sys/param.h> 33#include <sys/ucontext.h> 34#include <machine/psl.h> 35#include <machine/sigframe.h> 36#include <signal.h> |
37#include <strings.h> |
|
37 38__weak_reference(__signalcontext, signalcontext); 39 40extern void _ctx_start(ucontext_t *, int argc, ...); 41 42int 43__signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) 44{ --- 35 unchanged lines hidden --- | 38 39__weak_reference(__signalcontext, signalcontext); 40 41extern void _ctx_start(ucontext_t *, int argc, ...); 42 43int 44__signalcontext(ucontext_t *ucp, int sig, __sighandler_t *func) 45{ --- 35 unchanged lines hidden --- |