diff options
author | Damien Miller <djm@mindrot.org> | 2015-11-30 09:45:29 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-11-30 09:45:54 +1100 |
commit | 14c887c8393adde2d9fd437d498be30f8c98535c (patch) | |
tree | 7cb75dce1981a58542c11a65bb6986f9ca916212 /openbsd-compat/bsd-pledge.c | |
parent | 452c0b6af5d14c37553e30059bf74456012493f3 (diff) |
stub for pledge(2) for systems that lack it
Diffstat (limited to 'openbsd-compat/bsd-pledge.c')
-rw-r--r-- | openbsd-compat/bsd-pledge.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-pledge.c b/openbsd-compat/bsd-pledge.c new file mode 100644 index 000000000..afce3c002 --- /dev/null +++ b/openbsd-compat/bsd-pledge.c | |||
@@ -0,0 +1,14 @@ | |||
1 | /* Placed in the public domain. */ | ||
2 | |||
3 | #include "includes.h" | ||
4 | |||
5 | #ifndef HAVE_PLEDGE | ||
6 | |||
7 | /* Stub; real implementations wanted. */ | ||
8 | int | ||
9 | pledge(const char *promises, const char *paths[]) | ||
10 | { | ||
11 | return 0; | ||
12 | } | ||
13 | |||
14 | #endif /* HAVE_PLEDGE */ | ||