__xpg_sigpause

Joakim Tjernlund joakim.tjernlund at transmode.se
Sun Nov 13 17:27:35 UTC 2005


This recently went into uClibc:

--- trunk/uClibc/include/signal.h	2005-11-10 22:52:23 UTC (rev 12206)
+++ trunk/uClibc/include/signal.h	2005-11-10 23:35:37 UTC (rev 12207)
@@ -159,7 +159,7 @@
 # define sigpause(mask) __sigpause ((mask), 0)  #else  # ifdef __USE_XOPEN -#  if 0 /* def __GNUC__ */
+#  ifdef __GNUC__
 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");  #  else
 /* Remove a signal from the signal mask and suspend the process.  */

Modified: trunk/uClibc/libc/signal/sigpause.c
===================================================================
--- trunk/uClibc/libc/signal/sigpause.c	2005-11-10 22:52:23 UTC (rev 12206)
+++ trunk/uClibc/libc/signal/sigpause.c	2005-11-10 23:35:37 UTC (rev 12207)
@@ -63,3 +63,9 @@
 {
   return __sigpause (mask, 0);
 }
+
+int __xpg_sigpause (int sig)
+{
+  return __sigpause (sig, 1);
+}
+

Do we really need to define a __xpg_sigpause symbol?
Can't we just have:
#  define sigpause(sig) __sigpause ((sig), 1)

  Jocke




More information about the uClibc mailing list