glibc/sysdeps/unix/sysv/linux/sparc
Adhemerval Zanella d39c0a459e sparc: Fix arch_fork definition
This patch fixes 3dc214977 for sparc.  Different than other architectures
SPARC kernel Kconfig does not define CONFIG_CLONE_BACKWARDS, however it
has the same ABI as if it did, implemented by sparc-specific code
(sparc_do_fork).

It also has a unique return value convention for clone:

   Parent -->  %o0 == child's  pid, %o1 == 0
   Child  -->  %o0 == parent's pid, %o1 == 1

Which required a special macro to correct issue the syscall
(INLINE_CLONE_SYSCALL).

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

	* sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
	(arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
	* sysdeps/unix/sysv/linux/sparc/kernel-features.h
	(__ASSUME_CLONE_BACKWARDS): Define.
2018-03-27 21:28:58 -03:00
..
bits hurd: Fix includability of <hurd/signal.h> in all standards 2018-03-05 22:50:29 +01:00
sparc32 Remove unused frame.h header, sigcontextinfo.h macros. 2018-03-22 16:40:51 +00:00
sparc64 Remove unused frame.h header, sigcontextinfo.h macros. 2018-03-22 16:40:51 +00:00
sys Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00: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
Implies
kernel_termios.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
kernel-features.h sparc: Fix arch_fork definition 2018-03-27 21:28:58 -03:00
ldd-rewrite.sed
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile Remove abi-*-options compiler flags 2017-08-28 17:16:53 +02: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 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
system.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Versions Revert {send,sendm,recv,recvm}msg conformance changes 2016-06-10 11:58:16 -03:00