svn commit: r219757 - in stable/8: include sys/sys
Jilles Tjoelker
jilles at FreeBSD.org
Fri Mar 18 22:35:48 UTC 2011
Author: jilles
Date: Fri Mar 18 22:35:48 2011
New Revision: 219757
URL: http://svn.freebsd.org/changeset/base/219757
Log:
MFC r219271: POSIX.1-2008 moved some constants from the XSI option to the
Base.
Modified:
stable/8/include/limits.h
stable/8/sys/sys/limits.h
Directory Properties:
stable/8/include/ (props changed)
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/include/limits.h
==============================================================================
--- stable/8/include/limits.h Fri Mar 18 22:33:19 2011 (r219756)
+++ stable/8/include/limits.h Fri Mar 18 22:35:48 2011 (r219757)
@@ -120,18 +120,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 */
Modified: stable/8/sys/sys/limits.h
==============================================================================
--- stable/8/sys/sys/limits.h Fri Mar 18 22:33:19 2011 (r219756)
+++ stable/8/sys/sys/limits.h Fri Mar 18 22:35:48 2011 (r219757)
@@ -88,7 +88,7 @@
#define QUAD_MIN (__QUAD_MIN) /* min value for a quad_t */
#endif
-#if __XSI_VISIBLE
+#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
#define LONG_BIT __LONG_BIT
#define WORD_BIT __WORD_BIT
#endif
More information about the svn-src-all
mailing list