Date: Thu, 17 Mar 2011 22:47:52 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219726 - stable/8/include Message-ID: <201103172247.p2HMlqam041542@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Thu Mar 17 22:47:52 2011 New Revision: 219726 URL: http://svn.freebsd.org/changeset/base/219726 Log: MFC r219256: Fix some _POSIX minimum/maximum values in limits.h: * Some values changed in POSIX.1-2001; provide the former value if a program requests compliance to an earlier version of POSIX. [1] * Add missing _POSIX_CLOCKRES_MIN constant. This is a maximum value but otherwise works the same as the minimum values. PR: standards/104743 Submitted by: bde [1] (not exact #ifdefs, but the values) Modified: stable/8/include/limits.h Directory Properties: stable/8/include/ (props changed) Modified: stable/8/include/limits.h ============================================================================== --- stable/8/include/limits.h Thu Mar 17 22:36:21 2011 (r219725) +++ stable/8/include/limits.h Thu Mar 17 22:47:52 2011 (r219726) @@ -41,18 +41,27 @@ #if __POSIX_VISIBLE #define _POSIX_ARG_MAX 4096 -#define _POSIX_CHILD_MAX 25 #define _POSIX_LINK_MAX 8 #define _POSIX_MAX_CANON 255 #define _POSIX_MAX_INPUT 255 #define _POSIX_NAME_MAX 14 -#define _POSIX_NGROUPS_MAX 8 -#define _POSIX_OPEN_MAX 20 -#define _POSIX_PATH_MAX 256 #define _POSIX_PIPE_BUF 512 #define _POSIX_SSIZE_MAX 32767 #define _POSIX_STREAM_MAX 8 + +#if __POSIX_VISIBLE >= 200112 +#define _POSIX_CHILD_MAX 25 +#define _POSIX_NGROUPS_MAX 8 +#define _POSIX_OPEN_MAX 20 +#define _POSIX_PATH_MAX 256 #define _POSIX_TZNAME_MAX 6 +#else +#define _POSIX_CHILD_MAX 6 +#define _POSIX_NGROUPS_MAX 0 +#define _POSIX_OPEN_MAX 16 +#define _POSIX_PATH_MAX 255 +#define _POSIX_TZNAME_MAX 3 +#endif #define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */ #define BC_DIM_MAX 2048 /* max array elements in bc(1) */ @@ -84,6 +93,8 @@ #define _POSIX_SEM_VALUE_MAX 32767 #define _POSIX_SIGQUEUE_MAX 32 #define _POSIX_TIMER_MAX 32 + +#define _POSIX_CLOCKRES_MIN 20000000 #endif #if __POSIX_VISIBLE >= 199506
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103172247.p2HMlqam041542>