* nis/nss-default.c (init): Rewrite parse to get the variables
[glibc.git] / bits / environments.h
blob4617dc45f24fbdabad70d5dd33ef5c26fe9c9b45
1 /* Copyright (C) 1999, 2001, 2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
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
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _UNISTD_H
20 # error "Never include this file directly. Use <unistd.h> instead"
21 #endif
23 #include <bits/wordsize.h>
25 /* This header should define the following symbols under the described
26 situations. A value `1' means that the model is always supported,
27 `-1' means it is never supported. Undefined means it cannot be
28 statically decided.
30 _POSIX_V6_ILP32_OFF32 32bit int, long, pointers, and off_t type
31 _POSIX_V6_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
33 _POSIX_V6_LP64_OFF32 64bit long and pointers and 32bit off_t type
34 _POSIX_V6_LPBIG_OFFBIG 64bit long and pointers and large off_t type
36 The macros _XBS5_ILP32_OFF32, _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and
37 _XBS5_LPBIG_OFFBIG were used in previous versions of the Unix standard
38 and are available only for compatibility.
41 #if __WORDSIZE == 64
43 /* We can never provide environments with 32-bit wide pointers. */
44 # define _POSIX_V6_ILP32_OFF32 -1
45 # define _POSIX_V6_ILP32_OFFBIG -1
46 # define _XBS5_ILP32_OFF32 -1
47 # define _XBS5_ILP32_OFFBIG -1
48 /* We also have no use (for now) for an environment with bigger pointers
49 and offsets. */
50 # define _POSIX_V6_LPBIG_OFFBIG -1
51 # define _XBS5_LPBIG_OFFBIG -1
53 /* By default we have 64-bit wide `long int', pointers and `off_t'. */
54 # define _POSIX_V6_LP64_OFF64 1
55 # define _XBS5_LP64_OFF64 1
57 #else /* __WORDSIZE == 32 */
59 /* By default we have 32-bit wide `int', `long int', pointers and `off_t'
60 and all platforms support LFS. */
61 # define _POSIX_V6_ILP32_OFF32 1
62 # define _POSIX_V6_ILP32_OFFBIG 1
63 # define _XBS5_ILP32_OFF32 1
64 # define _XBS5_ILP32_OFFBIG 1
66 /* We optionally provide an environment with the above size but an 64-bit
67 side `off_t'. Therefore we don't define _XBS5_ILP32_OFFBIG. */
69 /* We can never provide environments with 64-bit wide pointers. */
70 # define _POSIX_V6_LP64_OFF64 -1
71 # define _POSIX_V6_LPBIG_OFFBIG -1
72 # define _XBS5_LP64_OFF64 -1
73 # define _XBS5_LPBIG_OFFBIG -1
75 /* CFLAGS. */
76 #define __ILP32_OFFBIG_CFLAGS "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
78 #endif /* __WORDSIZE == 32 */