From 27fbcf79bc05e63f8687e61ce83fb29c77683b4a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 13 Mar 2011 00:29:45 +0100 Subject: signal.h: move prototypes for __syscall_[rt_]sigaction to common place solve inconsistency between archs NPTL should not use __syscall_rt_sigaction at all, for now it needs to be visible Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/__syscall_rt_sigaction.c | 7 ++----- libc/sysdeps/linux/common/__syscall_sigaction.c | 3 +-- libc/sysdeps/linux/common/bits/kernel_sigaction.h | 12 ------------ 3 files changed, 3 insertions(+), 19 deletions(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/__syscall_rt_sigaction.c b/libc/sysdeps/linux/common/__syscall_rt_sigaction.c index 006b38a2a..723bf2e12 100644 --- a/libc/sysdeps/linux/common/__syscall_rt_sigaction.c +++ b/libc/sysdeps/linux/common/__syscall_rt_sigaction.c @@ -12,11 +12,8 @@ #ifdef __NR_rt_sigaction #include -int __syscall_rt_sigaction (int __signum, const struct sigaction *__act, - struct sigaction *__oldact, size_t __size); - #define __NR___syscall_rt_sigaction __NR_rt_sigaction _syscall4(int, __syscall_rt_sigaction, int, signum, - const struct sigaction *, act, struct sigaction *, oldact, - size_t, size) + const struct sigaction *, act, struct sigaction *, oldact, + size_t, size) #endif diff --git a/libc/sysdeps/linux/common/__syscall_sigaction.c b/libc/sysdeps/linux/common/__syscall_sigaction.c index ae0f01e9e..98e6637ea 100644 --- a/libc/sysdeps/linux/common/__syscall_sigaction.c +++ b/libc/sysdeps/linux/common/__syscall_sigaction.c @@ -12,8 +12,7 @@ #ifndef __NR_rt_sigaction #define __NR___syscall_sigaction __NR_sigaction #include -int __syscall_sigaction (int __signum, const struct sigaction *__act, struct sigaction *__oldact) attribute_hidden; _syscall3(int, __syscall_sigaction, int, signum, const struct sigaction *, - act, struct sigaction *, oldact) + act, struct sigaction *, oldact) #endif diff --git a/libc/sysdeps/linux/common/bits/kernel_sigaction.h b/libc/sysdeps/linux/common/bits/kernel_sigaction.h index 0a35ac8cb..5c8726058 100644 --- a/libc/sysdeps/linux/common/bits/kernel_sigaction.h +++ b/libc/sysdeps/linux/common/bits/kernel_sigaction.h @@ -19,18 +19,6 @@ struct old_kernel_sigaction { unsigned long sa_flags; void (*sa_restorer)(void); }; -/* In uclibc, userspace struct sigaction is identical to - * "new" struct kernel_sigaction (one from the Linux 2.1.68 kernel). - * See sigaction.h - */ - -extern int __syscall_sigaction(int, const struct old_kernel_sigaction *, - struct old_kernel_sigaction *); - #endif - -extern int __syscall_rt_sigaction(int, const struct sigaction *, - struct sigaction *, size_t); - #endif /* _BITS_SIGACTION_STRUCT_H */ -- cgit v1.2.3