aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-03-13 16:05:44 +0000
committerRichard Henderson <rth@redhat.com>2007-03-13 16:05:44 +0000
commit22771b82f523fd8126fc9b0e828dd9ce83bb418c (patch)
tree38b452748491273dca8f04123f81830cf1fc282d
parent5b455ff91ed3854c11674e457888622748bc5c7f (diff)
downloadglibc-22771b82f523fd8126fc9b0e828dd9ce83bb418c.tar.xz
glibc-22771b82f523fd8126fc9b0e828dd9ce83bb418c.zip
* sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
__sigsuspend_nocancel.
-rw-r--r--sysdeps/unix/sysv/linux/alpha/sigsuspend.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S
index 48c3f271c7..6863c07ec1 100644
--- a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S
+++ b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S
@@ -20,6 +20,19 @@
/* sigsuspend is a special syscall since it needs to dereference the
sigset. This will have to change when we have more than 64 signals. */
+#ifndef NO_CANCELLATION
+#include <sysdep.h>
+
+#undef PSEUDO_PREPARE_ARGS
+#define PSEUDO_PREPARE_ARGS ldq a0, 0(a0);
+
+PSEUDO(__sigsuspend_nocancel, sigsuspend, 1)
+ ret
+/* Use END, not PSEUDO_END, so that we don't issue two $syscall_error
+ symbols; we'll jump into __sigsuspend for the error case. */
+END(__sigsuspend_nocancel)
+#endif /* NO_CANCELLATION */
+
#include <sysdep-cancel.h>
#undef PSEUDO_PREPARE_ARGS