1 /* Copyright (C) 1999, 2001, 2004, 2009 Free Software Foundation, Inc. 2 This file is part of the GNU C Library. 3 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. 8 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. 13 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. */ 18 19 #ifndef _UNISTD_H 20 # error "Never include this file directly. Use <unistd.h> instead" 21 #endif 22 23 /* This header should define the following symbols under the described 24 situations. A value `1' means that the model is always supported, 25 `-1' means it is never supported. Undefined means it cannot be 26 statically decided. 27 28 _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type 29 _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type 30 31 _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type 32 _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type 33 34 The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG, 35 _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32, 36 _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were 37 used in previous versions of the Unix standard and are available 38 only for compatibility. 39 */ 40 41 /* By default we have 32-bit wide `int', `long int', pointers and `off_t' 42 and all platforms support LFS. */ 43 #define _POSIX_V7_ILP32_OFF32 1 44 #define _POSIX_V7_ILP32_OFFBIG 1 45 #define _POSIX_V6_ILP32_OFF32 1 46 #define _POSIX_V6_ILP32_OFFBIG 1 47 #define _XBS5_ILP32_OFF32 1 48 #define _XBS5_ILP32_OFFBIG 1 49 50 /* We optionally provide an environment with the above size but an 64-bit 51 side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */ 52 53 /* Environments with 64-bit wide pointers can be provided, 54 so these macros aren't defined: 55 # undef _POSIX_V7_LP64_OFF64 56 # undef _POSIX_V7_LPBIG_OFFBIG 57 # undef _POSIX_V6_LP64_OFF64 58 # undef _POSIX_V6_LPBIG_OFFBIG 59 # undef _XBS5_LP64_OFF64 60 # undef _XBS5_LPBIG_OFFBIG 61 and sysconf tests for it at runtime. */ 62 63 #define __ILP32_OFF32_CFLAGS "-m32" 64 #define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 65 #define __ILP32_OFF32_LDFLAGS "-m32" 66 #define __ILP32_OFFBIG_LDFLAGS "-m32" 67 #define __LP64_OFF64_CFLAGS "-m64" 68 #define __LP64_OFF64_LDFLAGS "-m64" 69