|
Packit Service |
82fcde |
/* Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifndef _UNISTD_H
|
|
Packit Service |
82fcde |
# error "Never include this file directly. Use <unistd.h> instead"
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <bits/wordsize.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* This header should define the following symbols under the described
|
|
Packit Service |
82fcde |
situations. A value `1' means that the model is always supported,
|
|
Packit Service |
82fcde |
`-1' means it is never supported. Undefined means it cannot be
|
|
Packit Service |
82fcde |
statically decided.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
_POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
|
|
Packit Service |
82fcde |
_POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
_POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
|
|
Packit Service |
82fcde |
_POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
|
|
Packit Service |
82fcde |
_POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
|
|
Packit Service |
82fcde |
_XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
|
|
Packit Service |
82fcde |
used in previous versions of the Unix standard and are available
|
|
Packit Service |
82fcde |
only for compatibility.
|
|
Packit Service |
82fcde |
*/
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#if __WORDSIZE == 64
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* We can never provide environments with 32-bit wide pointers. */
|
|
Packit Service |
82fcde |
# define _POSIX_V7_ILP32_OFF32 -1
|
|
Packit Service |
82fcde |
# define _POSIX_V7_ILP32_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_ILP32_OFF32 -1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_ILP32_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _XBS5_ILP32_OFF32 -1
|
|
Packit Service |
82fcde |
# define _XBS5_ILP32_OFFBIG -1
|
|
Packit Service |
82fcde |
/* We also have no use (for now) for an environment with bigger pointers
|
|
Packit Service |
82fcde |
and offsets. */
|
|
Packit Service |
82fcde |
# define _POSIX_V7_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _XBS5_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* By default we have 64-bit wide `long int', pointers and `off_t'. */
|
|
Packit Service |
82fcde |
# define _POSIX_V7_LP64_OFF64 1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_LP64_OFF64 1
|
|
Packit Service |
82fcde |
# define _XBS5_LP64_OFF64 1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#else /* __WORDSIZE == 32 */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* By default we have 32-bit wide `int', `long int', pointers and `off_t'
|
|
Packit Service |
82fcde |
and all platforms support LFS. */
|
|
Packit Service |
82fcde |
# define _POSIX_V7_ILP32_OFF32 1
|
|
Packit Service |
82fcde |
# define _POSIX_V7_ILP32_OFFBIG 1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_ILP32_OFF32 1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_ILP32_OFFBIG 1
|
|
Packit Service |
82fcde |
# define _XBS5_ILP32_OFF32 1
|
|
Packit Service |
82fcde |
# define _XBS5_ILP32_OFFBIG 1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* We optionally provide an environment with the above size but an 64-bit
|
|
Packit Service |
82fcde |
side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* We can never provide environments with 64-bit wide pointers. */
|
|
Packit Service |
82fcde |
# define _POSIX_V7_LP64_OFF64 -1
|
|
Packit Service |
82fcde |
# define _POSIX_V7_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_LP64_OFF64 -1
|
|
Packit Service |
82fcde |
# define _POSIX_V6_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
# define _XBS5_LP64_OFF64 -1
|
|
Packit Service |
82fcde |
# define _XBS5_LPBIG_OFFBIG -1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* CFLAGS. */
|
|
Packit Service |
82fcde |
#define __ILP32_OFFBIG_CFLAGS "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#endif /* __WORDSIZE == 32 */
|