aboutsummaryrefslogtreecommitdiffstats
path: root/include/limits.h
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2011-03-04 19:28:27 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2011-03-04 19:28:27 +0000
commite39ab7e0889018a11877fa873a34d279ec88f56d (patch)
tree5cee0676b65f3b30aa24ed416a36c70cc126431e /include/limits.h
parent62089c28436e91be2b1bfc6065ac6d9ee89821bf (diff)
downloadsrc-e39ab7e0889018a11877fa873a34d279ec88f56d.tar.gz
src-e39ab7e0889018a11877fa873a34d279ec88f56d.zip
POSIX.1-2008 moved some constants from the XSI option to the Base.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=219271
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/limits.h b/include/limits.h
index b30c5048d323..7a5899784f09 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -116,18 +116,21 @@
#define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX
#endif
+#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
+#define NL_ARGMAX 99 /* max # of position args for printf */
+#define NL_MSGMAX 32767
+#define NL_SETMAX 255
+#define NL_TEXTMAX 2048
+#endif
+
#if __XSI_VISIBLE
#define _XOPEN_IOV_MAX 16
#define _XOPEN_NAME_MAX 255
#define _XOPEN_PATH_MAX 1024
#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */
-#define NL_ARGMAX 99 /* max # of position args for printf */
#define NL_LANGMAX 31 /* max LANG name length */
-#define NL_MSGMAX 32767
#define NL_NMAX 1
-#define NL_SETMAX 255
-#define NL_TEXTMAX 2048
#endif
#define MB_LEN_MAX 6 /* 31-bit UTF-8 */