sigframe.h (90776) | sigframe.h (105950) |
---|---|
1/*- 2 * Copyright (c) 1999 Marcel Moolenaar 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1999 Marcel Moolenaar 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/amd64/include/sigframe.h 90776 2002-02-17 17:40:34Z deischen $ | 28 * $FreeBSD: head/sys/amd64/include/sigframe.h 105950 2002-10-25 19:10:58Z peter $ |
29 */ 30 31#ifndef _MACHINE_SIGFRAME_H_ 32#define _MACHINE_SIGFRAME_H_ 33 34/* 35 * Signal frames, arguments passed to application signal handlers. 36 */ 37#ifdef _KERNEL | 29 */ 30 31#ifndef _MACHINE_SIGFRAME_H_ 32#define _MACHINE_SIGFRAME_H_ 33 34/* 35 * Signal frames, arguments passed to application signal handlers. 36 */ 37#ifdef _KERNEL |
38#ifdef COMPAT_43 |
|
38struct osigframe { 39 /* 40 * The first four members may be used by applications. 41 */ 42 43 register_t sf_signum; 44 45 /* --- 19 unchanged lines hidden (view full) --- 65 __osiginfohandler_t *sf_action; 66 __sighandler_t *sf_handler; 67 } sf_ahu; 68 69 /* In the SA_SIGINFO case, sf_arg2 points here. */ 70 osiginfo_t sf_siginfo; 71}; 72#endif | 39struct osigframe { 40 /* 41 * The first four members may be used by applications. 42 */ 43 44 register_t sf_signum; 45 46 /* --- 19 unchanged lines hidden (view full) --- 66 __osiginfohandler_t *sf_action; 67 __sighandler_t *sf_handler; 68 } sf_ahu; 69 70 /* In the SA_SIGINFO case, sf_arg2 points here. */ 71 osiginfo_t sf_siginfo; 72}; 73#endif |
74#ifdef COMPAT_FREEBSD4 75/* FreeBSD 4.x */ 76struct sigframe4 { 77 register_t sf_signum; 78 register_t sf_siginfo; /* code or pointer to sf_si */ 79 register_t sf_ucontext; /* points to sf_uc */ 80 register_t sf_addr; /* undocumented 4th arg */ |
|
73 | 81 |
82 union { 83 __siginfohandler_t *sf_action; 84 __sighandler_t *sf_handler; 85 } sf_ahu; 86 struct ucontext4 sf_uc; /* = *sf_ucontext */ 87 siginfo_t sf_si; /* = *sf_siginfo (SA_SIGINFO case) */ 88}; 89#endif 90#endif 91 |
|
74struct sigframe { 75 /* 76 * The first four members may be used by applications. 77 * 78 * NOTE: The 4th argument is undocumented, ill commented 79 * on and seems to be somewhat BSD "standard". Handlers 80 * installed with sigvec may be using it. 81 */ --- 14 unchanged lines hidden --- | 92struct sigframe { 93 /* 94 * The first four members may be used by applications. 95 * 96 * NOTE: The 4th argument is undocumented, ill commented 97 * on and seems to be somewhat BSD "standard". Handlers 98 * installed with sigvec may be using it. 99 */ --- 14 unchanged lines hidden --- |