From: Corinna Vinschen Date: Thu, 13 Apr 2006 12:14:05 +0000 (+0000) Subject: * sysconf.cc (sysconf): Add _SC_THREADS, _SC_THREAD_ATTR_STACKSIZE, X-Git-Tag: pre-ptymaster-archetype~167 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=414969016e34b370e17ce4754bfcf23435f028f3;p=newlib-cygwin.git * sysconf.cc (sysconf): Add _SC_THREADS, _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PROCESS_SHARED, _SC_THREAD_SAFE_FUNCTIONS, _SC_TIMERS handling. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5e4f22c79..6512b56f9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2006-04-13 Corinna Vinschen + + * sysconf.cc (sysconf): Add _SC_THREADS, _SC_THREAD_ATTR_STACKSIZE, + _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PROCESS_SHARED, + _SC_THREAD_SAFE_FUNCTIONS, _SC_TIMERS handling. + 2006-04-12 Corinna Vinschen Christopher Faylor diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index bdbbb99be..be0d2cd29 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -125,6 +125,20 @@ sysconf (int in) return TTY_NAME_MAX; case _SC_MEMLOCK_RANGE: return _POSIX_MEMLOCK_RANGE; + case _SC_SEMAPHORES: + return _POSIX_SEMAPHORES; + case _SC_THREADS: + return _POSIX_THREADS; + case _SC_THREAD_ATTR_STACKSIZE: + return _POSIX_THREAD_ATTR_STACKSIZE; + case _SC_THREAD_PRIORITY_SCHEDULING: + return _POSIX_THREAD_PRIORITY_SCHEDULING; + case _SC_THREAD_PROCESS_SHARED: + return _POSIX_THREAD_PROCESS_SHARED; + case _SC_THREAD_SAFE_FUNCTIONS: + return _POSIX_THREAD_SAFE_FUNCTIONS; + case _SC_TIMERS: + return _POSIX_TIMERS; } /* Invalid input or unimplemented sysconf name */