@@ -28,6 +28,8 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1;
28
28
pub const EFD_NONBLOCK : :: c_int = 0x800 ;
29
29
pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
30
30
31
+ pub const POLLRDHUP : :: c_short = 0x4000 ;
32
+
31
33
pub const TCP_KEEPIDLE : :: c_int = 34 ;
32
34
pub const TCP_KEEPCNT : :: c_int = 35 ;
33
35
pub const TCP_KEEPINTVL : :: c_int = 36 ;
@@ -56,6 +58,13 @@ pub const SOL_FILTER: ::c_int = 0xfffc;
56
58
57
59
pub const MADV_PURGE : :: c_int = 9 ;
58
60
61
+ pub const POSIX_FADV_NORMAL : :: c_int = 0 ;
62
+ pub const POSIX_FADV_RANDOM : :: c_int = 1 ;
63
+ pub const POSIX_FADV_SEQUENTIAL : :: c_int = 2 ;
64
+ pub const POSIX_FADV_WILLNEED : :: c_int = 3 ;
65
+ pub const POSIX_FADV_DONTNEED : :: c_int = 4 ;
66
+ pub const POSIX_FADV_NOREUSE : :: c_int = 5 ;
67
+
59
68
pub const B1000000 : :: speed_t = 24 ;
60
69
pub const B1152000 : :: speed_t = 25 ;
61
70
pub const B1500000 : :: speed_t = 26 ;
@@ -96,6 +105,7 @@ extern "C" {
96
105
stackaddr : * mut :: c_void ,
97
106
) -> :: c_int ;
98
107
108
+ pub fn posix_fadvise ( fd : :: c_int , offset : :: off_t , len : :: off_t , advice : :: c_int ) -> :: c_int ;
99
109
pub fn preadv ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int , offset : :: off_t ) -> :: ssize_t ;
100
110
pub fn pwritev ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int , offset : :: off_t )
101
111
-> :: ssize_t ;
0 commit comments