illumos: Add eventfd support

This commit is contained in:
Patrick Mooney 2020-06-08 17:27:00 -05:00 committed by Patrick Mooney
parent 714ab82741
commit b53ccb8740
2 changed files with 7 additions and 0 deletions

View File

@ -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",

View File

@ -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,