summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2012-01-18 14:49:11 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2012-01-18 14:49:11 +0100
commitc4904bd81b8bd4b023d74e438324432341a4b745 (patch)
tree7b9fab9bf9213d50ec2f4165ff9fe3a248dd6d0a /libc/sysdeps/linux/i386
parentd8d695731db39a03010cc0051c6fbe939959bbf6 (diff)
i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitions
No code changes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c
index de0c75ded..138b67718 100644
--- a/libc/sysdeps/linux/i386/sigaction.c
+++ b/libc/sysdeps/linux/i386/sigaction.c
@@ -109,16 +109,16 @@ libc_hidden_weak(sigaction)
appropriate GDB maintainer. */
#define RESTORE(name, syscall) RESTORE2(name, syscall)
-#define RESTORE2(name, syscall) \
+
+#ifdef __NR_rt_sigaction
+/* The return code for realtime-signals. */
+# define RESTORE2(name, syscall) \
__asm__ ( \
".text\n" \
"__" #name ":\n" \
" movl $" #syscall ", %eax\n" \
" int $0x80\n" \
);
-
-#ifdef __NR_rt_sigaction
-/* The return code for realtime-signals. */
RESTORE(restore_rt, __NR_rt_sigreturn)
#endif
@@ -133,6 +133,5 @@ __asm__ ( \
" movl $" #syscall ", %eax\n" \
" int $0x80\n" \
);
-
RESTORE(restore, __NR_sigreturn)
#endif