]> git.saurik.com Git - apple/xnu.git/blame - bsd/i386/signal.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / bsd / i386 / signal.h
CommitLineData
1c79356b 1/*
9bccf70c 2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
ff6e181a
A
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
1c79356b 12 *
ff6e181a
A
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
ff6e181a
A
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
1c79356b
A
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/*
24 * Copyright (c) 1992 NeXT Computer, Inc.
25 *
1c79356b
A
26 */
27
28#ifndef _i386_SIGNAL_
29#define _i386_SIGNAL_ 1
30
91447636
A
31#ifndef _ANSI_SOURCE
32typedef int sig_atomic_t;
33
34#ifndef _POSIX_C_SOURCE
35
9bccf70c
A
36#include <sys/appleapiopts.h>
37
38#ifdef __APPLE_API_OBSOLETE
1c79356b
A
39
40/*
41 * Information pushed on stack when a signal is delivered.
42 * This is used by the kernel to restore state following
43 * execution of the signal handler. It is also made available
44 * to the handler to allow it to properly restore state if
45 * a non-standard exit is performed.
46 */
47struct sigcontext {
48 int sc_onstack; /* sigstack state to restore */
49 int sc_mask; /* signal mask to restore */
50 unsigned int sc_eax;
51 unsigned int sc_ebx;
52 unsigned int sc_ecx;
53 unsigned int sc_edx;
54 unsigned int sc_edi;
55 unsigned int sc_esi;
56 unsigned int sc_ebp;
57 unsigned int sc_esp;
58 unsigned int sc_ss;
59 unsigned int sc_eflags;
60 unsigned int sc_eip;
61 unsigned int sc_cs;
62 unsigned int sc_ds;
63 unsigned int sc_es;
64 unsigned int sc_fs;
65 unsigned int sc_gs;
66};
67
9bccf70c 68#endif /* __APPLE_API_OBSOLETE */
91447636
A
69#endif /* ! _POSIX_C_SOURCE */
70#endif /* ! _ANSI_SOURCE */
9bccf70c 71
1c79356b 72#endif /* _i386_SIGNAL_ */
9bccf70c 73