summaryrefslogtreecommitdiffstats
path: root/test-pledge.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-06 17:33:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-06 17:33:34 +0000
commit76c7674a39f6ce0879ba3aa3140b438db94473e2 (patch)
tree68ab1d5d56311b77087eb0ea26ea0792b18eac37 /test-pledge.c
parenta8ce1f9346beb8f6af8a2704f58ad1be8a491a40 (diff)
downloadmandoc-76c7674a39f6ce0879ba3aa3140b438db94473e2.tar.gz
merge pledge(2) support from OpenBSD
Diffstat (limited to 'test-pledge.c')
-rw-r--r--test-pledge.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-pledge.c b/test-pledge.c
new file mode 100644
index 00000000..ab2dfb47
--- /dev/null
+++ b/test-pledge.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+
+int
+main(void)
+{
+ return !!pledge("stdio", NULL);
+}