From owner-svn-src-head@freebsd.org Sat Jan 9 15:09:33 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DB13A68187; Sat, 9 Jan 2016 15:09:33 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AB4F012E1; Sat, 9 Jan 2016 15:09:32 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.9/8.14.9) with ESMTP id u09F8jiA051871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 9 Jan 2016 23:08:45 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.9/8.14.9/Submit) id u09F8iHB051870; Sat, 9 Jan 2016 23:08:44 +0800 (CST) (envelope-from kevlo) Date: Sat, 9 Jan 2016 23:08:43 +0800 From: Kevin Lo To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r293491 - head/include Message-ID: <20160109150843.GA51824@ns.kevlo.org> References: <201601091453.u09ErNCj008687@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201601091453.u09ErNCj008687@repo.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 15:09:33 -0000 On Sat, Jan 09, 2016 at 02:53:23PM +0000, Kevin Lo wrote: > Author: kevlo > Date: Sat Jan 9 14:53:23 2016 > New Revision: 293491 > URL: https://svnweb.freebsd.org/changeset/base/293491 > > Log: > - 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. > > Submitted by bde Oops, should be reviewed by bde. > Modified: > head/include/limits.h > > Modified: head/include/limits.h > ============================================================================== > --- head/include/limits.h Sat Jan 9 14:53:08 2016 (r293490) > +++ head/include/limits.h Sat Jan 9 14:53:23 2016 (r293491) > @@ -59,10 +59,12 @@ > #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 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 */ > @@ -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 >