2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
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.
32 * Codes for Unix software exceptions under EXC_SOFTWARE.
35 #ifndef _SYS_UX_EXCEPTION_H_
36 #define _SYS_UX_EXCEPTION_H_
38 #include <sys/appleapiopts.h>
40 #ifdef __APPLE_API_UNSTABLE
42 #define EXC_UNIX_BAD_SYSCALL 0x10000 /* SIGSYS */
44 #define EXC_UNIX_BAD_PIPE 0x10001 /* SIGPIPE */
46 #define EXC_UNIX_ABORT 0x10002 /* SIGABRT */
48 #endif /* __APPLE_API_UNSTABLE */
51 #ifdef __APPLE_API_PRIVATE
53 * Kernel data structures for Unix exception handler.
56 #include <mach/port.h>
58 extern mach_port_name_t ux_exception_port
;
60 boolean_t
machine_exception(int exception
, int code
, int subcode
,
61 int *unix_signal
, int *unix_code
);
62 void ux_handler_init(void);
64 #endif /* __APPLE_API_PRIVATE */
67 #endif /* _SYS_UX_EXCEPTION_H_ */