about summary refs log tree commit diff
path: root/sysdeps/posix/spawni.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright dates with scripts/update-copyrights.Joseph Myers2017-01-011-1/+1
|
* Update copyright dates with scripts/update-copyrights.Joseph Myers2016-01-041-1/+1
|
* Fix posix_spawn getrlimit64 namespace (bug 17991).Joseph Myers2015-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | posix_spawn (a standard POSIX function) brings in a use of getrlimit64 (not a standard POSIX function). This patch fixes this by using __getrlimit64 and making getrlimit64 a weak alias. This is more complicated than some such changes because of files that define getrlimit64 in their own way using symbol versioning after including the main sysdeps/unix/sysv/linux/getrlimit64.c with a getrlimit macro defined. There are various existing patterns for such cases in glibc; the one I've used here is that a getrlimit64 macro disables the weak_alias / libc_hidden_weak calls, leaving it to the including file to define the getrlimit64 name in whatever way is appropriate. Tested for x86_64 and x86 that installed stripped shared libraries are unchanged by this patch. [BZ #17991] * include/sys/resource.h (__getrlimit64): Declare. Use libc_hidden_proto. * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64 and define as weak alias of __getrlimit64. Use libc_hidden_weak. * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of getrlimit64. * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to __getrlimit64. [!getrlimit64] (getrlimit64): Define as weak alias of __getrlimit64. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define using __getrlimit64 not __new_getrlimit64. (__GI_getrlimit64): Likewise. * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64): Likewise. (__GI_getrlimit64): Likewise. (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64. * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (getrlimit): Add __getrlimit64 alias. * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit): Likewise. * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace): Remove variable. (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
* Update copyright dates with scripts/update-copyrights.Joseph Myers2015-01-021-1/+1
|
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-011-1/+1
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-021-1/+1
|
* Fix lots of bitrot for stub configurations.Roland McGrath2012-07-301-1/+2
|
* Add missing headersAndreas Schwab2012-02-271-1/+2
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-091-3/+2
|
* Clean up disabling of script_executeRoland McGrath2011-09-191-9/+11
|
* Try shell in posix_spawn* only in compat modeUlrich Drepper2011-09-051-4/+10
|
* Fix sched_setscheduler call in spawn implementationUlrich Drepper2011-05-111-3/+1
|
* Relax requirement on close in child created by posix_spawn.Ulrich Drepper2011-01-131-3/+17
|
* * sysdeps/posix/spawni.c (__spawni): Use local_seteuid andUlrich Drepper2006-06-041-1/+3
| | | | | | local_setegid instead of seteuid and setegid. * sysdeps/generic/local-setxid.h: New file. * sysdeps/unix/sysv/linux/local-setxid.h: New file.
* * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.Ulrich Drepper2006-06-041-5/+6
|
* (__spawni): Automatically recognize some more cases when we can use vfork.Ulrich Drepper2005-09-131-2/+10
|
* (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper2004-12-221-18/+7
|
* 2.5-18.1Jakub Jelinek2007-07-121-7/+18
|
* Update.Ulrich Drepper2004-09-121-6/+9
| | | | | | | | * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK. * posix/spawnattr_setflags.c: Check whether any unknown bit is set in FLAGS parameter and fail if this is the case. * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is set.
* Update.Ulrich Drepper2003-07-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | More cancellation handling fixups. * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel. * sysdeps/generic/not-cancel.h: Likewise. * catgets/open_catalog.c: Use not-cancelable syscalls. * time/Makefile (CFLAGS-getdate.c): Add -fexceptions. * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable. * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable. * dlfcn/dlfcn.h: Mark dlopen with __THROW again. * io/fcntl.h: Don't mark posix_fallocate with __THROW. * libio/fileops.c: Use not-cancelable syscalls for fclose. * libio/iopopen.c: Use no-cancelable syscalls. * libio/stdio.h: Mark popen and pclose with __THROW again. * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions. * misc/syslog.c: Fix locking and cancellation cleanup handling. * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW. * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c, CFLAGS-tempname.c): Add -fexceptions. * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions. * string/string.h: Mark strerror and strerror_r with _THROW again. * sysdeps/generic/unwind.inc: New file. Copied from gcc. * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove #ifs since we now need all the code compiled. * sysdeps/posix/spawni.c: Use close_not_cancel instead of close. * sysdeps/unix/closedir.c: Use not-cancelable syscalls. * sysdeps/unix/opendir.c: Likewise.
* * include/stdlib.h: Use libc_hidden_proto for qsort.Roland McGrath2002-08-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * stdlib/msort.c: Add libc_hidden_def. * include/utime.h: Use libc_hidden_proto for utime. * sysdeps/generic/utime.c: Add libc_hidden_def. * sysdeps/unix/utime.c: Likewise. * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset * sysdeps/posix/sprofil.c (__sprofil): Likewise. * shadow/lckpwdf.c (__lckpwdf): Likewise (both). * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember * include/signal.h: Use libc_hidden_proto for raise, sigemptyset, sigfillset, sigismember, __sigpause, __libc_current_sigrtmin, and __libc_current_sigrtmax. * signal/sigismem.c: Add libc_hidden_def. * signal/sigfillset.c: Likewise. * signal/sigempty.c: Likewise. * sysdeps/generic/sigpause.c (__sigpause): Likewise. * sysdeps/posix/sigpause.c (__sigpause): Likewise. * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
* Update.Ulrich Drepper2001-07-161-1/+1
| | | | | | | | | | | | | | | 2001-07-16 Andreas Schwab <schwab@suse.de> * sysdeps/posix/spawni.c: Fix typo when iterating over signal numbers. 2001-07-16 Andreas Schwab <schwab@suse.de> * math/libm-test.inc (check_float_internal): Fix sign bit test of infinities. 2001-07-16 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/fpu/e_expl.c (__ieee754_expl): Make it PIC friendly.
* Update to LGPL v2.1.Andreas Jaeger2001-07-061-8/+8
| | | | | | | | | | | | | | 2001-07-06 Paul Eggert <eggert@twinsun.com> * manual/argp.texi: Remove ignored LGPL copyright notice; it's not appropriate for documentation anyway. * manual/libc-texinfo.sh: "Library General Public License" -> "Lesser General Public License". 2001-07-06 Andreas Jaeger <aj@suse.de> * All files under GPL/LGPL version 2: Place under LGPL version 2.1.
* * posix/spawni.c: Moved to ...Roland McGrath2001-06-171-0/+278
* sysdeps/posix/spawni.c: ... here. * sysdeps/generic/spawni.c: New file.