Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2016 01:32:04 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293800 - stable/10/include
Message-ID:  <201601130132.u0D1W4Qs050594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Wed Jan 13 01:32:04 2016
New Revision: 293800
URL: https://svnweb.freebsd.org/changeset/base/293800

Log:
  MFC r293491:
  - Add the definition of CHARCLASS_NAME_MAX, as per POSIX.1-2001.
  - Avoid namespace pollution and move definitions of _POSIX2_CHARCLASS_NAME_MAX
    and _POSIX2_COLL_WEIGHTS_MAX into the .2001 section.
    With input from bde.
  
  Reviewed by:	bde

Modified:
  stable/10/include/limits.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/include/limits.h
==============================================================================
--- stable/10/include/limits.h	Wed Jan 13 01:16:10 2016	(r293799)
+++ stable/10/include/limits.h	Wed Jan 13 01:32:04 2016	(r293800)
@@ -59,11 +59,13 @@
 #define	_POSIX_TZNAME_MAX	3
 #endif
 
+#if __POSIX_VISIBLE >= 200112
 #define	BC_BASE_MAX		   99	/* max ibase/obase values in bc(1) */
 #define	BC_DIM_MAX		 2048	/* max array elements in bc(1) */
 #define	BC_SCALE_MAX		   99	/* max scale value in bc(1) */
 #define	BC_STRING_MAX		 1000	/* max const string length in bc(1) */
-#define	COLL_WEIGHTS_MAX	    0	/* max weights for order keyword */
+#define	CHARCLASS_NAME_MAX	   14	/* max character class name size */
+#define	COLL_WEIGHTS_MAX	   10	/* max weights for order keyword */
 #define	EXPR_NEST_MAX		   32	/* max expressions nested in expr(1) */
 #define	LINE_MAX		 2048	/* max bytes in an input line */
 #define	RE_DUP_MAX		  255	/* max RE's in interval notation */
@@ -72,11 +74,14 @@
 #define	_POSIX2_BC_DIM_MAX	2048
 #define	_POSIX2_BC_SCALE_MAX	99
 #define	_POSIX2_BC_STRING_MAX	1000
+#define	_POSIX2_CHARCLASS_NAME_MAX 14
+#define	_POSIX2_COLL_WEIGHTS_MAX 2
 #define	_POSIX2_EQUIV_CLASS_MAX	2
 #define	_POSIX2_EXPR_NEST_MAX	32
 #define	_POSIX2_LINE_MAX	2048
 #define	_POSIX2_RE_DUP_MAX	255
 #endif
+#endif
 
 #if __POSIX_VISIBLE >= 199309
 #define	_POSIX_AIO_LISTIO_MAX	2
@@ -110,8 +115,6 @@
 #define	_POSIX_TRACE_SYS_MAX	8
 #define	_POSIX_TRACE_USER_EVENT_MAX 32
 #define	_POSIX_TTY_NAME_MAX	9
-#define	_POSIX2_CHARCLASS_NAME_MAX 14
-#define	_POSIX2_COLL_WEIGHTS_MAX 2
 
 #define	_POSIX_RE_DUP_MAX	_POSIX2_RE_DUP_MAX
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601130132.u0D1W4Qs050594>