illumos: Add eventfd support
This commit is contained in:
parent
714ab82741
commit
b53ccb8740
|
@ -707,6 +707,7 @@ fn test_solarish(target: &str) {
|
|||
"stdlib.h",
|
||||
"string.h",
|
||||
"sys/epoll.h",
|
||||
"sys/eventfd.h",
|
||||
"sys/file.h",
|
||||
"sys/filio.h",
|
||||
"sys/ioctl.h",
|
||||
|
|
|
@ -18,7 +18,13 @@ s! {
|
|||
pub const AF_LOCAL: ::c_int = 1; // AF_UNIX
|
||||
pub const AF_FILE: ::c_int = 1; // AF_UNIX
|
||||
|
||||
pub const EFD_SEMAPHORE: ::c_int = 0x1;
|
||||
pub const EFD_NONBLOCK: ::c_int = 0x800;
|
||||
pub const EFD_CLOEXEC: ::c_int = 0x80000;
|
||||
|
||||
extern "C" {
|
||||
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
|
||||
|
||||
pub fn mincore(
|
||||
addr: ::caddr_t,
|
||||
len: ::size_t,
|
||||
|
|
Loading…
Reference in New Issue