File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ fn test_solarish(target: &str) {
707
707
"stdlib.h" ,
708
708
"string.h" ,
709
709
"sys/epoll.h" ,
710
+ "sys/eventfd.h" ,
710
711
"sys/file.h" ,
711
712
"sys/filio.h" ,
712
713
"sys/ioctl.h" ,
Original file line number Diff line number Diff line change 18
18
pub const AF_LOCAL : :: c_int = 1 ; // AF_UNIX
19
19
pub const AF_FILE : :: c_int = 1 ; // AF_UNIX
20
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
+
21
25
extern "C" {
26
+ pub fn eventfd ( init : :: c_uint , flags : :: c_int ) -> :: c_int ;
27
+
22
28
pub fn mincore (
23
29
addr : :: caddr_t ,
24
30
len : :: size_t ,
Original file line number Diff line number Diff line change @@ -950,6 +950,8 @@ pub const EOF: ::c_int = -1;
950
950
pub const SEEK_SET : :: c_int = 0 ;
951
951
pub const SEEK_CUR : :: c_int = 1 ;
952
952
pub const SEEK_END : :: c_int = 2 ;
953
+ pub const SEEK_DATA : :: c_int = 3 ;
954
+ pub const SEEK_HOLE : :: c_int = 4 ;
953
955
pub const _IOFBF: :: c_int = 0 ;
954
956
pub const _IONBF: :: c_int = 4 ;
955
957
pub const _IOLBF: :: c_int = 64 ;
@@ -1835,6 +1837,7 @@ pub const EPOLLHUP: ::c_int = 0x10;
1835
1837
pub const EPOLLET : :: c_int = 0x80000000 ;
1836
1838
pub const EPOLLRDHUP : :: c_int = 0x2000 ;
1837
1839
pub const EPOLLONESHOT : :: c_int = 0x40000000 ;
1840
+ pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
1838
1841
pub const EPOLL_CLOEXEC : :: c_int = 0x80000 ;
1839
1842
pub const EPOLL_CTL_ADD : :: c_int = 1 ;
1840
1843
pub const EPOLL_CTL_MOD : :: c_int = 3 ;
You can’t perform that action at this time.
0 commit comments