Skip to content

Commit

Permalink
Merge pull request rust-lang#444 from semarie/pledge
Browse files Browse the repository at this point in the history
add pledge(2) syscall.
  • Loading branch information
alexcrichton authored Nov 8, 2016
2 parents b367659 + 4d615e7 commit 89ddad8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/netbsdlike/openbsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ extern {
newlen: ::size_t)
-> ::c_int;
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
pub fn pledge(promises: *const ::c_char,
paths: *mut *const ::c_char) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit 89ddad8

Please sign in to comment.