* 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.
This commit is contained in:
parent
2e9d484382
commit
414969016e
|
@ -1,3 +1,9 @@
|
|||
2006-04-13 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* 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 <corinna@vinschen.de>
|
||||
Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue