Skip to content

Commit a845928

Browse files
committed
Auto merge of #2178 - williewillus:openbsd-unveil, r=JohnTitor
Add OpenBSD unveil(2) https://man.openbsd.org/unveil
2 parents 2261e1a + b7b574a commit a845928

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ ttyname_r
10711071
udf_args
10721072
ufs_args
10731073
unmount
1074+
unveil
10741075
useconds_t
10751076
uselocale
10761077
utimensat

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)