summaryrefslogtreecommitdiffstats
path: root/libc/unistd/daemon.c
Commit message (Collapse)AuthorAgeFilesLines
* daemon: drop cruft incorrectly re-introduced by nptl mergeMike Frysinger2010-07-261-7/+0
| | | | | | This likes to break nommu systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use *_not_cancel variants to avoid accidental cancellations with nptlAustin Foxley2009-10-171-6/+45
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.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>
* 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-071-13/+26
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-4/+4
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-2/+2
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-2/+2
|
* replace my @debian.org addr with @uclibc.org. Fixup license onEric Andersen2006-07-051-1/+1
| | | | readelf and ldd to again state that they are GPLv2
* Mark some functions as BSD onlyPeter S. Mazinger2006-03-231-0/+3
|
* Don't compile daemon.c at all for non-MMUPeter S. Mazinger2006-02-131-3/+0
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-58/+42
| | | | missing headers, other jump relocs removed
* Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵Peter S. Mazinger2005-12-161-2/+3
| | | | it back
* Use internal versionsPeter S. Mazinger2005-12-081-0/+1
|
* Hide morePeter S. Mazinger2005-12-071-0/+1
|
* Hide *clnt|pmap|svc* and some rpc. inet/rpc is full of relocs ...Peter S. Mazinger2005-12-071-0/+2
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-2/+2
|
* Do not stub out functions for mmu-less systems. Hide allEric Andersen2005-10-041-3/+2
| | | | prototypes for functions disabled on mmu-less systems.
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-161-1/+1
|
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-0/+5
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* Fix indentingEric Andersen2002-01-111-21/+21
|
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-18/+15
|
* Only compile in daemon() if the target has an MMU.Eric Andersen2001-04-231-5/+2
| | | | -Erik
* Add missing header file for daemon.c, add missing functions into unistd.h.Eric Andersen2001-04-201-0/+1
| | | | | | | I still need to implement getlogin.c fpathconf.c, but they are required for IEEE Std. 1003.13-1998 POSIX_FILE_SYSTEM conformance and we don't have them yet. But we will very very soon. :-) -Erik
* Accomodate mmuless systems.Eric Andersen2001-04-031-0/+9
|
* Add in daemon.c, now used by busybox.Eric Andersen2001-04-031-0/+95
-Erik