summaryrefslogtreecommitdiffstats
path: root/libc/unistd/sysconf.c
Commit message (Collapse)AuthorAgeFilesLines
* sysconf: clock_getres depends on HAS_REALTIMEBernhard Reutner-Fischer2011-04-291-3/+2
| | | | | | Bug was introduced in revision a202cf6f. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sysconf: implement _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLNBernhard Reutner-Fischer2010-08-051-8/+72
| | | | | | perusing the config parser Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* include/param.h: Dont use ARG_MAX from kernel headersKhem Raj2010-07-091-1/+14
| | | | | | | * Use getrlimit for ARG_MAX in sysconf on nptl. * Define NCARGS directly instead of ARG_MAX Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Assorted fixed to get nptl compiling on ARMKhem Raj2010-02-171-3/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Merge remote branch 'origin/master' into nptlAustin Foxley2009-11-281-1/+26
|\ | | | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| * sync confname, environments with glibcBernhard Reutner-Fischer2009-11-261-1/+26
| | | | | | | | | | | | | | Plus related synch. Add a testcase for the sysconf variables based on the one from glibc Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | librt additions that are now possible with nptlAustin Foxley2009-10-171-2/+24
|/ | | | | | | * clock_getcpuclockid, clock_gettime, clock_nanosleep, mq_receive, mq_send, mq_timedreceive, mq_timedsend, _SC_MONOTONIC_CLOCK Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-3/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* handle _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLNBernhard Reutner-Fischer2009-08-051-12/+12
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-3/+3
| | | | | Appears to build fine (several .configs tried)
* - fix build errorBernhard Reutner-Fischer2008-06-161-1/+1
| | | | brk.c:(.text.__GI_sysconf+0xd4): undefined reference to `clock_getres'
* Include sys/syscall.h since we are checking for __NR_clock_getres.Peter Kjellerstedt2008-06-121-0/+1
|
* Patch by Ricard Wanderlof <ricardw at axis dot com>:Peter Kjellerstedt2007-04-131-4/+2
| | | | | | * Add configurable buffer sizes for getpwnam() and getgrnam(). The default buffer size is, as before, 256 (glibc seems to use 1024 by default).
* Recognize _SC_MONOTONIC_CLOCK in sysconf() even if __NR_clock_getresPeter Kjellerstedt2007-01-221-2/+2
| | | | is not defined.
* - repair misplaced #endif that got introduced in r17410. Fixes compilation.Bernhard Reutner-Fischer2007-01-211-1/+1
|
* The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does."Steven J. Hill"2007-01-201-0/+2
|
* Added support for sysconf(_SC_MONOTONIC_CLOCK).Peter Kjellerstedt2006-09-221-0/+7
|
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-141-1/+2
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-5/+6
| | | | missing headers, other jump relocs removed
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-1/+2
|
* Hiding againPeter S. Mazinger2005-11-291-3/+2
|
* 100 JUMP relocs less (remaining 431) by hiding internally used onesPeter S. Mazinger2005-11-261-3/+2
|
* include headers only if the related option is enabledPeter S. Mazinger2005-09-211-0/+2
|
* Cleanup a few of the more egregiously broken sysconf values toEric Andersen2004-07-151-31/+15
| | | | | | | | actually match reality. In particular, _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX were causing us problems with programs such as libglib, since they were always returning -1, which is a bit smaller than the actual passwd and group max buffer sizes. -Erik
* Rip the guts out of the dynamically generated sysconf.c, and live with a simpleEric Andersen2003-11-051-162/+0
| | | | | static version. This will need further work later on, but should do the job for the time being,
* For now, always claim we have exactly one cpu. It shouldEric Andersen2002-12-041-2/+4
| | | | generally be the truth...
* Clean up CLK_TCK situation. clock() and sysconf() now use anManuel Novoa III2002-07-151-4/+5
| | | | | | arch-specific constant value defined in bits/uClibc_clk_tck.h. Default is 100 (common/bits) but alpha uses 1024 following glibc. Override per arch as necessary.
* Oops. Lets try that again.Eric Andersen2001-11-201-0/+2
|
* Can't use CLK_TCK in here since /usr/include/bits/time.h nowEric Andersen2001-11-201-7/+6
| | | | | defines that as __sysconf(_SC_CLK_TCK) causing infinite recursion. -Erik
* Erwin Authried <eauth@softsys.co.at> noticed that _XOPEN_SOURCE isEric Andersen2001-10-141-1/+2
| | | | supposed to be a number
* Update to accomodate the header file changesEric Andersen2001-09-271-1/+6
|
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-4/+4
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Implement getdtablesize(), which is used by the rpc crap.Eric Andersen2001-02-091-1/+1
| | | | -Erik
* Enable auto-generation of a size-optimized sysconf function (saves .5k on i386).Manuel Novoa III2001-01-271-110/+305
|
* Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.aManuel Novoa III2001-01-251-2/+2
| | | | objects with shared uClibc; allow disabling long long support.
* Added missing _SC_2_FORT_RUN case. Fixed _SC_ATEXIT_MAX to match atexit.c.Manuel Novoa III2001-01-171-2/+9
|
* Bad Erik. Repeat after me: "I will always compile before I commit".Eric Andersen2000-11-161-1/+0
| | | | -Erik
* Doh!!! I am an idiot. I had broken malloc by disabling getpagesize(), and IEric Andersen2000-11-161-4/+1
| | | | | didn't even do it for a good reason. Fixed, so malloc should work again... -Erik
* More cleanups. Fix things so tinylogin compiles.Eric Andersen2000-11-041-0/+855
Fix a bug in getdelim -- patch from David Whedon <dwhedon@gordian.com>.