Blame SOURCES/glibc-rh1505492-undef-50.patch

25845f
commit 3b566046c3e8cb252f4c0ab7b6041fef5098f1a5
25845f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
25845f
Date:   Mon Dec 29 17:39:30 2014 +0530
25845f
25845f
    Add _POSIX namespace SYSCONF macros to posix-conf-vars.list
25845f
    
25845f
    This fixes the remaining -Wundef warnings.  Tested on x86_64.
25845f
    
25845f
            * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
25845f
            * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
25845f
            (__sysconf): Use CONF_IS_* macros.
25845f
25845f
diff --git a/posix/posix-conf-vars.list b/posix/posix-conf-vars.list
25845f
index 8f308c216626c59c..3e7e7cdaa9c46c85 100644
25845f
--- a/posix/posix-conf-vars.list
25845f
+++ b/posix/posix-conf-vars.list
25845f
@@ -14,6 +14,96 @@ SPEC POSIX {
25845f
   V7_LPBIG_OFFBIG
25845f
 }
25845f
 
25845f
+SYSCONF POSIX {
25845f
+  ADVISORY_INFO
25845f
+  ARG_MAX
25845f
+  ASYNCHRONOUS_IO
25845f
+  BARRIERS
25845f
+  BASE
25845f
+  CHILD_MAX
25845f
+  C_LANG_SUPPORT
25845f
+  C_LANG_SUPPORT_R
25845f
+  CLOCK_SELECTION
25845f
+  CPUTIME
25845f
+  DEVICE_IO
25845f
+  DEVICE_SPECIFIC
25845f
+  DEVICE_SPECIFIC_R
25845f
+  FD_MGMT
25845f
+  FIFO
25845f
+  FILE_ATTRIBUTES
25845f
+  FILE_LOCKING
25845f
+  FILE_SYSTEM
25845f
+  FSYNC
25845f
+  JOB_CONTROL
25845f
+  MAPPED_FILES
25845f
+  MEMLOCK
25845f
+  MEMLOCK_RANGE
25845f
+  MEMORY_PROTECTION
25845f
+  MESSAGE_PASSING
25845f
+  MONOTONIC_CLOCK
25845f
+  MULTI_PROCESS
25845f
+  NETWORKING
25845f
+  NGROUPS_MAX
25845f
+  OPEN_MAX
25845f
+  PII
25845f
+  PII_INTERNET
25845f
+  PII_INTERNET_DGRAM
25845f
+  PII_INTERNET_STREAM
25845f
+  PII_OSI
25845f
+  PII_OSI_CLTS
25845f
+  PII_OSI_COTS
25845f
+  PII_OSI_M
25845f
+  PII_SOCKET
25845f
+  PII_XTI
25845f
+  PIPE
25845f
+  POLL
25845f
+  PRIORITIZED_IO
25845f
+  PRIORITY_SCHEDULING
25845f
+  READER_WRITER_LOCKS
25845f
+  REALTIME_SIGNALS
25845f
+  REGEXP
25845f
+  SAVED_IDS
25845f
+  SELECT
25845f
+  SEMAPHORES
25845f
+  SHARED_MEMORY_OBJECTS
25845f
+  SHELL
25845f
+  SIGNALS
25845f
+  SINGLE_PROCESS
25845f
+  SPAWN
25845f
+  SPIN_LOCKS
25845f
+  SPORADIC_SERVER
25845f
+  SSIZE_MAX
25845f
+  STREAM_MAX
25845f
+  SYNCHRONIZED_IO
25845f
+  SYSTEM_DATABASE
25845f
+  SYSTEM_DATABASE_R
25845f
+  THREAD_ATTR_STACKADDR
25845f
+  THREAD_ATTR_STACKSIZE
25845f
+  THREAD_CPUTIME
25845f
+  THREAD_PRIO_INHERIT
25845f
+  THREAD_PRIO_PROTECT
25845f
+  THREAD_PRIORITY_SCHEDULING
25845f
+  THREAD_PROCESS_SHARED
25845f
+  THREADS
25845f
+  THREAD_SAFE_FUNCTIONS
25845f
+  THREAD_SPORADIC_SERVER
25845f
+  TIMEOUTS
25845f
+  TIMERS
25845f
+  TRACE
25845f
+  TRACE_EVENT_FILTER
25845f
+  TRACE_INHERIT
25845f
+  TRACE_LOG
25845f
+  TYPED_MEMORY_OBJECTS
25845f
+  TZNAME_MAX
25845f
+  USER_GROUPS
25845f
+  USER_GROUPS_R
25845f
+  VERSION
25845f
+# Additional variables not in getconf.
25845f
+  THREAD_DESTRUCTOR_ITERATIONS
25845f
+  IPV6
25845f
+  RAW_SOCKETS
25845f
+}
25845f
+
25845f
 SPEC XBS5 {
25845f
   ILP32_OFF32
25845f
   ILP32_OFFBIG
25845f
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
25845f
index cf4f8010097e309a..1e9d4e099e94981c 100644
25845f
--- a/sysdeps/posix/sysconf.c
25845f
+++ b/sysdeps/posix/sysconf.c
25845f
@@ -31,6 +31,8 @@
25845f
 #include <sys/types.h>
25845f
 #include <regex.h>
25845f
 
25845f
+#include <posix-conf-vars.h>
25845f
+
25845f
 
25845f
 #define NEED_CHECK_SPEC \
25845f
   (!defined _XBS5_ILP32_OFF32 || !defined _XBS5_ILP32_OFFBIG \
25845f
@@ -95,112 +97,112 @@ __sysconf (name)
25845f
       return MAX (__tzname_max (), _POSIX_TZNAME_MAX);
25845f
 
25845f
     case _SC_JOB_CONTROL:
25845f
-#if _POSIX_JOB_CONTROL > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_JOB_CONTROL)
25845f
       return _POSIX_JOB_CONTROL;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SAVED_IDS:
25845f
-#if _POSIX_SAVED_IDS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SAVED_IDS)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_REALTIME_SIGNALS:
25845f
-#if _POSIX_REALTIME_SIGNALS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_REALTIME_SIGNALS)
25845f
       return _POSIX_REALTIME_SIGNALS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PRIORITY_SCHEDULING:
25845f
-#if _POSIX_PRIORITY_SCHEDULING > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PRIORITY_SCHEDULING)
25845f
       return _POSIX_PRIORITY_SCHEDULING;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_TIMERS:
25845f
-#if _POSIX_TIMERS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TIMERS)
25845f
       return _POSIX_TIMERS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_ASYNCHRONOUS_IO:
25845f
-#if _POSIX_ASYNCHRONOUS_IO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_ASYNCHRONOUS_IO)
25845f
       return _POSIX_ASYNCHRONOUS_IO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PRIORITIZED_IO:
25845f
-#if _POSIX_PRIORITIZED_IO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PRIORITIZED_IO)
25845f
       return _POSIX_PRIORITIZED_IO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SYNCHRONIZED_IO:
25845f
-#if _POSIX_SYNCHRONIZED_IO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SYNCHRONIZED_IO)
25845f
       return _POSIX_SYNCHRONIZED_IO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_FSYNC:
25845f
-#if _POSIX_FSYNC > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FSYNC)
25845f
       return _POSIX_FSYNC;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MAPPED_FILES:
25845f
-#if _POSIX_MAPPED_FILES > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MAPPED_FILES)
25845f
       return _POSIX_MAPPED_FILES;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MEMLOCK:
25845f
-#if _POSIX_MEMLOCK > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MEMLOCK)
25845f
       return _POSIX_MEMLOCK;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MEMLOCK_RANGE:
25845f
-#if _POSIX_MEMLOCK_RANGE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MEMLOCK_RANGE)
25845f
       return _POSIX_MEMLOCK_RANGE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MEMORY_PROTECTION:
25845f
-#if _POSIX_MEMORY_PROTECTION > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MEMORY_PROTECTION)
25845f
       return _POSIX_MEMORY_PROTECTION;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MESSAGE_PASSING:
25845f
-#if _POSIX_MESSAGE_PASSING > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MESSAGE_PASSING)
25845f
       return _POSIX_MESSAGE_PASSING;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SEMAPHORES:
25845f
-#if _POSIX_SEMAPHORES > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SEMAPHORES)
25845f
       return _POSIX_SEMAPHORES;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SHARED_MEMORY_OBJECTS:
25845f
-#if _POSIX_SHARED_MEMORY_OBJECTS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SHARED_MEMORY_OBJECTS)
25845f
       return _POSIX_SHARED_MEMORY_OBJECTS;
25845f
 #else
25845f
       return -1;
25845f
@@ -353,49 +355,49 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_PII:
25845f
-#if _POSIX_PII > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_XTI:
25845f
-#if _POSIX_PII_XTI > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_XTI)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_SOCKET:
25845f
-#if _POSIX_PII_SOCKET > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_SOCKET)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_INTERNET:
25845f
-#if _POSIX_PII_INTERNET > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_INTERNET)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_OSI:
25845f
-#if _POSIX_PII_OSI > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_OSI)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_POLL:
25845f
-#if _POSIX_POLL > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_POLL)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SELECT:
25845f
-#if _POSIX_SELECT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SELECT)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
@@ -410,35 +412,35 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_PII_INTERNET_STREAM:
25845f
-#if _POSIX_PII_INTERNET_STREAM > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_INTERNET_STREAM)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_INTERNET_DGRAM:
25845f
-#if _POSIX_PII_INTERNET_DGRAM > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_INTERNET_DGRAM)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_OSI_COTS:
25845f
-#if _POSIX_PII_OSI_COTS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_OSI_COTS)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_OSI_CLTS:
25845f
-#if _POSIX_PII_OSI_CLTS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_OSI_CLTS)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_PII_OSI_M:
25845f
-#if _POSIX_PII_OSI_M > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PII_OSI_M)
25845f
       return 1;
25845f
 #else
25845f
       return -1;
25845f
@@ -519,14 +521,14 @@ __sysconf (name)
25845f
 
25845f
       /* POSIX 1003.1c (POSIX Threads).  */
25845f
     case _SC_THREADS:
25845f
-#if _POSIX_THREADS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREADS)
25845f
       return _POSIX_THREADS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_SAFE_FUNCTIONS:
25845f
-#if _POSIX_THREAD_SAFE_FUNCTIONS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_SAFE_FUNCTIONS)
25845f
       return _POSIX_THREAD_SAFE_FUNCTIONS;
25845f
 #else
25845f
       return -1;
25845f
@@ -553,7 +555,7 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_DESTRUCTOR_ITERATIONS:
25845f
-#if _POSIX_THREAD_DESTRUCTOR_ITERATIONS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_DESTRUCTOR_ITERATIONS)
25845f
       return _POSIX_THREAD_DESTRUCTOR_ITERATIONS;
25845f
 #else
25845f
       return -1;
25845f
@@ -581,42 +583,42 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_ATTR_STACKADDR:
25845f
-#if _POSIX_THREAD_ATTR_STACKADDR > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_ATTR_STACKADDR)
25845f
       return _POSIX_THREAD_ATTR_STACKADDR;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_ATTR_STACKSIZE:
25845f
-#if _POSIX_THREAD_ATTR_STACKSIZE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_ATTR_STACKSIZE)
25845f
       return _POSIX_THREAD_ATTR_STACKSIZE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_PRIORITY_SCHEDULING:
25845f
-#if _POSIX_THREAD_PRIORITY_SCHEDULING > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_PRIORITY_SCHEDULING)
25845f
       return _POSIX_THREAD_PRIORITY_SCHEDULING;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_PRIO_INHERIT:
25845f
-#if _POSIX_THREAD_PRIO_INHERIT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_PRIO_INHERIT)
25845f
       return _POSIX_THREAD_PRIO_INHERIT;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_PRIO_PROTECT:
25845f
-#if _POSIX_THREAD_PRIO_PROTECT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_PRIO_PROTECT)
25845f
       return _POSIX_THREAD_PRIO_PROTECT;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_PROCESS_SHARED:
25845f
-#if _POSIX_THREAD_PROCESS_SHARED > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_PROCESS_SHARED)
25845f
       return _POSIX_THREAD_PROCESS_SHARED;
25845f
 #else
25845f
       return -1;
25845f
@@ -833,152 +835,152 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_ADVISORY_INFO:
25845f
-#if _POSIX_ADVISORY_INFO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_ADVISORY_INFO)
25845f
       return _POSIX_ADVISORY_INFO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_BARRIERS:
25845f
-#if _POSIX_BARRIERS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_BARRIERS)
25845f
       return _POSIX_BARRIERS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_BASE:
25845f
-#if _POSIX_BASE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_BASE)
25845f
       return _POSIX_BASE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_C_LANG_SUPPORT:
25845f
-#if _POSIX_C_LANG_SUPPORT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_C_LANG_SUPPORT)
25845f
       return _POSIX_C_LANG_SUPPORT;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_C_LANG_SUPPORT_R:
25845f
-#if _POSIX_C_LANG_SUPPORT_R > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_C_LANG_SUPPORT_R)
25845f
       return _POSIX_C_LANG_SUPPORT_R;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_CLOCK_SELECTION:
25845f
-#if _POSIX_CLOCK_SELECTION > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_CLOCK_SELECTION)
25845f
       return _POSIX_CLOCK_SELECTION;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_CPUTIME:
25845f
-#if _POSIX_CPUTIME > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_CPUTIME)
25845f
       return _POSIX_CPUTIME;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_DEVICE_IO:
25845f
-#if _POSIX_DEVICE_IO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_DEVICE_IO)
25845f
       return _POSIX_DEVICE_IO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_DEVICE_SPECIFIC:
25845f
-#if _POSIX_DEVICE_SPECIFIC > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_DEVICE_SPECIFIC)
25845f
       return _POSIX_DEVICE_SPECIFIC;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_DEVICE_SPECIFIC_R:
25845f
-#if _POSIX_DEVICE_SPECIFIC_R > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_DEVICE_SPECIFIC_R)
25845f
       return _POSIX_DEVICE_SPECIFIC_R;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_FD_MGMT:
25845f
-#if _POSIX_FD_MGMT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FD_MGMT)
25845f
       return _POSIX_FD_MGMT;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_FIFO:
25845f
-#if _POSIX_FIFO > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FIFO)
25845f
       return _POSIX_FIFO;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_PIPE:
25845f
-#if _POSIX_PIPE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_PIPE)
25845f
       return _POSIX_PIPE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_FILE_ATTRIBUTES:
25845f
-#if _POSIX_FILE_ATTRIBUTES > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FILE_ATTRIBUTES)
25845f
       return _POSIX_FILE_ATTRIBUTES;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_FILE_LOCKING:
25845f
-#if _POSIX_FILE_LOCKING > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FILE_LOCKING)
25845f
       return _POSIX_FILE_LOCKING;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_FILE_SYSTEM:
25845f
-#if _POSIX_FILE_SYSTEM > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_FILE_SYSTEM)
25845f
       return _POSIX_FILE_SYSTEM;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MONOTONIC_CLOCK:
25845f
-#if _POSIX_MONOTONIC_CLOCK
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MONOTONIC_CLOCK)
25845f
       return _POSIX_MONOTONIC_CLOCK;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_MULTI_PROCESS:
25845f
-#if _POSIX_MULTI_PROCESS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_MULTI_PROCESS)
25845f
       return _POSIX_MULTI_PROCESS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_SINGLE_PROCESS:
25845f
-#if _POSIX_SINGLE_PROCESS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SINGLE_PROCESS)
25845f
       return _POSIX_SINGLE_PROCESS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_NETWORKING:
25845f
-#if _POSIX_NETWORKING > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_NETWORKING)
25845f
       return _POSIX_NETWORKING;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_READER_WRITER_LOCKS:
25845f
-#if _POSIX_READER_WRITER_LOCKS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_READER_WRITER_LOCKS)
25845f
       return _POSIX_READER_WRITER_LOCKS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_SPIN_LOCKS:
25845f
-#if _POSIX_SPIN_LOCKS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SPIN_LOCKS)
25845f
       return _POSIX_SPIN_LOCKS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_REGEXP:
25845f
-#if _POSIX_REGEXP > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_REGEXP)
25845f
       return _POSIX_REGEXP;
25845f
 #else
25845f
       return -1;
25845f
@@ -989,81 +991,81 @@ __sysconf (name)
25845f
       return -1;
25845f
 
25845f
     case _SC_SHELL:
25845f
-#if _POSIX_SHELL > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SHELL)
25845f
       return _POSIX_SHELL;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SIGNALS:
25845f
-#ifdef _POSIX_SIGNALS
25845f
+#if CONF_IS_DEFINED (_POSIX_SIGNALS)
25845f
       return _POSIX_SIGNALS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SPAWN:
25845f
-#if _POSIX_SPAWN > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SPAWN)
25845f
       return _POSIX_SPAWN;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SPORADIC_SERVER:
25845f
-#if _POSIX_SPORADIC_SERVER > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SPORADIC_SERVER)
25845f
       return _POSIX_SPORADIC_SERVER;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_THREAD_SPORADIC_SERVER:
25845f
-#if _POSIX_THREAD_SPORADIC_SERVER > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_SPORADIC_SERVER)
25845f
       return _POSIX_THREAD_SPORADIC_SERVER;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_SYSTEM_DATABASE:
25845f
-#if _POSIX_SYSTEM_DATABASE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SYSTEM_DATABASE)
25845f
       return _POSIX_SYSTEM_DATABASE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_SYSTEM_DATABASE_R:
25845f
-#if _POSIX_SYSTEM_DATABASE_R > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_SYSTEM_DATABASE_R)
25845f
       return _POSIX_SYSTEM_DATABASE_R;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_THREAD_CPUTIME:
25845f
-#if _POSIX_THREAD_CPUTIME > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_THREAD_CPUTIME)
25845f
       return _POSIX_THREAD_CPUTIME;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_TIMEOUTS:
25845f
-#if _POSIX_TIMEOUTS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TIMEOUTS)
25845f
       return _POSIX_TIMEOUTS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_TYPED_MEMORY_OBJECTS:
25845f
-#if _POSIX_TYPED_MEMORY_OBJECTS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TYPED_MEMORY_OBJECTS)
25845f
       return _POSIX_TYPED_MEMORY_OBJECTS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_USER_GROUPS:
25845f
-#if _POSIX_USER_GROUPS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_USER_GROUPS)
25845f
       return _POSIX_USER_GROUPS;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_USER_GROUPS_R:
25845f
-#if _POSIX_USER_GROUPS_R > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_USER_GROUPS_R)
25845f
       return _POSIX_USER_GROUPS_R;
25845f
 #else
25845f
       return -1;
25845f
@@ -1128,25 +1130,25 @@ __sysconf (name)
25845f
 #endif
25845f
 
25845f
     case _SC_TRACE:
25845f
-#if _POSIX_TRACE > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TRACE)
25845f
       return _POSIX_TRACE;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_TRACE_EVENT_FILTER:
25845f
-#if _POSIX_TRACE_EVENT_FILTER > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TRACE_EVENT_FILTER)
25845f
       return _POSIX_TRACE_EVENT_FILTER;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_TRACE_INHERIT:
25845f
-#if _POSIX_TRACE_INHERIT > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TRACE_INHERIT)
25845f
       return _POSIX_TRACE_INHERIT;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
     case _SC_TRACE_LOG:
25845f
-#if _POSIX_TRACE_LOG > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_TRACE_LOG)
25845f
       return _POSIX_TRACE_LOG;
25845f
 #else
25845f
       return -1;
25845f
@@ -1183,14 +1185,14 @@ __sysconf (name)
25845f
       return 0;
25845f
 
25845f
     case _SC_IPV6:
25845f
-#if _POSIX_IPV6 > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_IPV6)
25845f
       return _POSIX_IPV6;
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
 
25845f
     case _SC_RAW_SOCKETS:
25845f
-#if _POSIX_RAW_SOCKETS > 0
25845f
+#if CONF_IS_DEFINED_SET (_POSIX_RAW_SOCKETS)
25845f
       return _POSIX_RAW_SOCKETS;
25845f
 #else
25845f
       return -1;