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