glibc/sysdeps/unix/sysv/linux/sparc
Adhemerval Zanella 5fb7fc9635 posix: Use posix_spawn on system
This patch uses posix_spawn on system implementation.  On Linux this has
the advantage of much lower memory consumption (usually 32 Kb minimum for
the mmap stack area).

Although POSIX does not require, glibc system implementation aims to be
thread and cancellation safe.  The cancellation code is moved to generic
implementation and enabled iff SIGCANCEL is defined (similar on how the
cancellation handler is enabled on nptl-init.c).

Checked on x86_64-linux-gnu, i686-linux-gnu, aarch64-linux-gnu,
arm-linux-gnueabihf, and powerpc64le-linux-gnu.

	* sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
	__sigismember instead of sigismember.
	* sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
	cancel_handler): New definitions.
	(CLEANUP_HANDLER, CLEANUP_RESET): Likewise.
	(DO_LOCK, DO_UNLOCK, INIT_LOCK, ADD_REF, SUB_REF): Remove.
	(do_system): Use posix_spawn instead of fork and execl and remove
	reentracy code.
	* sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
	* sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
	* sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
	* sysdeps/unix/sysv/linux/s390/system.c: Likewise.
	* sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
	* sysdeps/unix/sysv/linux/system.c: Likewise.
2018-11-30 18:42:05 -02:00
..
bits conform: XFAIL siginfo_t si_band test on sparc64 2018-10-25 14:36:57 +02:00
sparc32 Remove the error handling wrapper from pow 2018-11-21 09:58:36 +00:00
sparc64 Remove the error handling wrapper from pow 2018-11-21 09:58:36 +00:00
sys Unify more sys/procfs.h headers. 2018-09-25 16:49:25 +00:00
Implies
Makefile Add VDSO support to sparc. 2018-10-18 11:44:32 -07:00
Versions Add VDSO support to sparc. 2018-10-18 11:44:32 -07:00
a.out.h
aio_cancel.c
configure
configure.ac
dl-cache.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getrlimit64.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getshmlba.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
init-first.c Add VDSO support to sparc. 2018-10-18 11:44:32 -07:00
kernel-features.h Remove __ASSUME_SOCKETCALL. 2018-11-08 20:28:07 +00:00
kernel_sigaction.h linux: Consolidate sigaction implementation 2018-04-05 17:09:50 -03:00
kernel_termios.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ldd-rewrite.sed
libc-vdso.h Add VDSO support to sparc. 2018-10-18 11:44:32 -07:00
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
pt-vfork.S
readelflib.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
rt-sysdep.c
sysdep.c
sysdep.h Add VDSO support to sparc. 2018-10-18 11:44:32 -07:00