summaryrefslogtreecommitdiff
path: root/libc/unistd/daemon.c
AgeCommit message (Collapse)Author
2016-11-27remove UCLIBC_HAS_LFSWaldemar Brodkorb
2014-10-01remove forced gcc optimizationWaldemar Brodkorb
It was added in 6d6bd8ba78434ecb09395582b5f3e41febd4d4ee, but it is unclear for me, why this is needed or if it is required. I don't think we should depend on some gcc optimization, which might change in the future. Anyway, this breaks c6x toolchain building (ICE), so I remove it. Testsuite run for supported architectures didn't add any new errors.
2012-06-15use open_not_cancel_2 instead of open_not_cancelPeter S. Mazinger
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-07-26daemon: drop cruft incorrectly re-introduced by nptl mergeMike Frysinger
This likes to break nommu systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-17use *_not_cancel variants to avoid accidental cancellations with nptlAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-09-15daemon: fix up INTERNAL_SYSCALL() usageMike Frysinger
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>
2009-09-05do not pass 3rd param to open() which do not create filesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-04Fix daemon build for no-MMU no-threads.Joseph Myers
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>
2009-04-13make sure to block all signals when calling daemon() to prevent delivery ↵Mike Frysinger
while the parent is sharing the stack
2009-04-07implement daemon() using clone() on no-mmu systems as suggested by Jamie LokierMike Frysinger
2008-11-20Last portion of libc_hidden_proto removal.Denis Vlasenko
Appears to build fine (several .configs tried)
2008-11-20next portion of libc_hidden_proto removalDenis Vlasenko
2008-11-18libc_hidden_proto removal, just a few functionsDenis Vlasenko
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2006-07-05replace my @debian.org addr with @uclibc.org. Fixup license onEric Andersen
readelf and ldd to again state that they are GPLv2
2006-03-23Mark some functions as BSD onlyPeter S. Mazinger
2006-02-13Don't compile daemon.c at all for non-MMUPeter S. Mazinger
2006-01-14hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger
missing headers, other jump relocs removed
2005-12-16Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵Peter S. Mazinger
it back
2005-12-08Use internal versionsPeter S. Mazinger
2005-12-07Hide morePeter S. Mazinger
2005-12-07Hide *clnt|pmap|svc* and some rpc. inet/rpc is full of relocs ...Peter S. Mazinger
2005-12-01Hide mostly used functionsPeter S. Mazinger
2005-10-04Do not stub out functions for mmu-less systems. Hide allEric Andersen
prototypes for functions disabled on mmu-less systems.
2004-01-16s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen
2002-10-31Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen
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
2002-01-11Fix indentingEric Andersen
2001-12-19Update my email address. I am no longer andersen@lineo.comEric Andersen
2001-04-23Only compile in daemon() if the target has an MMU.Eric Andersen
-Erik
2001-04-20Add missing header file for daemon.c, add missing functions into unistd.h.Eric Andersen
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
2001-04-03Accomodate mmuless systems.Eric Andersen
2001-04-03Add in daemon.c, now used by busybox.Eric Andersen
-Erik