diff options
| author | jtc <jtc@NetBSD.org> | 1993-09-24 18:13:15 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1993-09-24 18:13:15 +0000 |
| commit | aacd6cfa4e43e70c42cc4fe755cd82c981152ab7 (patch) | |
| tree | 1b78336c776db0b2d7da3f77878b604f268f20ea /include/limits.h | |
| parent | d7607730b7e5de4ba15705d77ea68497ea3887ea (diff) | |
Do not #define the _POSIX_FOO constants if compliling in strict ANSI mode.
Define the _POSIX_SSIZE_MAX, _POSIX_STREAM_MAX, and _POSIX_TZNAME_MAX constants
added in 1003.1-90.
Diffstat (limited to 'include/limits.h')
| -rw-r--r-- | include/limits.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/limits.h b/include/limits.h index 142a09c1ab1..485a668e8ea 100644 --- a/include/limits.h +++ b/include/limits.h @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * from: @(#)limits.h 5.9 (Berkeley) 4/3/91 - * $Id: limits.h,v 1.3 1993/09/21 21:55:40 jtc Exp $ + * $Id: limits.h,v 1.4 1993/09/24 18:13:15 jtc Exp $ */ #ifndef _LIMITS_H_ #define _LIMITS_H_ +#if !defined(_ANSI_SOURCE) #define _POSIX_ARG_MAX 4096 #define _POSIX_CHILD_MAX 6 #define _POSIX_LINK_MAX 8 @@ -46,7 +47,10 @@ #define _POSIX_NGROUPS_MAX 0 #define _POSIX_OPEN_MAX 16 #define _POSIX_PATH_MAX 255 -#define _POSIX_PIPE_BUF 512 +#define _POSIX_PIPE_BUF 512 +#define _POSIX_SSIZE_MAX 32727 +#define _POSIX_STREAM_MAX 8 +#define _POSIX_TZNAME_MAX 3 #define _POSIX2_BC_BASE_MAX 99 #define _POSIX2_BC_DIM_MAX 2048 @@ -57,6 +61,7 @@ #define _POSIX2_LINE_MAX 2048 #define _POSIX2_RE_DUP_MAX 255 #define _POSIX2_VERSION 199209 +#endif #include <machine/limits.h> #include <sys/syslimits.h> |
