We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714ab82 commit b53ccb8Copy full SHA for b53ccb8
libc-test/build.rs
@@ -707,6 +707,7 @@ fn test_solarish(target: &str) {
707
"stdlib.h",
708
"string.h",
709
"sys/epoll.h",
710
+ "sys/eventfd.h",
711
"sys/file.h",
712
"sys/filio.h",
713
"sys/ioctl.h",
src/unix/solarish/illumos.rs
@@ -18,7 +18,13 @@ s! {
18
pub const AF_LOCAL: ::c_int = 1; // AF_UNIX
19
pub const AF_FILE: ::c_int = 1; // AF_UNIX
20
21
+pub const EFD_SEMAPHORE: ::c_int = 0x1;
22
+pub const EFD_NONBLOCK: ::c_int = 0x800;
23
+pub const EFD_CLOEXEC: ::c_int = 0x80000;
24
+
25
extern "C" {
26
+ pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
27
28
pub fn mincore(
29
addr: ::caddr_t,
30
len: ::size_t,
0 commit comments