Skip to content

Commit 2c7e08c

Browse files
committed
Merge pull request rust-lang#108 from mmcco/sc
Add getentropy(2)'s syscall number as a const
2 parents 31423a3 + 3d372e6 commit 2c7e08c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/bsd/openbsdlike/openbsd.rs

+3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 2;
211211
pub const HW_AVAILCPU: ::c_int = 25;
212212
pub const KERN_PROC_ARGS: ::c_int = 55;
213213

214+
// syscall numbers
215+
pub const NR_GETENTROPY: ::c_int = 7;
216+
214217
extern {
215218
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)
216219
-> ::c_int;

0 commit comments

Comments
 (0)