]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/ux_exception.h
xnu-344.26.tar.gz
[apple/xnu.git] / bsd / sys / ux_exception.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 *
de355530
A
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.
1c79356b 11 *
de355530
A
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
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
de355530
A
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.
1c79356b
A
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 */
1c79356b
A
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
9bccf70c
A
38#include <sys/appleapiopts.h>
39
40#ifdef __APPLE_API_UNSTABLE
41
1c79356b
A
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
9bccf70c
A
48#endif /* __APPLE_API_UNSTABLE */
49
1c79356b 50#ifdef KERNEL
9bccf70c 51#ifdef __APPLE_API_PRIVATE
1c79356b
A
52/*
53 * Kernel data structures for Unix exception handler.
54 */
55
56#include <mach/port.h>
57
58extern mach_port_name_t ux_exception_port;
59
9bccf70c 60#endif /* __APPLE_API_PRIVATE */
1c79356b
A
61#endif /* KERNEL */
62
63#endif /* _SYS_UX_EXCEPTION_H_ */