]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
authorEric Blake <eblake@redhat.com>
Wed, 14 Oct 2009 04:15:25 +0000 (04:15 +0000)
committerEric Blake <eblake@redhat.com>
Wed, 14 Oct 2009 04:15:25 +0000 (04:15 +0000)
new to POSIX 2008.

newlib/ChangeLog
newlib/libc/include/sys/unistd.h

index c34300856e5ff3b8a37de9770a64e1ca97c6b976..2c69cc57e62bfef3ce4d0739fbc9e5078e7b4725 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-13  Eric Blake  <ebb9@byu.net>
+
+       * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
+       new to POSIX 2008.
+
 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
 
        * libc/include/sys/signal.h: Include <sys/types.h> always.
index a91f105e5508f69d7ec55e7bfb5d41a9eed9c881..cc507a9ea96a101474a4fbbb2cef77ec0e4e6d2a 100644 (file)
@@ -259,7 +259,7 @@ int     _EXFUN(symlink, (const char *__name1, const char *__name2));
 #define STDERR_FILENO   2       /* standard error file descriptor */
 
 /*
- *  sysconf values per IEEE Std 1003.1, 2004 Edition
+ *  sysconf values per IEEE Std 1003.1, 2008 Edition
  */
 
 #define _SC_ARG_MAX                       0
@@ -360,14 +360,18 @@ int     _EXFUN(symlink, (const char *__name1, const char *__name2));
 #define _SC_TRACE_SYS_MAX                89
 #define _SC_TRACE_USER_EVENT_MAX         90
 #define _SC_TYPED_MEMORY_OBJECTS         91
-#define _SC_V6_ILP32_OFF32               92
-#define _SC_XBS5_ILP32_OFF32             _SC_V6_ILP32_OFF32
-#define _SC_V6_ILP32_OFFBIG              93
-#define _SC_XBS5_ILP32_OFFBIG            _SC_V6_ILP32_OFFBIG
-#define _SC_V6_LP64_OFF64                94
-#define _SC_XBS5_LP64_OFF64              _SC_V6_LP64_OFF64
-#define _SC_V6_LPBIG_OFFBIG              95
-#define _SC_XBS5_LPBIG_OFFBIG            _SC_V6_LPBIG_OFFBIG
+#define _SC_V7_ILP32_OFF32               92
+#define _SC_V6_ILP32_OFF32               _SC_V7_ILP32_OFF32
+#define _SC_XBS5_ILP32_OFF32             _SC_V7_ILP32_OFF32
+#define _SC_V7_ILP32_OFFBIG              93
+#define _SC_V6_ILP32_OFFBIG              _SC_V7_ILP32_OFFBIG
+#define _SC_XBS5_ILP32_OFFBIG            _SC_V7_ILP32_OFFBIG
+#define _SC_V7_LP64_OFF64                94
+#define _SC_V6_LP64_OFF64                _SC_V7_LP64_OFF64
+#define _SC_XBS5_LP64_OFF64              _SC_V7_LP64_OFF64
+#define _SC_V7_LPBIG_OFFBIG              95
+#define _SC_V6_LPBIG_OFFBIG              _SC_V7_LPBIG_OFFBIG
+#define _SC_XBS5_LPBIG_OFFBIG            _SC_V7_LPBIG_OFFBIG
 #define _SC_XOPEN_CRYPT                  96
 #define _SC_XOPEN_ENH_I18N               97
 #define _SC_XOPEN_LEGACY                 98
@@ -394,9 +398,12 @@ int     _EXFUN(symlink, (const char *__name1, const char *__name2));
 #define _SC_2_SW_DEV                    119
 #define _SC_2_UPE                       120
 #define _SC_2_VERSION                   121
+#define _SC_THREAD_ROBUST_PRIO_INHERIT  122
+#define _SC_THREAD_ROBUST_PRIO_PROTECT  123
+#define _SC_XOPEN_UUCP                  124
 
 /*
- *  pathconf values per IEEE Std 1003.1, 2004 Edition
+ *  pathconf values per IEEE Std 1003.1, 2008 Edition
  */
 
 #define _PC_LINK_MAX                      0
@@ -414,6 +421,12 @@ int     _EXFUN(symlink, (const char *__name1, const char *__name2));
 #define _PC_FILESIZEBITS                 12
 #define _PC_2_SYMLINKS                   13
 #define _PC_SYMLINK_MAX                  14
+#define _PC_ALLOC_SIZE_MIN               15
+#define _PC_REC_INCR_XFER_SIZE           16
+#define _PC_REC_MAX_XFER_SIZE            17
+#define _PC_REC_MIN_XFER_SIZE            18
+#define _PC_REC_XFER_ALIGN               19
+#define _PC_TIMESTAMP_RESOLUTION         20
 #ifdef __CYGWIN__
 /* Ask for POSIX permission bits support. */
 #define _PC_POSIX_PERMISSIONS            90
@@ -427,35 +440,52 @@ int     _EXFUN(symlink, (const char *__name1, const char *__name2));
 
 #ifdef __CYGWIN__      /* Only defined on Cygwin for now. */
 #define _CS_PATH                               0
-#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS        1
-#define _CS_XBS5_ILP32_OFF32_CFLAGS           _CS_POSIX_V6_ILP32_OFF32_CFLAGS
-#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS       2
-#define _CS_XBS5_ILP32_OFF32_LDFLAGS          _CS_POSIX_V6_ILP32_OFF32_LDFLAGS
-#define _CS_POSIX_V6_ILP32_OFF32_LIBS          3
-#define _CS_XBS5_ILP32_OFF32_LIBS             _CS_POSIX_V6_ILP32_OFF32_LIBS
+#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS        1
+#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS       _CS_POSIX_V7_ILP32_OFF32_CFLAGS
+#define _CS_XBS5_ILP32_OFF32_CFLAGS           _CS_POSIX_V7_ILP32_OFF32_CFLAGS
+#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS       2
+#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS      _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
+#define _CS_XBS5_ILP32_OFF32_LDFLAGS          _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
+#define _CS_POSIX_V7_ILP32_OFF32_LIBS          3
+#define _CS_POSIX_V6_ILP32_OFF32_LIBS         _CS_POSIX_V7_ILP32_OFF32_LIBS
+#define _CS_XBS5_ILP32_OFF32_LIBS             _CS_POSIX_V7_ILP32_OFF32_LIBS
 #define _CS_XBS5_ILP32_OFF32_LINTFLAGS         4
-#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS       5
-#define _CS_XBS5_ILP32_OFFBIG_CFLAGS          _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
-#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS      6
-#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS         _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
-#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS         7
-#define _CS_XBS5_ILP32_OFFBIG_LIBS            _CS_POSIX_V6_ILP32_OFFBIG_LIBS
+#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS       5
+#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS      _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
+#define _CS_XBS5_ILP32_OFFBIG_CFLAGS          _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
+#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS      6
+#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
+#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS         _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
+#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS         7
+#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS        _CS_POSIX_V7_ILP32_OFFBIG_LIBS
+#define _CS_XBS5_ILP32_OFFBIG_LIBS            _CS_POSIX_V7_ILP32_OFFBIG_LIBS
 #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS        8
-#define _CS_POSIX_V6_LP64_OFF64_CFLAGS         9
-#define _CS_XBS5_LP64_OFF64_CFLAGS            _CS_POSIX_V6_LP64_OFF64_CFLAGS
-#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS       10
-#define _CS_XBS5_LP64_OFF64_LDFLAGS           _CS_POSIX_V6_LP64_OFF64_LDFLAGS
-#define _CS_POSIX_V6_LP64_OFF64_LIBS          11
-#define _CS_XBS5_LP64_OFF64_LIBS              _CS_POSIX_V6_LP64_OFF64_LIBS
+#define _CS_POSIX_V7_LP64_OFF64_CFLAGS         9
+#define _CS_POSIX_V6_LP64_OFF64_CFLAGS        _CS_POSIX_V7_LP64_OFF64_CFLAGS
+#define _CS_XBS5_LP64_OFF64_CFLAGS            _CS_POSIX_V7_LP64_OFF64_CFLAGS
+#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS       10
+#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS       _CS_POSIX_V7_LP64_OFF64_LDFLAGS
+#define _CS_XBS5_LP64_OFF64_LDFLAGS           _CS_POSIX_V7_LP64_OFF64_LDFLAGS
+#define _CS_POSIX_V7_LP64_OFF64_LIBS          11
+#define _CS_POSIX_V6_LP64_OFF64_LIBS          _CS_POSIX_V7_LP64_OFF64_LIBS
+#define _CS_XBS5_LP64_OFF64_LIBS              _CS_POSIX_V7_LP64_OFF64_LIBS
 #define _CS_XBS5_LP64_OFF64_LINTFLAGS         12
-#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS      13
-#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS          _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
-#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS     14
-#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS         _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
-#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS        15
-#define _CS_XBS5_LPBIG_OFFBIG_LIBS            _CS_POSIX_V6_LPBIG_OFFBIG_LIBS
+#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS      13
+#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS      _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
+#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS          _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
+#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS     14
+#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
+#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS         _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
+#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS        15
+#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS        _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
+#define _CS_XBS5_LPBIG_OFFBIG_LIBS            _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
 #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS       16
-#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS    17
+#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS    17
+#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS    _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
+#define _CS_POSIX_V7_THREADS_CFLAGS           18
+#define _CS_POSIX_V7_THREADS_LDFLAGS          19
+#define _CS_V7_ENV                            20
+#define _CS_V6_ENV                           _CS_V6_ENV
 #endif
 
 #ifndef __CYGWIN__
This page took 0.056883 seconds and 5 git commands to generate.