1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-23 10:12:33 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Adhemerval Zanella 56b98bf1fb alpha: Use Linux generic sigaction implementation
Alpha rt_sigaction syscall uses a slight different kernel ABI than
generic one:

arch/alpha/kernel/signal.c

 90 SYSCALL_DEFINE5(rt_sigaction, int, sig, const struct sigaction __user *, act,
 91                 struct sigaction __user *, oact,
 92                 size_t, sigsetsize, void __user *, restorer)

Similar as sparc, the syscall expects a restorer function.  However
different than sparc, alpha defines the restorer as the 5th argument
(sparc defines as the 4th).

This patch removes the arch-specific alpha sigaction implementation,
adapt the Linux generic one to different restore placements (through
STUB macro), and make alpha use the Linux generic kernel_sigaction
definition.

Checked on alpha-linux-gnu and x86_64-linux-gnu (for sanity).

	* sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
	__syscall_rt_sigaction.
	* sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
	(kernel_sigaction): Use Linux generic defintion.
	(STUB): Define.
	(__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
	* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
	(__syscall_rt_sigaction): Remove implementation.
	(__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
	hidden.
	* sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
	* sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
	INTERNAL_SYSCALL): Remove definitions.
	* sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
	action and signal set size.
	* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
	* sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2018-12-18 19:52:21 -02:00
..
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-12-07 09:17:50 -08:00
2018-03-27 21:28:58 -03:00
2018-01-06 23:35:56 -08:00
2018-10-02 12:29:02 -03:00
2018-12-18 13:35:39 +00:00
2018-12-07 09:17:50 -08:00
2018-12-18 13:35:39 +00:00
2018-11-30 18:42:05 -02:00
2018-04-27 19:11:24 +00:00
2018-04-27 19:11:24 +00:00
2018-07-05 19:00:10 +02:00
2018-07-05 19:00:10 +02:00
2018-07-10 16:14:45 +02:00
2018-05-18 16:50:44 +00:00
2018-12-07 09:17:50 -08:00
2018-05-02 08:43:31 -03:00
2018-12-07 09:17:50 -08:00
2018-12-18 13:35:39 +00:00
2018-12-18 13:35:39 +00:00