summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-12-04 15:17:31 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-12-04 15:17:31 +0000
commit4583cac88e4dcecc083a0c4996d6f0272fa3294d (patch)
tree5bfb16c80becb57fa2c1ed59604a9a66a84f4862 /testsuites/libtests/POSIX
parent2009-12-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff)
downloadrtems-4583cac88e4dcecc083a0c4996d6f0272fa3294d.tar.bz2
New.
Diffstat (limited to 'testsuites/libtests/POSIX')
-rw-r--r--testsuites/libtests/POSIX/sigaddset.c19
-rw-r--r--testsuites/libtests/POSIX/sigdelset.c19
-rw-r--r--testsuites/libtests/POSIX/sigemptyset.c18
-rw-r--r--testsuites/libtests/POSIX/sigismember.c19
4 files changed, 75 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/sigaddset.c b/testsuites/libtests/POSIX/sigaddset.c
new file mode 100644
index 0000000000..56f90a7715
--- /dev/null
+++ b/testsuites/libtests/POSIX/sigaddset.c
@@ -0,0 +1,19 @@
+/*
+ * 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)
+{
+ sigset_t set;
+ int status;
+ status = sigaddset (&set, 21);
+
+ return status;
+}
diff --git a/testsuites/libtests/POSIX/sigdelset.c b/testsuites/libtests/POSIX/sigdelset.c
new file mode 100644
index 0000000000..859df18e74
--- /dev/null
+++ b/testsuites/libtests/POSIX/sigdelset.c
@@ -0,0 +1,19 @@
+/*
+ * 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)
+{
+ sigset_t set;
+ int status;
+ status = sigdelset (&set, 21);
+
+ return status;
+}
diff --git a/testsuites/libtests/POSIX/sigemptyset.c b/testsuites/libtests/POSIX/sigemptyset.c
new file mode 100644
index 0000000000..def1d3c888
--- /dev/null
+++ b/testsuites/libtests/POSIX/sigemptyset.c
@@ -0,0 +1,18 @@
+/*
+ * 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)
+{
+ sigset_t set;
+ int status = sigemptyset (&set);
+
+ return status;
+}
diff --git a/testsuites/libtests/POSIX/sigismember.c b/testsuites/libtests/POSIX/sigismember.c
new file mode 100644
index 0000000000..802fcd568d
--- /dev/null
+++ b/testsuites/libtests/POSIX/sigismember.c
@@ -0,0 +1,19 @@
+/*
+ * 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)
+{
+ sigset_t set;
+ int status;
+ status = sigismember(&set, 21);
+
+ return status;
+}