@@ -28,6 +28,8 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1;
2828pub const EFD_NONBLOCK : :: c_int = 0x800 ;
2929pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
3030
31+ pub const POLLRDHUP : :: c_short = 0x4000 ;
32+
3133pub const TCP_KEEPIDLE : :: c_int = 34 ;
3234pub const TCP_KEEPCNT : :: c_int = 35 ;
3335pub const TCP_KEEPINTVL : :: c_int = 36 ;
@@ -56,6 +58,13 @@ pub const SOL_FILTER: ::c_int = 0xfffc;
5658
5759pub const MADV_PURGE : :: c_int = 9 ;
5860
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+
5968pub const B1000000 : :: speed_t = 24 ;
6069pub const B1152000 : :: speed_t = 25 ;
6170pub const B1500000 : :: speed_t = 26 ;
@@ -96,6 +105,7 @@ extern "C" {
96105 stackaddr : * mut :: c_void ,
97106 ) -> :: c_int ;
98107
108+ pub fn posix_fadvise ( fd : :: c_int , offset : :: off_t , len : :: off_t , advice : :: c_int ) -> :: c_int ;
99109 pub fn preadv ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int , offset : :: off_t ) -> :: ssize_t ;
100110 pub fn pwritev ( fd : :: c_int , iov : * const :: iovec , iovcnt : :: c_int , offset : :: off_t )
101111 -> :: ssize_t ;
0 commit comments