From c4904bd81b8bd4b023d74e438324432341a4b745 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 18 Jan 2012 14:49:11 +0100 Subject: i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitions No code changes Signed-off-by: Denys Vlasenko --- libc/sysdeps/linux/i386/sigaction.c | 9 ++++----- 1 file 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 -- cgit v1.2.3