[git commit] i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitions

Denys Vlasenko dvlasenk at redhat.com
Wed Jan 18 13:49:11 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=c4904bd81b8bd4b023d74e438324432341a4b745
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

No code changes

Signed-off-by: Denys Vlasenko <dvlasenk at redhat.com>
---
 libc/sysdeps/linux/i386/sigaction.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c
index de0c75d..138b677 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


More information about the uClibc-cvs mailing list