diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bits/xopen_lim.h | 6 | ||||
-rw-r--r-- | include/features.h | 11 | ||||
-rw-r--r-- | include/nl_types.h | 1 | ||||
-rw-r--r-- | include/ulimit.h | 1 |
4 files changed, 8 insertions, 11 deletions
diff --git a/include/bits/xopen_lim.h b/include/bits/xopen_lim.h index c8b847fbc2..9f22e44e25 100644 --- a/include/bits/xopen_lim.h +++ b/include/bits/xopen_lim.h @@ -28,9 +28,11 @@ should be used to obtain the actual value. */ #ifndef _XOPEN_LIM_H - #define _XOPEN_LIM_H 1 +#define __need_FOPEN_MAX +#include <bits/stdio_lim.h> + /* We do not provide fixed values for ARG_MAX Maximum length of argument to the `exec' function @@ -57,7 +59,7 @@ #define IOV_MAX _XOPEN_IOV_MAX /* The number of streams that one process can have open at one time. */ -#define STREAM_MAX _POSIX_STREAM_MAX +#define STREAM_MAX FOPEN_MAX /* Maximum number of bytes supported for the name of a time zone. */ #define TZNAME_MAX _POSIX_TZNAME_MAX diff --git a/include/features.h b/include/features.h index b6118a1cf6..141c05031f 100644 --- a/include/features.h +++ b/include/features.h @@ -109,7 +109,6 @@ #if defined _BSD_SOURCE && \ !(defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || \ defined _XOPEN_SOURCE || defined _XOPEN_SOURCE_EXTENDED || \ - defined _LARGEFILE64_SOURCE || defined _FILE_OFFSET_BITS || \ defined _GNU_SOURCE || defined _SVID_SOURCE) # define __FAVOR_BSD 1 #endif @@ -139,7 +138,6 @@ #if (!defined __STRICT_ANSI__ && !defined _ISOC9X_SOURCE && \ !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE && \ !defined _XOPEN_SOURCE && !defined _XOPEN_SOURCE_EXTENDED && \ - !defined _LARGEFILE64_SOURCE && !defined _FILE_OFFSET_BITS && \ !defined _BSD_SOURCE && !defined _SVID_SOURCE) # define _BSD_SOURCE 1 # define _SVID_SOURCE 1 @@ -171,13 +169,8 @@ # define __USE_POSIX2 1 #endif -#ifdef _POSIX_C_SOURCE -# if _POSIX_C_SOURCE >= 199309L -# define __USE_POSIX199309 1 -# endif -# ifndef _XOPEN_SOURCE -# define _XOPEN_SOURCE 500 -# endif +#if (_POSIX_C_SOURCE - 0) >= 199309L +# define __USE_POSIX199309 1 #endif #ifdef _XOPEN_SOURCE diff --git a/include/nl_types.h b/include/nl_types.h new file mode 100644 index 0000000000..71cb425995 --- /dev/null +++ b/include/nl_types.h @@ -0,0 +1 @@ +#include <catgets/nl_types.h> diff --git a/include/ulimit.h b/include/ulimit.h new file mode 100644 index 0000000000..1e6cf9e95a --- /dev/null +++ b/include/ulimit.h @@ -0,0 +1 @@ +#include <resource/ulimit.h> |