]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/ux_exception.h
xnu-344.tar.gz
[apple/xnu.git] / bsd / sys / ux_exception.h
1 /*
2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * Mach Operating System
24 * Copyright (c) 1989 Carnegie-Mellon University
25 * Copyright (c) 1988 Carnegie-Mellon University
26 * Copyright (c) 1987 Carnegie-Mellon University
27 * All rights reserved. The CMU software License Agreement specifies
28 * the terms and conditions for use and redistribution.
29 */
30
31 /*
32 * Codes for Unix software exceptions under EXC_SOFTWARE.
33 */
34
35 #ifndef _SYS_UX_EXCEPTION_H_
36 #define _SYS_UX_EXCEPTION_H_
37
38 #include <sys/appleapiopts.h>
39
40 #ifdef __APPLE_API_UNSTABLE
41
42 #define EXC_UNIX_BAD_SYSCALL 0x10000 /* SIGSYS */
43
44 #define EXC_UNIX_BAD_PIPE 0x10001 /* SIGPIPE */
45
46 #define EXC_UNIX_ABORT 0x10002 /* SIGABRT */
47
48 #endif /* __APPLE_API_UNSTABLE */
49
50 #ifdef KERNEL
51 #ifdef __APPLE_API_PRIVATE
52 /*
53 * Kernel data structures for Unix exception handler.
54 */
55
56 #include <mach/port.h>
57
58 extern mach_port_name_t ux_exception_port;
59
60 #endif /* __APPLE_API_PRIVATE */
61 #endif /* KERNEL */
62
63 #endif /* _SYS_UX_EXCEPTION_H_ */