aboutsummaryrefslogtreecommitdiffstats
path: root/include/limits.h
diff options
context:
space:
mode:
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>