diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bits/xopen_lim.h | 32 | ||||
-rw-r--r-- | include/features.h | 7 |
2 files changed, 31 insertions, 8 deletions
diff --git a/include/bits/xopen_lim.h b/include/bits/xopen_lim.h index 9f22e44e25..607c50b678 100644 --- a/include/bits/xopen_lim.h +++ b/include/bits/xopen_lim.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,6 +31,7 @@ #define _XOPEN_LIM_H 1 #define __need_FOPEN_MAX +#define __need_IOV_MAX #include <bits/stdio_lim.h> /* We do not provide fixed values for @@ -44,6 +45,9 @@ CHILD_MAX Maximum number of simultaneous processes per real user ID. + IOV_MAX Maximum number of `iovec' structures that one process has + available for use with `readv' or writev'. + OPEN_MAX Maximum number of files that one process can have open at anyone time. @@ -53,11 +57,6 @@ PASS_MAX Maximum number of significant bytes in a password. */ - -/* Maximum number of `iovec' structures that one process has available - for use with `readv' or writev'. */ -#define IOV_MAX _XOPEN_IOV_MAX - /* The number of streams that one process can have open at one time. */ #define STREAM_MAX FOPEN_MAX @@ -93,4 +92,25 @@ /* Default process priority. */ #define NZERO 20 + +/* Number of bits in a word of type `int'. */ +#if INT_MAX == 32767 +# define WORD_BIT 16 +#else +# if INT_MAX == 2147483647 +# define WORD_BIT 32 +# else +/* Safe assumption. */ +# define WORD_BIT 64 +# endif +#endif + +/* Number of bits in a word of type `long int'. */ +#if INT_MAX == 2147483647 +# define LONG_BIT 32 +#else +/* Safe assumption. */ +# define LONG_BIT 64 +#endif + #endif /* bits/xopen_lim.h */ diff --git a/include/features.h b/include/features.h index f04184ac12..1189e3ea79 100644 --- a/include/features.h +++ b/include/features.h @@ -125,7 +125,7 @@ # undef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 199506L # undef _XOPEN_SOURCE -# define _XOPEN_SOURCE 500 +# define _XOPEN_SOURCE 600 # undef _XOPEN_SOURCE_EXTENDED # define _XOPEN_SOURCE_EXTENDED 1 # undef _LARGEFILE64_SOURCE @@ -182,11 +182,14 @@ #ifdef _XOPEN_SOURCE # define __USE_XOPEN 1 -# if (_XOPEN_SOURCE - 0) == 500 +# if (_XOPEN_SOURCE - 0) >= 500 # define __USE_XOPEN_EXTENDED 1 # define __USE_UNIX98 1 # undef _LARGEFILE_SOURCE # define _LARGEFILE_SOURCE 1 +# if (_XOPEN_SOURCE - 0) == 600 +# define __USE_XOPEN2K 1 +# endif # else # ifdef _XOPEN_SOURCE_EXTENDED # define __USE_XOPEN_EXTENDED 1 |