Skip to content

Commit 46dd7c9

Browse files
committed
Add OpenBSD unveil(2)
1 parent 2261e1a commit 46dd7c9

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+1
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,7 @@ extern "C" {
14651465
envp: *const *const ::c_char,
14661466
) -> ::c_int;
14671467
pub fn pledge(promises: *const ::c_char, execpromises: *const ::c_char) -> ::c_int;
1468+
pub fn unveil(path: *const ::c_char, permissions: *const ::c_char) -> ::c_int;
14681469
pub fn strtonum(
14691470
nptr: *const ::c_char,
14701471
minval: ::c_longlong,

0 commit comments

Comments
 (0)