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

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