diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 17:33:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 17:33:34 +0000 |
commit | 76c7674a39f6ce0879ba3aa3140b438db94473e2 (patch) | |
tree | 68ab1d5d56311b77087eb0ea26ea0792b18eac37 /test-pledge.c | |
parent | a8ce1f9346beb8f6af8a2704f58ad1be8a491a40 (diff) | |
download | mandoc-76c7674a39f6ce0879ba3aa3140b438db94473e2.tar.gz |
merge pledge(2) support from OpenBSD
Diffstat (limited to 'test-pledge.c')
-rw-r--r-- | test-pledge.c | 7 |
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); +} |