]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
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 | |
39236c6e | 68 | #include <sys/_types/_sigaltstack.h> |
2d21ac55 A |
69 | #endif /* __need_struct_sigaltstack */ |
70 | ||
71 | #ifdef __need_struct_timespec | |
72 | #undef __need_struct_timespec | |
39236c6e | 73 | #include <sys/_types/_timespec.h> |
2d21ac55 A |
74 | #endif /* __need_struct_timespec */ |
75 | ||
76 | #ifdef __need_struct_timeval | |
77 | #undef __need_struct_timeval | |
39236c6e | 78 | #include <sys/_types/_timeval.h> |
2d21ac55 A |
79 | #endif /* __need_struct_timeval */ |
80 | ||
81 | #ifdef __need_struct_timeval32 | |
82 | #undef __need_struct_timeval32 | |
39236c6e | 83 | #include <sys/_types/_timeval32.h> |
2d21ac55 A |
84 | #endif /* __need_struct_timeval32 */ |
85 | ||
86 | #ifdef __need_struct_ucontext | |
87 | #undef __need_struct_ucontext | |
39236c6e | 88 | #include <sys/_types/_ucontext.h> |
2d21ac55 A |
89 | #endif /* __need_struct_ucontext */ |
90 | ||
91 | #ifdef __need_struct_ucontext64 | |
92 | #undef __need_struct_ucontext64 | |
39236c6e | 93 | #include <sys/_types/_ucontext64.h> |
2d21ac55 A |
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 | |
39236c6e | 103 | #include <sys/_types/_user_timespec.h> |
2d21ac55 | 104 | #endif /* __need_struct_user_timespec */ |
b0d623f7 A |
105 | |
106 | #ifdef __need_struct_user64_timespec | |
107 | #undef __need_struct_user64_timespec | |
39236c6e | 108 | #include <sys/_types/_user64_timespec.h> |
b0d623f7 A |
109 | #endif /* __need_struct_user64_timespec */ |
110 | ||
111 | #ifdef __need_struct_user32_timespec | |
112 | #undef __need_struct_user32_timespec | |
39236c6e | 113 | #include <sys/_types/_user32_timespec.h> |
b0d623f7 A |
114 | #endif /* __need_struct_user32_timespec */ |
115 | ||
116 | #ifdef __need_struct_user_timeval | |
117 | #undef __need_struct_user_timeval | |
39236c6e | 118 | #include <sys/_types/_user_timeval.h> |
b0d623f7 A |
119 | #endif /* __need_struct_user_timeval */ |
120 | ||
121 | #ifdef __need_struct_user64_timeval | |
122 | #undef __need_struct_user64_timeval | |
39236c6e | 123 | #include <sys/_types/_user64_timeval.h> |
b0d623f7 A |
124 | #endif /* __need_struct_user64_timeval */ |
125 | ||
126 | #ifdef __need_struct_user32_timeval | |
127 | #undef __need_struct_user32_timeval | |
39236c6e | 128 | #include <sys/_types/_user32_timeval.h> |
b0d623f7 A |
129 | #endif /* __need_struct_user32_timeval */ |
130 | ||
131 | #ifdef __need_struct_user64_itimerval | |
132 | #undef __need_struct_user64_itimerval | |
39236c6e | 133 | #include <sys/_types/_user64_itimerval.h> |
b0d623f7 A |
134 | #endif /* __need_struct_user64_itimerval */ |
135 | ||
136 | #ifdef __need_struct_user32_itimerval | |
137 | #undef __need_struct_user32_itimerval | |
39236c6e | 138 | #include <sys/_types/_user32_itimerval.h> |
b0d623f7 A |
139 | #endif /* __need_struct_user32_itimerval */ |
140 | ||
2d21ac55 A |
141 | #endif /* KERNEL */ |
142 | ||
143 | #ifdef __need_fd_set | |
144 | #undef __need_fd_set | |
39236c6e | 145 | #include <sys/_types/_fd_def.h> |
2d21ac55 A |
146 | #endif /* __need_fd_set */ |
147 | ||
148 | #ifdef __need_stack_t | |
149 | #undef __need_stack_t | |
2d21ac55 A |
150 | #endif /* __need_stack_t */ |
151 | ||
152 | #ifdef __need_ucontext_t | |
153 | #undef __need_ucontext_t | |
2d21ac55 A |
154 | #endif /* __need_ucontext_t */ |
155 | ||
156 | #ifdef __need_ucontext64_t | |
157 | #undef __need_ucontext64_t | |
2d21ac55 | 158 | #endif /* __need_ucontext64_t */ |