aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit7ab4e1278a5b8ac4289c450b2bf85da2aad06ba4 (patch)
treeefe602222ebf45e9e6f716c8795ff1f52faa4163 /test-pledge.c
parent3fffa6c6072826f70aebe72863968bffb9d714cc (diff)
downloadmandoc-7ab4e1278a5b8ac4289c450b2bf85da2aad06ba4.tar.gz
mandoc-7ab4e1278a5b8ac4289c450b2bf85da2aad06ba4.tar.zst
mandoc-7ab4e1278a5b8ac4289c450b2bf85da2aad06ba4.zip
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);
+}