aboutsummaryrefslogtreecommitdiffstats
path: root/include/limits.h
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-01-16 07:57:56 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-01-16 07:57:56 +0000
commiteca6bf6ad9e11fba24bcf9b8f03182457c02629c (patch)
tree26eed96257af6b9c077eb44cf6cfe043a6c87ab5 /include/limits.h
parent827d623ef859a5b29e2d800ef03f5c5f3739b7b2 (diff)
downloadsrc-eca6bf6ad9e11fba24bcf9b8f03182457c02629c.tar.gz
src-eca6bf6ad9e11fba24bcf9b8f03182457c02629c.zip
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
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h13
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>