]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/_structs.h
xnu-2422.1.72.tar.gz
[apple/xnu.git] / bsd / sys / _structs.h
1 /*
2 * Copyright (c) 2004-2006 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 #include <sys/cdefs.h>
30 #include <sys/_types.h>
31
32 #ifdef __need_ucontext_t
33 #ifndef __need_struct_ucontext
34 #define __need_struct_ucontext
35 #endif /* __need_struct_ucontext */
36 #endif /* __need_ucontext_t */
37
38 #ifdef __need_ucontext64_t
39 #ifndef __need_struct_ucontext64
40 #define __need_struct_ucontext64
41 #endif /* __need_struct_ucontext64 */
42 #endif /* __need_ucontext64_t */
43
44 #ifdef __need_struct_ucontext
45 #ifndef __need_struct_mcontext
46 #define __need_struct_mcontext
47 #endif /* __need_struct_mcontext */
48 #endif /* __need_struct_ucontext */
49
50 #ifdef __need_struct_ucontext64
51 #ifndef __need_struct_mcontext64
52 #define __need_struct_mcontext64
53 #endif /* __need_struct_mcontext64 */
54 #endif /* __need_struct_ucontext64 */
55
56 #if defined(__need_struct_mcontext) || defined(__need_struct_mcontext64)
57 #include <machine/_structs.h>
58 #endif /* __need_struct_mcontext || __need_struct_mcontext64 */
59
60 #if defined(__need_stack_t) || defined(__need_struct_ucontext) || defined(__need_struct_ucontext64)
61 #ifndef __need_struct_sigaltstack
62 #define __need_struct_sigaltstack
63 #endif /* __need_struct_sigaltstack */
64 #endif /* __need_stack_t || __need_struct_ucontext || __need_struct_ucontext64 */
65
66 #ifdef __need_struct_sigaltstack
67 #undef __need_struct_sigaltstack
68 #include <sys/_types/_sigaltstack.h>
69 #endif /* __need_struct_sigaltstack */
70
71 #ifdef __need_struct_timespec
72 #undef __need_struct_timespec
73 #include <sys/_types/_timespec.h>
74 #endif /* __need_struct_timespec */
75
76 #ifdef __need_struct_timeval
77 #undef __need_struct_timeval
78 #include <sys/_types/_timeval.h>
79 #endif /* __need_struct_timeval */
80
81 #ifdef __need_struct_timeval32
82 #undef __need_struct_timeval32
83 #include <sys/_types/_timeval32.h>
84 #endif /* __need_struct_timeval32 */
85
86 #ifdef __need_struct_ucontext
87 #undef __need_struct_ucontext
88 #include <sys/_types/_ucontext.h>
89 #endif /* __need_struct_ucontext */
90
91 #ifdef __need_struct_ucontext64
92 #undef __need_struct_ucontext64
93 #include <sys/_types/_ucontext64.h>
94 #endif /* __need_struct_ucontext64 */
95
96 #ifdef KERNEL
97 /* LP64 version of struct timespec. time_t is a long and must grow when
98 * we're dealing with a 64-bit process.
99 * WARNING - keep in sync with struct timespec
100 */
101 #ifdef __need_struct_user_timespec
102 #undef __need_struct_user_timespec
103 #include <sys/_types/_user_timespec.h>
104 #endif /* __need_struct_user_timespec */
105
106 #ifdef __need_struct_user64_timespec
107 #undef __need_struct_user64_timespec
108 #include <sys/_types/_user64_timespec.h>
109 #endif /* __need_struct_user64_timespec */
110
111 #ifdef __need_struct_user32_timespec
112 #undef __need_struct_user32_timespec
113 #include <sys/_types/_user32_timespec.h>
114 #endif /* __need_struct_user32_timespec */
115
116 #ifdef __need_struct_user_timeval
117 #undef __need_struct_user_timeval
118 #include <sys/_types/_user_timeval.h>
119 #endif /* __need_struct_user_timeval */
120
121 #ifdef __need_struct_user64_timeval
122 #undef __need_struct_user64_timeval
123 #include <sys/_types/_user64_timeval.h>
124 #endif /* __need_struct_user64_timeval */
125
126 #ifdef __need_struct_user32_timeval
127 #undef __need_struct_user32_timeval
128 #include <sys/_types/_user32_timeval.h>
129 #endif /* __need_struct_user32_timeval */
130
131 #ifdef __need_struct_user64_itimerval
132 #undef __need_struct_user64_itimerval
133 #include <sys/_types/_user64_itimerval.h>
134 #endif /* __need_struct_user64_itimerval */
135
136 #ifdef __need_struct_user32_itimerval
137 #undef __need_struct_user32_itimerval
138 #include <sys/_types/_user32_itimerval.h>
139 #endif /* __need_struct_user32_itimerval */
140
141 #endif /* KERNEL */
142
143 #ifdef __need_fd_set
144 #undef __need_fd_set
145 #include <sys/_types/_fd_def.h>
146 #endif /* __need_fd_set */
147
148 #ifdef __need_stack_t
149 #undef __need_stack_t
150 #endif /* __need_stack_t */
151
152 #ifdef __need_ucontext_t
153 #undef __need_ucontext_t
154 #endif /* __need_ucontext_t */
155
156 #ifdef __need_ucontext64_t
157 #undef __need_ucontext64_t
158 #endif /* __need_ucontext64_t */