2012-05-01 20:05:49 +00:00
|
|
|
macro-int-constant CHAR_BIT >= 8
|
|
|
|
macro-int-constant SCHAR_MIN {promoted:signed char} <= -127
|
|
|
|
macro-int-constant SCHAR_MAX {promoted:signed char} >= 127
|
|
|
|
macro-int-constant UCHAR_MAX {promoted:unsigned char} >= 255
|
2012-02-26 04:18:39 +00:00
|
|
|
#ifdef __CHAR_UNSIGNED__
|
2012-05-01 20:05:49 +00:00
|
|
|
macro-int-constant CHAR_MIN {promoted:char} == 0
|
|
|
|
macro-int-constant CHAR_MAX {promoted:char} == UCHAR_MAX
|
2012-02-26 04:18:39 +00:00
|
|
|
#else
|
2012-05-01 20:05:49 +00:00
|
|
|
macro-int-constant CHAR_MIN {promoted:char} == SCHAR_MIN
|
|
|
|
macro-int-constant CHAR_MAX {promoted:char} == SCHAR_MAX
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
2012-05-01 20:05:49 +00:00
|
|
|
macro-int-constant MB_LEN_MAX >= 1
|
|
|
|
macro-int-constant SHRT_MIN {promoted:short int} <= -32767
|
|
|
|
macro-int-constant SHRT_MAX {promoted:short int} >= 32767
|
|
|
|
macro-int-constant USHRT_MAX {promoted:unsigned short int} >= 65535
|
|
|
|
// The ranges for int and unsigned int are from POSIX.
|
|
|
|
macro-int-constant INT_MAX {int} >= 2147483647
|
|
|
|
macro-int-constant INT_MIN {int} <= -2147483647
|
|
|
|
macro-int-constant UINT_MAX {unsigned int} >= 4294967295U
|
|
|
|
macro-int-constant LONG_MAX {long int} >= 2147483647L
|
|
|
|
macro-int-constant LONG_MIN {long int} <= -2147483647L
|
|
|
|
macro-int-constant ULONG_MAX {unsigned long int} >= 4294967295UL
|
2012-02-26 04:18:39 +00:00
|
|
|
#if defined ISO99 || defined ISO11 || defined XOPEN2K8 || defined POSIX2008
|
2012-05-01 20:05:49 +00:00
|
|
|
macro-int-constant LLONG_MIN {long long int} <= -9223372036854775807ll
|
|
|
|
macro-int-constant LLONG_MAX {long long int} >= 9223372036854775807ll
|
|
|
|
macro-int-constant ULLONG_MAX {unsigned long long int} >= 18446744073709551615ull
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined ISO && !defined ISO99 && !defined ISO11
|
2000-05-02 18:18:59 +00:00
|
|
|
// if these values exist, we should check the minimal value
|
2012-11-19 22:20:44 +00:00
|
|
|
allow AIO_LISTIO_MAX
|
2000-05-02 18:18:59 +00:00
|
|
|
allow AIO_MAX
|
|
|
|
allow AIO_PRIO_DELTA_MAX
|
|
|
|
allow ARG_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3
|
|
|
|
allow ATEXIT_MAX
|
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow CHILD_MAX
|
|
|
|
allow DELAYTIMER_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined POSIX2008 && !defined XPG3
|
2000-05-02 18:18:59 +00:00
|
|
|
allow IOV_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow LOGIN_NAME_MAX
|
|
|
|
allow MQ_OPEN_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
allow MQ_PRIO_MAX
|
2000-05-02 18:18:59 +00:00
|
|
|
allow OPEN_MAX
|
|
|
|
allow PAGESIZE
|
2010-01-09 18:56:41 +00:00
|
|
|
#if !defined POSIX && !defined POSIX2008
|
2000-05-02 18:18:59 +00:00
|
|
|
allow PAGE_SIZE
|
2010-01-09 18:56:41 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow PTHREAD_DESTRUCTOR_ITERATIONS
|
|
|
|
allow PTHREAD_KEYS_MAX
|
|
|
|
allow PTHREAD_STACK_MIN
|
|
|
|
allow PTHREAD_THREADS_MAX
|
|
|
|
allow RTSIG_MAX
|
|
|
|
allow SEM_NSEMS_MAX
|
|
|
|
allow SEM_VALUE_MAX
|
|
|
|
allow SIGQUEUE_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2000-05-02 18:18:59 +00:00
|
|
|
allow SS_REPL_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow STREAM_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2000-05-02 18:18:59 +00:00
|
|
|
allow SYMLOOP_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow TIMER_MAX
|
|
|
|
allow TTY_NAME_MAX
|
|
|
|
allow TZNAME_MAX
|
|
|
|
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4
|
2000-05-02 18:18:59 +00:00
|
|
|
allow FILESIZEBITS
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
allow LINK_MAX
|
|
|
|
allow MAX_CANON
|
|
|
|
allow MAX_INPUT
|
|
|
|
allow NAME_MAX
|
|
|
|
allow PATH_MAX
|
|
|
|
allow PIPE_BUF
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2000-05-02 18:18:59 +00:00
|
|
|
allow POSIX_ALLOC_SIZE_MIN
|
|
|
|
allow POSIX_REC_INCR_XFER_SIZE
|
|
|
|
allow POSIX_REC_MAX_XFER_SIZE
|
|
|
|
allow POSIX_REC_XFER_ALIGN
|
|
|
|
allow SYMLINK_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
|
2012-11-19 22:20:44 +00:00
|
|
|
macro-constant BC_BASE_MAX >= _POSIX2_BC_BASE_MAX
|
|
|
|
macro-constant BC_DIM_MAX >= _POSIX2_BC_DIM_MAX
|
|
|
|
macro-constant BC_SCALE_MAX >= _POSIX2_BC_SCALE_MAX
|
|
|
|
macro-constant BC_STRING_MAX >= _POSIX2_BC_STRING_MAX
|
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4
|
2000-05-02 18:18:59 +00:00
|
|
|
macro CHARCLASS_NAME_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
|
|
|
macro-constant COLL_WEIGHTS_MAX >= _POSIX2_COLL_WEIGHTS_MAX
|
|
|
|
macro-constant EXPR_NEST_MAX >= _POSIX2_EXPR_NEST_MAX
|
|
|
|
macro-constant LINE_MAX >= _POSIX2_LINE_MAX
|
2000-05-02 18:18:59 +00:00
|
|
|
constant NGROUPS_MAX >= 8
|
2012-11-19 22:20:44 +00:00
|
|
|
macro-constant RE_DUP_MAX >= _POSIX2_RE_DUP_MAX
|
2000-05-02 18:18:59 +00:00
|
|
|
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_CLOCKRES_MIN == 20000000
|
2000-05-02 18:18:59 +00:00
|
|
|
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_AIO_LISTIO_MAX == 2
|
|
|
|
constant _POSIX_AIO_MAX == 1
|
|
|
|
constant _POSIX_ARG_MAX == 4096
|
2012-02-27 02:32:56 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_CHILD_MAX == 25
|
2008-01-16 10:11:18 +00:00
|
|
|
#else
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_CHILD_MAX == 6
|
|
|
|
#endif
|
|
|
|
constant _POSIX_DELAYTIMER_MAX == 32
|
|
|
|
constant _POSIX_LINK_MAX == 8
|
|
|
|
constant _POSIX_LOGIN_NAME_MAX == 9
|
|
|
|
constant _POSIX_MAX_CANON == 255
|
|
|
|
constant _POSIX_MAX_INPUT == 255
|
|
|
|
constant _POSIX_MQ_OPEN_MAX == 8
|
|
|
|
constant _POSIX_MQ_PRIO_MAX == 32
|
|
|
|
constant _POSIX_NAME_MAX == 14
|
2012-02-27 02:32:56 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_NGROUPS_MAX == 8
|
2008-01-16 10:11:18 +00:00
|
|
|
#else
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_NGROUPS_MAX == 0
|
2008-01-16 10:11:18 +00:00
|
|
|
#endif
|
2012-02-27 02:32:56 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_OPEN_MAX == 20
|
2008-01-16 10:11:18 +00:00
|
|
|
#else
|
2012-11-19 22:20:44 +00:00
|
|
|
constant _POSIX_OPEN_MAX == 16
|
|
|
|
#endif
|
|
|
|
// Value was 255, corrected to 256 following an interpretation request.
|
|
|
|
constant _POSIX_PATH_MAX == 256
|
|
|
|
constant _POSIX_PIPE_BUF == 512
|
|
|
|
constant _POSIX_RTSIG_MAX == 8
|
|
|
|
constant _POSIX_SEM_NSEMS_MAX == 256
|
|
|
|
constant _POSIX_SEM_VALUE_MAX == 32767
|
|
|
|
constant _POSIX_SIGQUEUE_MAX == 32
|
|
|
|
constant _POSIX_SSIZE_MAX == 32767
|
|
|
|
constant _POSIX_STREAM_MAX == 8
|
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2012-05-01 20:00:24 +00:00
|
|
|
optional-constant _POSIX_SS_REPL_MAX == 4
|
|
|
|
optional-constant _POSIX_SYMLINK_MAX == 255
|
|
|
|
optional-constant _POSIX_SYMLOOP_MAX == 8
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
|
|
|
constant _POSIX_THREAD_DESTRUCTOR_ITERATIONS == 4
|
|
|
|
constant _POSIX_THREAD_KEYS_MAX == 128
|
|
|
|
constant _POSIX_THREAD_THREADS_MAX == 64
|
|
|
|
constant _POSIX_TIMER_MAX == 32
|
|
|
|
constant _POSIX_TTY_NAME_MAX == 9
|
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
|
|
|
constant _POSIX_TZNAME_MAX == 6
|
|
|
|
#else
|
|
|
|
constant _POSIX_TZNAME_MAX == 3
|
|
|
|
#endif
|
|
|
|
macro-constant _POSIX2_BC_BASE_MAX == 99
|
|
|
|
macro-constant _POSIX2_BC_DIM_MAX == 2048
|
|
|
|
macro-constant _POSIX2_BC_SCALE_MAX == 99
|
|
|
|
macro-constant _POSIX2_BC_STRING_MAX == 1000
|
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
|
|
|
constant _POSIX2_CHARCLASS_NAME_MAX == 14
|
|
|
|
#endif
|
|
|
|
macro-constant _POSIX2_COLL_WEIGHTS_MAX == 2
|
|
|
|
macro-constant _POSIX2_EXPR_NEST_MAX == 32
|
|
|
|
macro-constant _POSIX2_LINE_MAX == 2048
|
|
|
|
macro-constant _POSIX2_RE_DUP_MAX == 255
|
|
|
|
#if !defined POSIX && !defined POSIX2008 && !defined XPG3
|
2012-05-01 20:00:24 +00:00
|
|
|
optional-constant _XOPEN_IOV_MAX == 16
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
|
2012-02-26 04:18:39 +00:00
|
|
|
#if !defined POSIX && !defined POSIX2008
|
|
|
|
constant WORD_BIT >= 16
|
2000-05-02 18:18:59 +00:00
|
|
|
constant LONG_BIT >= 32
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
2000-05-02 18:18:59 +00:00
|
|
|
constant SSIZE_MAX
|
|
|
|
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant CHARCLASS_NAME_MAX >= 14
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
|
|
|
#if !defined POSIX && !defined XPG3
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NL_ARGMAX >= 9
|
2012-11-19 22:20:44 +00:00
|
|
|
# if !defined POSIX2008
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NL_LANGMAX >= 14
|
2012-11-19 22:20:44 +00:00
|
|
|
# endif
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NL_MSGMAX >= 32767
|
2012-11-19 22:20:44 +00:00
|
|
|
# if !defined XOPEN2K8 && !defined POSIX2008
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NL_NMAX
|
2012-11-19 22:20:44 +00:00
|
|
|
# endif
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NL_SETMAX >= 255
|
|
|
|
optional-constant NL_TEXTMAX
|
2012-11-19 22:20:44 +00:00
|
|
|
# if !defined POSIX2008
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant NZERO >= 20
|
2012-11-19 22:20:44 +00:00
|
|
|
# endif
|
2010-01-09 18:56:41 +00:00
|
|
|
#endif
|
2012-11-19 22:20:44 +00:00
|
|
|
#if defined XPG4 || defined UNIX98
|
2001-01-26 18:58:19 +00:00
|
|
|
optional-constant TMP_MAX >= 10000
|
2012-11-19 22:20:44 +00:00
|
|
|
#endif
|
2008-01-16 10:11:18 +00:00
|
|
|
|
|
|
|
allow *_MAX
|
2012-11-19 22:20:44 +00:00
|
|
|
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
2008-01-16 10:11:18 +00:00
|
|
|
allow *_MIN
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|
2012-11-19 22:20:44 +00:00
|
|
|
allow *_t
|
|
|
|
#endif
|