summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/sigprocmask.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-12-02 15:00:05 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-12-02 15:00:05 +0000
commit60d47abfcfa901aafd85ba49b12d5994d7ef9aae (patch)
tree107d03a1528fc7c327a0410cdf75b3cfaeedc7c8 /testsuites/libtests/POSIX/sigprocmask.c
parent2009-12-02 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-60d47abfcfa901aafd85ba49b12d5994d7ef9aae.tar.bz2
New.
Diffstat (limited to 'testsuites/libtests/POSIX/sigprocmask.c')
-rw-r--r--testsuites/libtests/POSIX/sigprocmask.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/sigprocmask.c b/testsuites/libtests/POSIX/sigprocmask.c
new file mode 100644
index 0000000000..96b437b358
--- /dev/null
+++ b/testsuites/libtests/POSIX/sigprocmask.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <signal.h>
+
+int
+main (void)
+{
+ int status;
+ sigset_t set1, set2;
+
+ status = sigprocmask (SIG_BLOCK, &set1, &set2);
+ status = sigprocmask (SIG_UNBLOCK, &set1, &set2);
+ status = sigprocmask (SIG_SETMASK, &set1, &set2);
+
+ return 0;
+}