diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-16 07:57:56 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-16 07:57:56 +0000 |
commit | eca6bf6ad9e11fba24bcf9b8f03182457c02629c (patch) | |
tree | 26eed96257af6b9c077eb44cf6cfe043a6c87ab5 | |
parent | 827d623ef859a5b29e2d800ef03f5c5f3739b7b2 (diff) |
Activate _POSIX_* stuff if !_ANSI_SOURCE
Add _XOPEN constants set, needed mainly to sense position arguments
in printf (vi cares at this moment)
Obtained from: NetBSD
Notes
Notes:
svn path=/head/; revision=21759
-rw-r--r-- | include/limits.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/limits.h b/include/limits.h index 7fe92b2fd402..3f30e3a14c71 100644 --- a/include/limits.h +++ b/include/limits.h @@ -36,6 +36,7 @@ #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 @@ -58,6 +59,18 @@ #define _POSIX2_EXPR_NEST_MAX 32 #define _POSIX2_LINE_MAX 2048 #define _POSIX2_RE_DUP_MAX 255 +#endif /* !_ANSI_SOURCE */ + +#if (!defined(_ANSI_SOURCE)&&!defined(_POSIX_SOURCE)) || defined(_XOPEN_SOURCE) +#define PASS_MAX 128 + +#define NL_ARGMAX 9 +#define NL_LANGMAX 14 +#define NL_MSGMAX 32767 +#define NL_NMAX 1 +#define NL_SETMAX 255 +#define NL_TEXTMAX 255 +#endif #include <machine/limits.h> #include <sys/syslimits.h> |