OLD | NEW |
---|---|
1 /* Copyright (C) 1991,1992,1993,1995-2006,2007 Free Software Foundation, Inc. | 1 /* Copyright (C) 1991,1992,1993,1995-2006,2007 Free Software Foundation, Inc. |
2 This file is part of the GNU C Library. | 2 This file is part of the GNU C Library. |
3 | 3 |
4 The GNU C Library is free software; you can redistribute it and/or | 4 The GNU C Library is free software; you can redistribute it and/or |
5 modify it under the terms of the GNU Lesser General Public | 5 modify it under the terms of the GNU Lesser General Public |
6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
7 version 2.1 of the License, or (at your option) any later version. | 7 version 2.1 of the License, or (at your option) any later version. |
8 | 8 |
9 The GNU C Library is distributed in the hope that it will be useful, | 9 The GNU C Library is distributed in the hope that it will be useful, |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 #undef __USE_FILE_OFFSET64 | 105 #undef __USE_FILE_OFFSET64 |
106 #undef __USE_BSD | 106 #undef __USE_BSD |
107 #undef __USE_SVID | 107 #undef __USE_SVID |
108 #undef __USE_MISC | 108 #undef __USE_MISC |
109 #undef __USE_ATFILE | 109 #undef __USE_ATFILE |
110 #undef __USE_GNU | 110 #undef __USE_GNU |
111 #undef __USE_REENTRANT | 111 #undef __USE_REENTRANT |
112 #undef __USE_FORTIFY_LEVEL | 112 #undef __USE_FORTIFY_LEVEL |
113 #undef __FAVOR_BSD | 113 #undef __FAVOR_BSD |
114 #undef __KERNEL_STRICT_NAMES | 114 #undef __KERNEL_STRICT_NAMES |
115 | 115 |
eaeltsin
2011/01/13 10:43:45
Please add a comment on what you are doing here.
halyavin
2011/01/13 11:15:21
Done.
| |
116 #ifdef __native_client__ | |
117 # ifndef _LIBC | |
118 # ifndef _FILE_OFFSET_BITS | |
119 # define _FILE_OFFSET_BITS 64 | |
120 # endif | |
121 # if _FILE_OFFSET_BITS != 64 | |
eaeltsin
2011/01/13 10:43:45
elif instead endif+if?
halyavin
2011/01/13 11:15:21
Done.
| |
122 # error "native client requires _FILE_OFFSET_BITS being equal to 64" | |
eaeltsin
2011/01/13 10:43:45
_FILE_OFFSET_BITS == 64
halyavin
2011/01/13 11:15:21
Done.
| |
123 # endif | |
124 # endif | |
125 #endif | |
126 | |
116 /* Suppress kernel-name space pollution unless user expressedly asks | 127 /* Suppress kernel-name space pollution unless user expressedly asks |
117 for it. */ | 128 for it. */ |
118 #ifndef _LOOSE_KERNEL_NAMES | 129 #ifndef _LOOSE_KERNEL_NAMES |
119 # define __KERNEL_STRICT_NAMES | 130 # define __KERNEL_STRICT_NAMES |
120 #endif | 131 #endif |
121 | 132 |
122 /* Always use ISO C things. */ | 133 /* Always use ISO C things. */ |
123 #define __USE_ANSI 1 | 134 #define __USE_ANSI 1 |
124 | 135 |
125 /* Convenience macros to test the versions of glibc and gcc. | 136 /* Convenience macros to test the versions of glibc and gcc. |
(...skipping 24 matching lines...) Expand all Loading... | |
150 # undef _ISOC99_SOURCE | 161 # undef _ISOC99_SOURCE |
151 # define _ISOC99_SOURCE 1 | 162 # define _ISOC99_SOURCE 1 |
152 # undef _POSIX_SOURCE | 163 # undef _POSIX_SOURCE |
153 # define _POSIX_SOURCE 1 | 164 # define _POSIX_SOURCE 1 |
154 # undef _POSIX_C_SOURCE | 165 # undef _POSIX_C_SOURCE |
155 # define _POSIX_C_SOURCE 200112L | 166 # define _POSIX_C_SOURCE 200112L |
156 # undef _XOPEN_SOURCE | 167 # undef _XOPEN_SOURCE |
157 # define _XOPEN_SOURCE 600 | 168 # define _XOPEN_SOURCE 600 |
158 # undef _XOPEN_SOURCE_EXTENDED | 169 # undef _XOPEN_SOURCE_EXTENDED |
159 # define _XOPEN_SOURCE_EXTENDED 1 | 170 # define _XOPEN_SOURCE_EXTENDED 1 |
160 # undef» _LARGEFILE64_SOURCE | 171 # undef _LARGEFILE64_SOURCE |
eaeltsin
2011/01/13 10:43:45
Please avoid spacing only changes.
halyavin
2011/01/13 11:15:21
Done.
| |
161 # define _LARGEFILE64_SOURCE 1 | 172 # define _LARGEFILE64_SOURCE 1 |
162 # undef _BSD_SOURCE | 173 # undef _BSD_SOURCE |
163 # define _BSD_SOURCE 1 | 174 # define _BSD_SOURCE 1 |
164 # undef _SVID_SOURCE | 175 # undef _SVID_SOURCE |
165 # define _SVID_SOURCE 1 | 176 # define _SVID_SOURCE 1 |
166 # undef _ATFILE_SOURCE | 177 # undef _ATFILE_SOURCE |
167 # define _ATFILE_SOURCE 1 | 178 # define _ATFILE_SOURCE 1 |
168 #endif | 179 #endif |
169 | 180 |
170 /* If nothing (other than _GNU_SOURCE) is defined, | 181 /* If nothing (other than _GNU_SOURCE) is defined, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 # define __USE_XOPEN_EXTENDED 1 | 254 # define __USE_XOPEN_EXTENDED 1 |
244 # endif | 255 # endif |
245 # endif | 256 # endif |
246 #endif | 257 #endif |
247 | 258 |
248 #ifdef _LARGEFILE_SOURCE | 259 #ifdef _LARGEFILE_SOURCE |
249 # define __USE_LARGEFILE 1 | 260 # define __USE_LARGEFILE 1 |
250 #endif | 261 #endif |
251 | 262 |
252 #ifdef _LARGEFILE64_SOURCE | 263 #ifdef _LARGEFILE64_SOURCE |
253 # define __USE_LARGEFILE64» 1 | 264 /* native client applications shouldn't use functions with 64 suffix |
265 unfortunately we can't make glibc itself live without them */ | |
eaeltsin
2011/01/13 10:43:45
Please align this comment, add punctuation and cap
halyavin
2011/01/13 11:15:21
Done.
| |
266 # if !defined __native_client__ || defined _LIBC | |
267 # define __USE_LARGEFILE64» 1 | |
268 # endif | |
254 #endif | 269 #endif |
255 | 270 |
256 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 | 271 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 |
257 # define __USE_FILE_OFFSET64 1 | 272 # define __USE_FILE_OFFSET64 1 |
258 #endif | 273 #endif |
259 | 274 |
260 #if defined _BSD_SOURCE || defined _SVID_SOURCE | 275 #if defined _BSD_SOURCE || defined _SVID_SOURCE |
261 # define __USE_MISC 1 | 276 # define __USE_MISC 1 |
262 #endif | 277 #endif |
263 | 278 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 | 363 |
349 | 364 |
350 /* This is here only because every header file already includes this one. | 365 /* This is here only because every header file already includes this one. |
351 Get the definitions of all the appropriate `__stub_FUNCTION' symbols. | 366 Get the definitions of all the appropriate `__stub_FUNCTION' symbols. |
352 <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub | 367 <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub |
353 that will always return failure (and set errno to ENOSYS). */ | 368 that will always return failure (and set errno to ENOSYS). */ |
354 #include <gnu/stubs.h> | 369 #include <gnu/stubs.h> |
355 | 370 |
356 | 371 |
357 #endif /* features.h */ | 372 #endif /* features.h */ |
OLD | NEW |