From: Jeff Johnston Date: Tue, 12 Dec 2000 23:41:23 +0000 (+0000) Subject: 2000-12-12 Jeff Johnston X-Git-Tag: newlib-1_9_0~10 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=cbd193369055c65b90a152d34ba1897afd5f6a09;p=newlib-cygwin.git 2000-12-12 Jeff Johnston * libc/include/sys/unistd.h: Restored Cygwin _SC constants and moved new constants appropriately so Cygwin will build. --- diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 564a4b4c6..4a3a54b15 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2000-12-12 Jeff Johnston + + * libc/include/sys/unistd.h: Restored Cygwin _SC + constants and moved new constants appropriately + so Cygwin will build. + 2000-12-11 Joel Sherrill * Merge RTEMS specific .h files into main libc/include. diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 9d87365b4..cfb47fa25 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -69,7 +69,7 @@ int _EXFUN(rmdir, (const char *__path )); #if defined(__rtems__) void * _EXFUN(sbrk, (ptrdiff_t __incr)); #else -void * _EXFUN(sbrk, (size_t __incr)); +void * _EXFUN(sbrk, (size_t __incr)); #endif #if defined(__CYGWIN__) int _EXFUN(setegid, (gid_t __gid )); @@ -156,10 +156,12 @@ long _EXFUN(sysconf, (int __name)); #define _SC_SAVED_IDS 6 #define _SC_VERSION 7 #define _SC_PAGESIZE 8 -#define _SC_AIO_LISTIO_MAX 9 -#define _SC_AIO_MAX 10 -#define _SC_AIO_PRIO_DELTA_MAX 11 -#define _SC_DELAYTIMER_MAX 12 +/* CYGWIN-specific values .. do not touch */ +#define _SC_NPROCESSORS_CONF 9 +#define _SC_NPROCESSORS_ONLN 10 +#define _SC_PHYS_PAGES 11 +#define _SC_AVPHYS_PAGES 12 +/* end of CYGWIN-specific values */ #define _SC_MQ_OPEN_MAX 13 #define _SC_MQ_PRIO_MAX 14 #define _SC_RTSIG_MAX 15 @@ -182,15 +184,15 @@ long _EXFUN(sysconf, (int __name)); #define _SC_SHARED_MEMORY_OBJECTS 31 #define _SC_SYNCHRONIZED_IO 32 #define _SC_TIMERS 33 +#define _SC_AIO_LISTIO_MAX 34 +#define _SC_AIO_MAX 35 +#define _SC_AIO_PRIO_DELTA_MAX 36 +#define _SC_DELAYTIMER_MAX 37 /* * P1003.1c/D10, p. 52 adds the following. */ -#define _SC_GETGR_R_SIZE_MAX 34 -#define _SC_GETPW_R_SIZE_MAX 35 -#define _SC_LOGIN_NAME_MAX 36 -#define _SC_THREAD_DESTRUCTOR_ITERATIONS 37 #define _SC_THREAD_KEYS_MAX 38 #define _SC_THREAD_STACK_MIN 39 #define _SC_THREAD_THREADS_MAX 40 @@ -206,6 +208,10 @@ long _EXFUN(sysconf, (int __name)); #define _SC_THREAD_PRIO_CEILING _SC_THREAD_PRIO_PROTECT #define _SC_THREAD_PROCESS_SHARED 48 #define _SC_THREAD_SAFE_FUNCTIONS 49 +#define _SC_GETGR_R_SIZE_MAX 50 +#define _SC_GETPW_R_SIZE_MAX 51 +#define _SC_LOGIN_NAME_MAX 52 +#define _SC_THREAD_DESTRUCTOR_ITERATIONS 53 # define _PC_LINK_MAX 0 # define _PC_MAX_CANON 1