Commit Graph
12 Commits
Author SHA1 Message Date
Rich Felker 9a7fac7934 let sysconf accurately report # of cpus available
i've been trying out openmp and it seems like it won't be much use
without this...
2012-05-13 00:44:35 -04:00
Rich Felker c613125966 fix broken sysconf when correct value is -1
this caused glib to try to allocate >2gb for getpwnam_r, and probably
numerous other problems.
2012-04-21 11:45:07 -04:00
Rich Felker 2e0c1fed36 sysconf support for dynamic limits (open files and processes) 2012-03-22 01:00:35 -04:00
Rich Felker b3b00d11e8 sysconf for PTHREAD_KEYS_MAX 2011-10-03 00:03:19 -04:00
Rich Felker c0f344160d in pathconf, -1, not 0, means unsupported.. syncio presumably works, too. 2011-08-16 23:23:15 -04:00
Rich Felker 3e082df3cc fix bogus pathconf result for file size bits 2011-08-16 23:18:30 -04:00
Rich Felker 2b0cedac8d define MQ_PRIO_MAX 2011-06-07 15:05:04 -04:00
Rich Felker 67e793e5e1 better fix sysconf pthread stack min 2011-04-08 12:16:24 -04:00
Rich Felker 5e72cb4a36 consistency with pthread stack min in limits.h 2011-04-08 12:15:37 -04:00
Rich Felker 81af503610 fix sem_open and sem_close to obey posix semantics
multiple opens of the same named semaphore must return the same
pointer, and only the last close can unmap it. thus the ugly global
state keeping track of mappings. the maximum number of distinct named
semaphores that can be opened is limited sufficiently small that the
linear searches take trivial time, especially compared to the syscall
overhead of these functions.
2011-03-10 21:34:19 -05:00
Rich Felker c255e5542d put confstr.c with the other conf functions 2011-02-14 19:13:18 -05:00
Rich Felker 0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00