getconf_vars.m4 (15338B)
- dnl utils-std: Collection of commonly available Unix tools
- dnl SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- dnl SPDX-License-Identifier: MPL-2.0
- dnl
- dnl Usage: m4 cmd/getconf_vars.m4 > cmd/getconf_vars.h
- dnl
- define(`conf_var', `#ifdef $2
- {$1, $2, -1},
- #else
- #warning conf variable name $2 undefined
- #endif
- ')dnl
- define(`conf_var_limit', `#ifndef $3
- #define $3 -1
- #endif
- #ifdef $2
- {$1, $2, $3},
- #else
- #warning conf variable name $2 undefined
- #endif
- ')dnl
- struct conf_vars
- {
- const char *name;
- const int value;
- const long limit_h;
- };
- struct limits
- {
- const char *name;
- const long limit_h;
- };
- dnl _CS_V${n}_ENV exposes environment variables to achieve said SUSv${n} version
- dnl It's therefore dependent on what the underlying system supports.
- define(`confstr_var', `#ifdef _CS_$1
- {"$1", _CS_$1, -1},
- #endif')dnl
- // confstr(3) variables without the _CS_ prefix
- static const struct conf_vars confstr_vars[] = {
- conf_var("PATH", _CS_PATH)
- confstr_var(POSIX_V8_ILP32_OFF32_CFLAGS)
- confstr_var(POSIX_V8_ILP32_OFF32_LDFLAGS)
- confstr_var(POSIX_V8_ILP32_OFF32_LIBS)
- confstr_var(POSIX_V8_ILP32_OFFBIG_CFLAGS)
- confstr_var(POSIX_V8_ILP32_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V8_ILP32_OFFBIG_LIBS)
- confstr_var(POSIX_V8_LP64_OFF64_CFLAGS)
- confstr_var(POSIX_V8_LP64_OFF64_LDFLAGS)
- confstr_var(POSIX_V8_LP64_OFF64_LIBS)
- confstr_var(POSIX_V8_LPBIG_OFFBIG_CFLAGS)
- confstr_var(POSIX_V8_LPBIG_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V8_LPBIG_OFFBIG_LIBS)
- confstr_var(POSIX_V8_THREADS_CFLAGS)
- confstr_var(POSIX_V8_THREADS_LDFLAGS)
- confstr_var(POSIX_V8_WIDTH_RESTRICTED_ENVS)
- confstr_var(V8_ENV)
- confstr_var(POSIX_V7_ILP32_OFF32_CFLAGS)
- confstr_var(POSIX_V7_ILP32_OFF32_LDFLAGS)
- confstr_var(POSIX_V7_ILP32_OFF32_LIBS)
- confstr_var(POSIX_V7_ILP32_OFFBIG_CFLAGS)
- confstr_var(POSIX_V7_ILP32_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V7_ILP32_OFFBIG_LIBS)
- confstr_var(POSIX_V7_LP64_OFF64_CFLAGS)
- confstr_var(POSIX_V7_LP64_OFF64_LDFLAGS)
- confstr_var(POSIX_V7_LP64_OFF64_LIBS)
- confstr_var(POSIX_V7_LPBIG_OFFBIG_CFLAGS)
- confstr_var(POSIX_V7_LPBIG_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V7_LPBIG_OFFBIG_LIBS)
- confstr_var(POSIX_V7_THREADS_CFLAGS)
- confstr_var(POSIX_V7_THREADS_LDFLAGS)
- confstr_var(POSIX_V7_WIDTH_RESTRICTED_ENVS)
- confstr_var(V7_ENV)
- confstr_var(POSIX_V6_ILP32_OFF32_CFLAGS)
- confstr_var(POSIX_V6_ILP32_OFF32_LDFLAGS)
- confstr_var(POSIX_V6_ILP32_OFF32_LIBS)
- confstr_var(POSIX_V6_ILP32_OFFBIG_CFLAGS)
- confstr_var(POSIX_V6_ILP32_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V6_ILP32_OFFBIG_LIBS)
- confstr_var(POSIX_V6_LP64_OFF64_CFLAGS)
- confstr_var(POSIX_V6_LP64_OFF64_LDFLAGS)
- confstr_var(POSIX_V6_LP64_OFF64_LIBS)
- confstr_var(POSIX_V6_LPBIG_OFFBIG_CFLAGS)
- confstr_var(POSIX_V6_LPBIG_OFFBIG_LDFLAGS)
- confstr_var(POSIX_V6_LPBIG_OFFBIG_LIBS)
- confstr_var(POSIX_V6_WIDTH_RESTRICTED_ENVS)
- confstr_var(V6_ENV)
- };
- static const struct conf_vars pathconf_vars[] = {
- conf_var_limit("FILESIZEBITS", _PC_FILESIZEBITS, FILESIZEBITS)
- conf_var_limit("LINK_MAX", _PC_LINK_MAX, LINK_MAX)
- conf_var_limit("MAX_CANON", _PC_MAX_CANON, MAX_CANON)
- conf_var_limit("MAX_INPUT", _PC_MAX_INPUT, MAX_INPUT)
- conf_var_limit("NAME_MAX", _PC_NAME_MAX, NAME_MAX)
- conf_var_limit("PATH_MAX", _PC_PATH_MAX, PATH_MAX)
- conf_var_limit("PIPE_BUF", _PC_PIPE_BUF, PIPE_BUF)
- conf_var_limit("POSIX2_SYMLINKS", _PC_2_SYMLINKS, POSIX2_SYMLINKS)
- conf_var_limit("POSIX_ALLOC_SIZE_MIN", _PC_ALLOC_SIZE_MIN, POSIX_ALLOC_SIZE_MIN)
- conf_var_limit("POSIX_REC_INCR_XFER_SIZE", _PC_REC_INCR_XFER_SIZE, POSIX_REC_INCR_XFER_SIZE)
- conf_var_limit("POSIX_REC_MAX_XFER_SIZE", _PC_REC_MAX_XFER_SIZE, POSIX_REC_MAX_XFER_SIZE)
- conf_var_limit("POSIX_REC_MIN_XFER_SIZE", _PC_REC_MIN_XFER_SIZE, POSIX_REC_MIN_XFER_SIZE)
- conf_var_limit("POSIX_REC_XFER_ALIGN", _PC_REC_XFER_ALIGN, POSIX_REC_XFER_ALIGN)
- conf_var_limit("SYMLINK_MAX", _PC_SYMLINK_MAX, SYMLINK_MAX)
- conf_var_limit("TEXTDOMAIN_MAX", _PC_TEXTDOMAIN_MAX, TEXTDOMAIN_MAX)
- conf_var("_POSIX_CHOWN_RESTRICTED", _PC_CHOWN_RESTRICTED)
- conf_var("_POSIX_NO_TRUNC", _PC_NO_TRUNC)
- conf_var("_POSIX_VDISABLE", _PC_VDISABLE)
- conf_var("_POSIX_ASYNC_IO", _PC_ASYNC_IO)
- conf_var("_POSIX_FALLOC", _PC_FALLOC)
- conf_var("_POSIX_PRIO_IO", _PC_PRIO_IO)
- conf_var("_POSIX_SYNC_IO", _PC_SYNC_IO)
- conf_var("_POSIX_TIMESTAMP_RESOLUTION", _PC_TIMESTAMP_RESOLUTION)
- };
- static const struct conf_vars sysconf_vars[] = {
- conf_var_limit("AIO_LISTIO_MAX", _SC_AIO_LISTIO_MAX, AIO_LISTIO_MAX)
- conf_var_limit("AIO_MAX", _SC_AIO_MAX, AIO_MAX)
- conf_var_limit("AIO_PRIO_DELTA_MAX", _SC_AIO_PRIO_DELTA_MAX, AIO_PRIO_DELTA_MAX)
- conf_var_limit("ARG_MAX", _SC_ARG_MAX, ARG_MAX)
- conf_var_limit("ATEXIT_MAX", _SC_ATEXIT_MAX, ATEXIT_MAX)
- conf_var_limit("BC_BASE_MAX", _SC_BC_BASE_MAX, BC_BASE_MAX)
- conf_var_limit("BC_DIM_MAX", _SC_BC_DIM_MAX, BC_DIM_MAX)
- conf_var_limit("BC_SCALE_MAX", _SC_BC_SCALE_MAX, BC_SCALE_MAX)
- conf_var_limit("BC_STRING_MAX", _SC_BC_STRING_MAX, BC_STRING_MAX)
- conf_var_limit("CHILD_MAX", _SC_CHILD_MAX, CHILD_MAX)
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var("CLK_TCK", _SC_CLK_TCK)
- conf_var_limit("COLL_WEIGHTS_MAX", _SC_COLL_WEIGHTS_MAX, COLL_WEIGHTS_MAX)
- conf_var_limit("DELAYTIMER_MAX", _SC_DELAYTIMER_MAX, DELAYTIMER_MAX)
- conf_var_limit("EXPR_NEST_MAX", _SC_EXPR_NEST_MAX, EXPR_NEST_MAX)
- conf_var_limit("HOST_NAME_MAX", _SC_HOST_NAME_MAX, HOST_NAME_MAX)
- conf_var_limit("IOV_MAX", _SC_IOV_MAX, IOV_MAX)
- conf_var_limit("LINE_MAX", _SC_LINE_MAX, LINE_MAX)
- conf_var_limit("LOGIN_NAME_MAX", _SC_LOGIN_NAME_MAX, LOGIN_NAME_MAX)
- conf_var_limit("NGROUPS_MAX", _SC_NGROUPS_MAX, NGROUPS_MAX)
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var("GETGR_R_SIZE_MAX", _SC_GETGR_R_SIZE_MAX)
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var("GETPW_R_SIZE_MAX", _SC_GETPW_R_SIZE_MAX)
- conf_var_limit("MQ_OPEN_MAX", _SC_MQ_OPEN_MAX, MQ_OPEN_MAX)
- conf_var_limit("MQ_PRIO_MAX", _SC_MQ_PRIO_MAX, MQ_PRIO_MAX)
- // added in POSIX.1-2024
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var("NPROCESSORS_CONF", _SC_NPROCESSORS_CONF)
- // added in POSIX.1-2024
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var("NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN)
- // added in POSIX.1-2024
- // name not in POSIX.1-2024 but _SC_ value is
- conf_var_limit("NSIG", _SC_NSIG, NSIG)
- conf_var_limit("OPEN_MAX", _SC_OPEN_MAX, OPEN_MAX)
- conf_var_limit("PAGE_SIZE", _SC_PAGE_SIZE, PAGE_SIZE)
- conf_var_limit("PAGESIZE", _SC_PAGESIZE, PAGESIZE)
- conf_var_limit("PTHREAD_DESTRUCTOR_ITERATIONS", _SC_THREAD_DESTRUCTOR_ITERATIONS, PTHREAD_DESTRUCTOR_ITERATIONS)
- conf_var_limit("PTHREAD_KEYS_MAX", _SC_THREAD_KEYS_MAX, PTHREAD_KEYS_MAX)
- conf_var_limit("PTHREAD_STACK_MIN", _SC_THREAD_STACK_MIN, PTHREAD_STACK_MIN)
- conf_var_limit("PTHREAD_THREADS_MAX", _SC_THREAD_THREADS_MAX, PTHREAD_THREADS_MAX)
- conf_var_limit("RE_DUP_MAX", _SC_RE_DUP_MAX, RE_DUP_MAX)
- conf_var_limit("RTSIG_MAX", _SC_RTSIG_MAX, RTSIG_MAX)
- conf_var_limit("SEM_NSEMS_MAX", _SC_SEM_NSEMS_MAX, SEM_NSEMS_MAX)
- conf_var_limit("SEM_VALUE_MAX", _SC_SEM_VALUE_MAX, SEM_VALUE_MAX)
- conf_var_limit("SIGQUEUE_MAX", _SC_SIGQUEUE_MAX, SIGQUEUE_MAX)
- conf_var_limit("STREAM_MAX", _SC_STREAM_MAX, STREAM_MAX)
- conf_var_limit("SYMLOOP_MAX", _SC_SYMLOOP_MAX, SYMLOOP_MAX)
- conf_var_limit("TIMER_MAX", _SC_TIMER_MAX, TIMER_MAX)
- conf_var_limit("TTY_NAME_MAX", _SC_TTY_NAME_MAX, TTY_NAME_MAX)
- conf_var_limit("TZNAME_MAX", _SC_TZNAME_MAX, TZNAME_MAX)
- conf_var("_POSIX_ADVISORY_INFO", _SC_ADVISORY_INFO)
- conf_var("_POSIX_BARRIERS", _SC_BARRIERS)
- conf_var("_POSIX_ASYNCHRONOUS_IO", _SC_ASYNCHRONOUS_IO)
- conf_var("_POSIX_CLOCK_SELECTION", _SC_CLOCK_SELECTION)
- conf_var("_POSIX_CPUTIME", _SC_CPUTIME)
- // added in POSIX.1-2024
- conf_var("_POSIX_DEVICE_CONTROL", _SC_DEVICE_CONTROL)
- conf_var("_POSIX_FSYNC", _SC_FSYNC)
- conf_var("_POSIX_IPV6", _SC_IPV6)
- conf_var("_POSIX_JOB_CONTROL", _SC_JOB_CONTROL)
- conf_var("_POSIX_MAPPED_FILES", _SC_MAPPED_FILES)
- conf_var("_POSIX_MEMLOCK", _SC_MEMLOCK)
- conf_var("_POSIX_MEMLOCK_RANGE", _SC_MEMLOCK_RANGE)
- conf_var("_POSIX_MEMORY_PROTECTION", _SC_MEMORY_PROTECTION)
- conf_var("_POSIX_MESSAGE_PASSING", _SC_MESSAGE_PASSING)
- conf_var("_POSIX_MONOTONIC_CLOCK", _SC_MONOTONIC_CLOCK)
- conf_var("_POSIX_PRIORITIZED_IO", _SC_PRIORITIZED_IO)
- conf_var("_POSIX_PRIORITY_SCHEDULING", _SC_PRIORITY_SCHEDULING)
- conf_var("_POSIX_RAW_SOCKETS", _SC_RAW_SOCKETS)
- conf_var("_POSIX_READER_WRITER_LOCKS", _SC_READER_WRITER_LOCKS)
- conf_var("_POSIX_REALTIME_SIGNALS", _SC_REALTIME_SIGNALS)
- conf_var("_POSIX_REGEXP", _SC_REGEXP)
- conf_var("_POSIX_SAVED_IDS", _SC_SAVED_IDS)
- conf_var("_POSIX_SEMAPHORES", _SC_SEMAPHORES)
- conf_var("_POSIX_SHARED_MEMORY_OBJECTS", _SC_SHARED_MEMORY_OBJECTS)
- conf_var("_POSIX_SHELL", _SC_SHELL)
- conf_var("_POSIX_SPAWN", _SC_SPAWN)
- conf_var("_POSIX_SPIN_LOCKS", _SC_SPIN_LOCKS)
- conf_var("_POSIX_SPORADIC_SERVER", _SC_SPORADIC_SERVER)
- conf_var("_POSIX_SS_REPL_MAX", _SC_SS_REPL_MAX)
- conf_var("_POSIX_SYNCHRONIZED_IO", _SC_SYNCHRONIZED_IO)
- conf_var("_POSIX_THREAD_ATTR_STACKADDR", _SC_THREAD_ATTR_STACKADDR)
- conf_var("_POSIX_THREAD_ATTR_STACKSIZE", _SC_THREAD_ATTR_STACKSIZE)
- conf_var("_POSIX_THREAD_CPUTIME", _SC_THREAD_CPUTIME)
- conf_var("_POSIX_THREAD_PRIO_INHERIT", _SC_THREAD_PRIO_INHERIT)
- conf_var("_POSIX_THREAD_PRIO_PROTECT", _SC_THREAD_PRIO_PROTECT)
- conf_var("_POSIX_THREAD_PRIORITY_SCHEDULING", _SC_THREAD_PRIORITY_SCHEDULING)
- conf_var("_POSIX_THREAD_PROCESS_SHARED", _SC_THREAD_PROCESS_SHARED)
- conf_var("_POSIX_THREAD_ROBUST_PRIO_INHERIT", _SC_THREAD_ROBUST_PRIO_INHERIT)
- conf_var("_POSIX_THREAD_ROBUST_PRIO_PROTECT", _SC_THREAD_ROBUST_PRIO_PROTECT)
- conf_var("_POSIX_THREAD_SAFE_FUNCTIONS", _SC_THREAD_SAFE_FUNCTIONS)
- conf_var("_POSIX_THREAD_SPORADIC_SERVER", _SC_THREAD_SPORADIC_SERVER)
- conf_var("_POSIX_THREADS", _SC_THREADS)
- conf_var("_POSIX_TIMEOUTS", _SC_TIMEOUTS)
- conf_var("_POSIX_TIMERS", _SC_TIMERS)
- conf_var("_POSIX_TYPED_MEMORY_OBJECTS", _SC_TYPED_MEMORY_OBJECTS)
- conf_var("_POSIX_VERSION", _SC_VERSION)
- // added in POSIX.1-2024
- conf_var("_POSIX_V8_ILP32_OFF32", _SC_V8_ILP32_OFF32)
- // added in POSIX.1-2024
- conf_var("_POSIX_V8_ILP32_OFFBIG", _SC_V8_ILP32_OFFBIG)
- // added in POSIX.1-2024
- conf_var("_POSIX_V8_LP64_OFF64", _SC_V8_LP64_OFF64)
- // added in POSIX.1-2024
- conf_var("_POSIX_V8_LPBIG_OFFBIG", _SC_V8_LPBIG_OFFBIG)
- // Obsolescent in POSIX.1-2024
- conf_var("_POSIX_V7_ILP32_OFF32", _SC_V7_ILP32_OFF32)
- conf_var("_POSIX_V7_ILP32_OFFBIG", _SC_V7_ILP32_OFFBIG)
- conf_var("_POSIX_V7_LP64_OFF64", _SC_V7_LP64_OFF64)
- conf_var("_POSIX_V7_LPBIG_OFFBIG", _SC_V7_LPBIG_OFFBIG)
- // For compatibility with earlier versions, the following variable names shall also be supported: POSIX2_C_BIND POSIX2_C_DEV POSIX2_CHAR_TERM POSIX2_FORT_RUN POSIX2_LOCALEDEF POSIX2_SW_DEV POSIX2_UPE POSIX2_VERSION
- conf_var("POSIX2_C_BIND", _SC_2_C_BIND)
- conf_var("_POSIX2_C_BIND", _SC_2_C_BIND)
- conf_var("POSIX2_C_DEV", _SC_2_C_DEV)
- conf_var("_POSIX2_C_DEV", _SC_2_C_DEV)
- conf_var("POSIX2_CHAR_TERM", _SC_2_CHAR_TERM)
- conf_var("_POSIX2_CHAR_TERM", _SC_2_CHAR_TERM)
- conf_var("POSIX2_FORT_RUN", _SC_2_FORT_RUN)
- conf_var("_POSIX2_FORT_RUN", _SC_2_FORT_RUN)
- conf_var("POSIX2_LOCALEDEF", _SC_2_LOCALEDEF)
- conf_var("_POSIX2_LOCALEDEF", _SC_2_LOCALEDEF)
- conf_var("POSIX2_SW_DEV", _SC_2_SW_DEV)
- conf_var("_POSIX2_SW_DEV", _SC_2_SW_DEV)
- conf_var("POSIX2_UPE", _SC_2_UPE)
- conf_var("_POSIX2_UPE", _SC_2_UPE)
- conf_var("POSIX2_VERSION", _SC_2_VERSION)
- conf_var("_POSIX2_VERSION", _SC_2_VERSION)
- conf_var("_XOPEN_CRYPT", _SC_XOPEN_CRYPT)
- conf_var("_XOPEN_ENH_I18N", _SC_XOPEN_ENH_I18N)
- conf_var("_XOPEN_REALTIME", _SC_XOPEN_REALTIME)
- conf_var("_XOPEN_REALTIME_THREADS", _SC_XOPEN_REALTIME_THREADS)
- conf_var("_XOPEN_SHM", _SC_XOPEN_SHM)
- conf_var("_XOPEN_UNIX", _SC_XOPEN_UNIX)
- conf_var("XOPEN_UNIX", _SC_XOPEN_UNIX)
- // added in POSIX.1-2008, strangely missing from musl
- conf_var("_XOPEN_UUCP", _SC_XOPEN_UUCP)
- conf_var("XOPEN_UUCP", _SC_XOPEN_UUCP)
- conf_var("_XOPEN_VERSION", _SC_XOPEN_VERSION)
- #ifdef _SC_CHARCLASS_NAME_MAX
- /* https://www.austingroupbugs.net/view.php?id=1912 - sysconf lacks variable for {CHARCLASS_NAME_MAX} */
- conf_var_limit("CHARCLASS_NAME_MAX", _SC_CHARCLASS_NAME_MAX, CHARCLASS_NAME_MAX)
- #endif
- };
- define(`limits_var', `#ifdef $1
- {"$1", $1},
- #else
- #warning limits.h variable $1 undefined
- #endif
- ')dnl
- define(`limits_var_alias', ` {"$1", $2},')dnl
- // _MIN and _MAX from <limits.h>
- static const struct limits limits_vars[] = {
- limits_var(SS_REPL_MAX)
- #ifndef _SC_CHARCLASS_NAME_MAX
- limits_var(CHARCLASS_NAME_MAX)
- #endif
- limits_var(_POSIX_CLOCKRES_MIN)
- limits_var(_POSIX_AIO_LISTIO_MAX)
- limits_var(_POSIX_AIO_MAX)
- limits_var(_POSIX_ARG_MAX)
- limits_var(_POSIX_CHILD_MAX)
- limits_var(_POSIX_DELAYTIMER_MAX)
- limits_var(_POSIX_HOST_NAME_MAX)
- limits_var(_POSIX_LINK_MAX)
- limits_var(_POSIX_LOGIN_NAME_MAX)
- limits_var(_POSIX_MAX_CANON)
- limits_var(_POSIX_MAX_INPUT)
- limits_var(_POSIX_MQ_OPEN_MAX)
- limits_var(_POSIX_MQ_PRIO_MAX)
- limits_var(_POSIX_NAME_MAX)
- limits_var(_POSIX_NGROUPS_MAX)
- limits_var(_POSIX_OPEN_MAX)
- limits_var(_POSIX_PATH_MAX)
- limits_var(_POSIX_PIPE_BUF)
- limits_var(_POSIX_RE_DUP_MAX)
- limits_var(_POSIX_RTSIG_MAX)
- limits_var(_POSIX_SEM_NSEMS_MAX)
- limits_var(_POSIX_SEM_VALUE_MAX)
- limits_var(_POSIX_SIGQUEUE_MAX)
- limits_var(_POSIX_SSIZE_MAX)
- limits_var(_POSIX_SS_REPL_MAX)
- limits_var(_POSIX_STREAM_MAX)
- limits_var(_POSIX_SYMLINK_MAX)
- limits_var(_POSIX_SYMLOOP_MAX)
- limits_var(_POSIX_THREAD_DESTRUCTOR_ITERATIONS)
- limits_var(_POSIX_THREAD_KEYS_MAX)
- limits_var(_POSIX_THREAD_THREADS_MAX)
- limits_var(_POSIX_TIMER_MAX)
- limits_var(_POSIX_TTY_NAME_MAX)
- limits_var(_POSIX_TZNAME_MAX)
- limits_var(_POSIX2_BC_BASE_MAX)
- limits_var(_POSIX2_BC_DIM_MAX)
- limits_var(_POSIX2_BC_SCALE_MAX)
- limits_var(_POSIX2_BC_STRING_MAX)
- limits_var(_POSIX2_CHARCLASS_NAME_MAX)
- limits_var(_POSIX2_COLL_WEIGHTS_MAX)
- limits_var(_POSIX2_EXPR_NEST_MAX)
- limits_var(_POSIX2_LINE_MAX)
- limits_var(_POSIX2_RE_DUP_MAX)
- #ifndef __GLIBC__
- /*
- * As observed on glibc 2.41, _XOPEN_IOV_MAX gets defined to _POSIX_UIO_MAXIOV
- * which ironically doesn't gets defined in a post-Y2K POSIX namespace
- * <https://sourceware.org/bugzilla/show_bug.cgi?id=17515>
- */
- limits_var(_XOPEN_IOV_MAX)
- #endif
- limits_var(_XOPEN_NAME_MAX)
- limits_var(_XOPEN_PATH_MAX)
- limits_var(CHAR_BIT)
- limits_var(CHAR_MAX)
- limits_var(CHAR_MIN)
- limits_var(INT_MAX)
- limits_var(INT_MIN)
- limits_var(LLONG_MAX)
- limits_var(LLONG_MIN)
- limits_var(LONG_BIT)
- limits_var(LONG_MAX)
- limits_var(LONG_MIN)
- limits_var(MB_LEN_MAX)
- limits_var(SCHAR_MAX)
- limits_var(SCHAR_MIN)
- limits_var(SHRT_MAX)
- limits_var(SHRT_MIN)
- limits_var(SSIZE_MAX)
- limits_var(UCHAR_MAX)
- limits_var(UINT_MAX)
- limits_var(ULLONG_MAX)
- limits_var(ULONG_MAX)
- limits_var(USHRT_MAX)
- limits_var(WORD_BIT)
- limits_var(GETENTROPY_MAX)
- limits_var(NL_ARGMAX)
- limits_var(NL_LANGMAX)
- limits_var(NL_MSGMAX)
- limits_var(NL_SETMAX)
- limits_var(NL_TEXTMAX)
- limits_var(NSIG_MAX)
- limits_var(NZERO)
- // For compatibility with earlier versions, the following variable names shall also be supported: POSIX2_BC_BASE_MAX POSIX2_BC_DIM_MAX POSIX2_BC_SCALE_MAX POSIX2_BC_STRING_MAX POSIX2_COLL_WEIGHTS_MAX POSIX2_EXPR_NEST_MAX POSIX2_LINE_MAX POSIX2_RE_DUP_MAX
- limits_var_alias(POSIX2_BC_BASE_MAX, _POSIX2_BC_BASE_MAX)
- limits_var_alias(POSIX2_BC_DIM_MAX, _POSIX2_BC_DIM_MAX)
- limits_var_alias(POSIX2_BC_SCALE_MAX, _POSIX2_BC_SCALE_MAX)
- limits_var_alias(POSIX2_BC_STRING_MAX, _POSIX2_BC_STRING_MAX)
- limits_var_alias(POSIX2_COLL_WEIGHTS_MAX, _POSIX2_COLL_WEIGHTS_MAX)
- limits_var_alias(POSIX2_EXPR_NEST_MAX, _POSIX2_EXPR_NEST_MAX)
- limits_var_alias(POSIX2_LINE_MAX, _POSIX2_LINE_MAX)
- limits_var_alias(POSIX2_RE_DUP_MAX, _POSIX2_RE_DUP_MAX)
- };