]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/alert.h
xnu-792.12.6.tar.gz
[apple/xnu.git] / osfmk / mach / alert.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
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. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * @OSF_FREE_COPYRIGHT@
32 */
33 /*
34 * HISTORY
35 *
36 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
37 * Import of Mac OS X kernel (~semeria)
38 *
39 * Revision 1.1.1.1 1998/03/07 02:25:45 wsanchez
40 * Import of OSF Mach kernel (~mburg)
41 *
42 * Revision 1.1.5.2 1995/01/18 18:35:06 ezf
43 * updated Utah CR notice
44 * [1995/01/18 18:30:38 ezf]
45 *
46 * Revision 1.1.5.1 1994/09/23 02:33:53 ezf
47 * change marker to not FREE
48 * [1994/09/22 21:38:56 ezf]
49 *
50 * Revision 1.1.2.1 1994/01/12 17:56:03 dwm
51 * Coloc: initial restructuring to follow Utah model.
52 * Alert bit definitions
53 * [1994/01/12 17:30:19 dwm]
54 *
55 * $EndLog$
56 */
57 /*
58 * Copyright (c) 1993 The University of Utah and
59 * the Computer Systems Laboratory (CSL). All rights reserved.
60 *
61 * Permission to use, copy, modify and distribute this software and its
62 * documentation is hereby granted, provided that both the copyright
63 * notice and this permission notice appear in all copies of the
64 * software, derivative works or modified versions, and any portions
65 * thereof, and that both notices appear in supporting documentation.
66 *
67 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
68 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
69 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
70 *
71 * CSL requests users of this software to return to csl-dist@cs.utah.edu any
72 * improvements that they make and grant CSL redistribution rights.
73 *
74 */
75
76 #ifndef _MACH_ALERT_H_
77 #define _MACH_ALERT_H_
78
79 #define ALERT_BITS 32 /* Minimum; more may actually be available */
80
81 /* Request to abort _all_ operations */
82 #define ALERT_ABORT_STRONG 0x00000001
83
84 /* Request to abort restartable operations */
85 #define ALERT_ABORT_SAFE 0x00000002
86
87 /* User-defined alert bits */
88 #define ALERT_USER 0xffff0000
89
90 #endif /* _MACH_ALERT_H_ */