summaryrefslogtreecommitdiffstats
path: root/libc/unistd
Commit message (Collapse)AuthorAgeFilesLines
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-184-11/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-1816-69/+1
| | | | | | | | 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>
* daemon: fix up INTERNAL_SYSCALL() usageMike Frysinger2009-09-151-4/+6
| | | | | | | | | | | Make sure we declare the error properly in case a port uses it, and fix the invocation of exit(). Since clone() will be returning a pid, assume that the value will not have the MSB set (negative) to simplify the error test a bit more. If gcc supports it, force this function to always be heavily optimized in a bid to avoid stack usage as much as possible. Signed-off-by: James Coleman <james.coleman@ubicom.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* do not pass 3rd param to open() which do not create filesDenys Vlasenko2009-09-051-12/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= 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>
* Fix daemon build for no-MMU no-threads.Joseph Myers2009-08-041-0/+1
| | | | | | | | | CLONE_VM (used in no-MMU daemon) is defined in <bits/sched.h>. A build with threads ends up including <sched.h> via <pthread.h> via <bits/uClibc_mutex.h>; this indirect include does not happen for a build without threads, so this patch adds a direct <sched.h> include. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
* make sure to block all signals when calling daemon() to prevent delivery ↵Mike Frysinger2009-04-131-1/+13
| | | | while the parent is sharing the stack
* implement daemon() using clone() on no-mmu systems as suggested by Jamie LokierMike Frysinger2009-04-072-15/+26
|
* - expand SUSv3_LEGACYBernhard Reutner-Fischer2008-12-291-0/+4
| | | | - SUSv4_LEGACY part #1 (non-networking)
* hostid: improve extremely unreadable partsDenis Vlasenko2008-12-011-19/+8
| | | | | | | | | | | | | | | | | | | | *: remove checks of sigaction and sigprocmask results in cases where they clearly can't fail: sigaction(known_good_sig) sigprocmask(known_good_how) text data bss dec hex filename - 393 4 0 397 18d libc/pwd_grp/lckpwdf.o + 382 4 0 386 182 libc/pwd_grp/lckpwdf.o - 56 0 0 56 38 libc/signal/sigblock.o + 44 0 0 44 2c libc/signal/sigblock.o - 211 0 0 211 d3 libc/signal/sigset.o + 202 0 0 202 ca libc/signal/sigset.o - 56 0 0 56 38 libc/signal/sigsetmask.o + 44 0 0 44 2c libc/signal/sigsetmask.o - 309 0 0 309 135 libc/unistd/sleep.o + 256 0 0 256 100 libc/unistd/sleep.o
* shring sugnal-relared stuff a bit. BTW why constant memset is not inlined by ↵Denis Vlasenko2008-11-291-8/+8
| | | | | | | | | | | gcc? text data bss dec hex filename - 38015 18096 8636 64747 fceb lib/libpthread-0.9.30-svn.so + 38001 18096 8636 64733 fcdd lib/libpthread-0.9.30-svn.so - 274842 1835 19012 295689 48309 lib/libuClibc-0.9.30-svn.so + 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so
* - hide __libc_{f,}statfs. Thanks to Peter S. Mazinger for mentioning this fact.Bernhard Reutner-Fischer2008-11-252-2/+0
|
* fix "make utils" build failure in ldconfigDenis Vlasenko2008-11-221-0/+1
| | | | | (undefined reference to 'getopt')
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-2011-31/+31
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-209-16/+16
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-184-6/+6
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-4/+4
|
* - whitespace fixesBernhard Reutner-Fischer2008-09-111-2/+2
|
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-272-4/+0
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-236-12/+12
|
* - improve UCLIBC_LINUX_SPECIFICBernhard Reutner-Fischer2008-07-141-2/+2
| | | | | compile-tested only, fixes libc/misc/statfs/fstatfs64.c:29: error: 'fstatfs' undeclared here (not in a function)
* - 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
|
* Revert revision 19345 plus libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-121-7/+2
|
* shrink getopt a bit by using smallints. Run tested (busybox testsuite)Denis Vlasenko2008-06-061-16/+18
| | | | | | | text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2388 12 28 2428 97c libc/unistd/getopt.o
* Revert revision 22027 which totally broke getopt.Bernd Schmidt2008-06-052-18/+20
|
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-034-5/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* add missing includes of unistd.h for smallint usageDenis Vlasenko2008-06-011-1/+0
| | | | | remove a few duplicate includes of unistd.h
* - Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer2008-05-301-1/+1
|
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-201-7/+2
|
* getopt: do not needlessly use static structure.Denis Vlasenko2008-05-202-20/+18
| | | | | | | | | Reorder structure members and change some of them into smallints to reduce bss and text: text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2252 12 0 2264 8d8 libc/unistd/getopt.o
* - remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer2008-05-201-3/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-198-19/+19
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* add hidden_proto's for __uc_mallocDenis Vlasenko2008-02-121-0/+1
| | | | | (patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
* give execlp() its own cache on no-mmu to avoid recursive cache fightingMike Frysinger2008-01-231-37/+57
|
* fix memory corruption on no-mmu from doing multiple execls where earlier ↵Mike Frysinger2008-01-081-10/+3
| | | | execls fail by simply not releasing the memory reserved for the arguments of children processes
* plug a memory leak when using execl* functions on no-mmuMike Frysinger2007-12-221-9/+17
|
* add hidden defs for execv/execlp for completenessMike Frysinger2007-12-221-0/+4
|
* make utent.c, getpass.c use __uc_mallocDenis Vlasenko2007-07-301-2/+6
|
* execXp should go to next PATH dir on any error except ENOEXEC,Denis Vlasenko2007-07-181-3/+3
| | | | | | not just on ENOENT (in particular, on EPERM). At least glibc does so. Fixing this.
* Daniel Jacobowitz: sleep()/usleep() relies on nanosleep() being a cancellationMike Frysinger2007-05-022-2/+2
| | | | | | point but the files have "libc_hidden_proto(nanosleep)" which means it always calls the libc.so version, never the wrapped version in libpthread.so that's a cancellation point.
* 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
|