2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
21 * @APPLE_LICENSE_HEADER_END@
24 * Mach Operating System
25 * Copyright (c) 1989 Carnegie-Mellon University
26 * Copyright (c) 1988 Carnegie-Mellon University
27 * Copyright (c) 1987 Carnegie-Mellon University
28 * All rights reserved. The CMU software License Agreement specifies
29 * the terms and conditions for use and redistribution.
33 * Codes for Unix software exceptions under EXC_SOFTWARE.
36 #ifndef _SYS_UX_EXCEPTION_H_
37 #define _SYS_UX_EXCEPTION_H_
39 #include <sys/appleapiopts.h>
41 #ifdef __APPLE_API_UNSTABLE
43 #define EXC_UNIX_BAD_SYSCALL 0x10000 /* SIGSYS */
45 #define EXC_UNIX_BAD_PIPE 0x10001 /* SIGPIPE */
47 #define EXC_UNIX_ABORT 0x10002 /* SIGABRT */
49 #endif /* __APPLE_API_UNSTABLE */
52 #ifdef __APPLE_API_PRIVATE
54 * Kernel data structures for Unix exception handler.
57 #include <mach/port.h>
59 extern mach_port_name_t ux_exception_port
;
61 boolean_t
machine_exception(int exception
, int code
, int subcode
,
62 int *unix_signal
, int *unix_code
);
63 void ux_handler_init(void);
65 #endif /* __APPLE_API_PRIVATE */
68 #endif /* _SYS_UX_EXCEPTION_H_ */