summaryrefslogtreecommitdiffstats
path: root/libc/unistd/daemon.c
Commit message (Collapse)AuthorAgeFilesLines
* not-cancel: use *_not_cancel variants directlyAustin Foxley2009-09-211-23/+16
| | | | | | add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* daemon: fix up INTERNAL_SYSCALL() usageMike Frysinger2009-09-181-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* do not pass 3rd param to open() which do not create filesDenys Vlasenko2009-09-181-12/+4
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix daemon build for no-MMU no-threads.Joseph Myers2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix whitespaceAustin Foxley2009-05-261-2/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Only use fstat64 when LFS is enabledAustin Foxley2009-05-201-1/+9
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merged revisions 26046,26062,26066,26078 via svnmerge from Khem Raj2009-04-141-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://kraj@svn.uclibc.org/svn/trunk/uClibc ........ r26046 | aldot | 2009-04-09 10:48:17 -0700 (Thu, 09 Apr 2009) | 2 lines - fix typo ........ r26062 | austinf | 2009-04-10 17:08:47 -0700 (Fri, 10 Apr 2009) | 4 lines sparc also needs CONSTANT_STRING_GOT_FIXUP for doing debug printing in ldso Signed-off-by: Austin Foxley <austinf@cetoncorp.com> ........ r26066 | austinf | 2009-04-11 12:30:04 -0700 (Sat, 11 Apr 2009) | 5 lines for sparc v8 MAGIC1 was defined incorrectly Signed-off-by: Austin Foxley <austinf@cetoncorp.com> ........ r26078 | vapier | 2009-04-12 17:06:40 -0700 (Sun, 12 Apr 2009) | 1 line make sure to block all signals when calling daemon() to prevent delivery while the parent is sharing the stack ........
* Merged revisions 25971,26002 via svnmerge from Khem Raj2009-04-071-8/+26
| | | | | | | | | | | | | | svn+ssh://svn.uclibc.org/svn/trunk/uClibc ........ r25971 | vapier | 2009-04-05 23:40:57 -0700 (Sun, 05 Apr 2009) | 1 line apply getline() fix from linux kernel ........ r26002 | vapier | 2009-04-06 22:52:48 -0700 (Mon, 06 Apr 2009) | 1 line implement daemon() using clone() on no-mmu systems as suggested by Jamie Lokier ........
* Synch with trunk @ 24165Carmelo Amoroso2008-11-271-6/+6
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24087Carmelo Amoroso2008-11-181-1/+1
| | | | Step 10: libc_hidden_removal
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-311-2/+2
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge from trunk."Steven J. Hill"2006-08-211-64/+81
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-071-2/+3
|
* Merge from trunk."Steven J. Hill"2005-12-101-0/+1
|
* Merge from trunk."Steven J. Hill"2005-12-081-0/+3
|
* Merge from trunk."Steven J. Hill"2005-12-021-2/+2
|
* Sync with trunk."Steven J. Hill"2005-10-061-3/+2
|
* 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