Skip to content

Commit

Permalink
Merge pull request rust-lang#108 from mmcco/sc
Browse files Browse the repository at this point in the history
Add getentropy(2)'s syscall number as a const
  • Loading branch information
alexcrichton committed Dec 18, 2015
2 parents 31423a3 + 3d372e6 commit 2c7e08c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/bsd/openbsdlike/openbsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
pub const HW_AVAILCPU: ::c_int = 25;
pub const KERN_PROC_ARGS: ::c_int = 55;

// syscall numbers
pub const NR_GETENTROPY: ::c_int = 7;

extern {
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)
-> ::c_int;
Expand Down

0 comments on commit 2c7e08c

Please sign in to comment.