Skip to content
Snippets Groups Projects
Commit 405e557d authored by Michael McConville's avatar Michael McConville
Browse files

Add getentropy(2)'s syscall number as a const

I'm not convinced that the NR_* naming scheme is ideal, but it's pretty
good.

I didn't recognize any other syscall numbers in the file, so I started a
new section.
parent 31423a3e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment