Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Side by Side Diff: include/features.h

Issue 6026005: Fix __fxstat which is called from fstat. Remove obsolete fstat64. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-glibc.git@master
Patch Set: fixing comments, spacing and some other minor stuff. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
116 /* Set _FILE_OFFSET_BITS to 64 for user programs and produce an error if it
117 set to other value. */
118 #ifdef __native_client__
119 # ifndef _LIBC
120 # ifndef _FILE_OFFSET_BITS
121 # define _FILE_OFFSET_BITS 64
122 # elif _FILE_OFFSET_BITS != 64
123 # error "native client requires _FILE_OFFSET_BITS == 64"
124 # endif
125 # endif
126 #endif
127
116 /* Suppress kernel-name space pollution unless user expressedly asks 128 /* Suppress kernel-name space pollution unless user expressedly asks
117 for it. */ 129 for it. */
118 #ifndef _LOOSE_KERNEL_NAMES 130 #ifndef _LOOSE_KERNEL_NAMES
119 # define __KERNEL_STRICT_NAMES 131 # define __KERNEL_STRICT_NAMES
120 #endif 132 #endif
121 133
122 /* Always use ISO C things. */ 134 /* Always use ISO C things. */
123 #define __USE_ANSI 1 135 #define __USE_ANSI 1
124 136
125 /* Convenience macros to test the versions of glibc and gcc. 137 /* Convenience macros to test the versions of glibc and gcc.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 # define __USE_XOPEN_EXTENDED 1 255 # define __USE_XOPEN_EXTENDED 1
244 # endif 256 # endif
245 # endif 257 # endif
246 #endif 258 #endif
247 259
248 #ifdef _LARGEFILE_SOURCE 260 #ifdef _LARGEFILE_SOURCE
249 # define __USE_LARGEFILE 1 261 # define __USE_LARGEFILE 1
250 #endif 262 #endif
251 263
252 #ifdef _LARGEFILE64_SOURCE 264 #ifdef _LARGEFILE64_SOURCE
253 # define __USE_LARGEFILE64» 1 265 /* Native client applications shouldn't use functions with 64 suffix.
266 Unfortunately, we can't make glibc itself to live without them. */
267 # if !defined __native_client__ || defined _LIBC
268 # define __USE_LARGEFILE64» 1
269 # endif
254 #endif 270 #endif
255 271
256 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 272 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
257 # define __USE_FILE_OFFSET64 1 273 # define __USE_FILE_OFFSET64 1
258 #endif 274 #endif
259 275
260 #if defined _BSD_SOURCE || defined _SVID_SOURCE 276 #if defined _BSD_SOURCE || defined _SVID_SOURCE
261 # define __USE_MISC 1 277 # define __USE_MISC 1
262 #endif 278 #endif
263 279
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 364
349 365
350 /* This is here only because every header file already includes this one. 366 /* This is here only because every header file already includes this one.
351 Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 367 Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
352 <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 368 <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
353 that will always return failure (and set errno to ENOSYS). */ 369 that will always return failure (and set errno to ENOSYS). */
354 #include <gnu/stubs.h> 370 #include <gnu/stubs.h>
355 371
356 372
357 #endif /* features.h */ 373 #endif /* features.h */
OLDNEW
« no previous file with comments | « bits/typesizes.h ('k') | io/sys/stat.h » ('j') | sysdeps/nacl/fxstat.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698