@@ -375,6 +375,7 @@ pub const EPROTONOSUPPORT: ::c_int = 93; /* Protocol not supported */
375375pub const ESOCKTNOSUPPORT : :: c_int = 94 ; /* Socket type not supported */
376376/* Operation not supported on transport endpoint */
377377pub const EOPNOTSUPP : :: c_int = 95 ;
378+ pub const ENOTSUP : :: c_int = EOPNOTSUPP ;
378379pub const EPFNOSUPPORT : :: c_int = 96 ; /* Protocol family not supported */
379380/* Address family not supported by protocol */
380381pub const EAFNOSUPPORT : :: c_int = 97 ;
@@ -615,6 +616,7 @@ pub const EXIT_FAILURE: ::c_int = 1;
615616
616617// sys/ioctl.h
617618// FIXME: relibc {
619+ pub const FIONREAD : :: c_ulong = 0x541B ;
618620pub const FIONBIO : :: c_ulong = 0x5421 ;
619621pub const FIOCLEX : :: c_ulong = 0x5451 ;
620622// }
@@ -661,6 +663,7 @@ pub const MSG_EOR: ::c_int = 128;
661663pub const MSG_OOB : :: c_int = 1 ;
662664pub const MSG_PEEK : :: c_int = 2 ;
663665pub const MSG_TRUNC : :: c_int = 32 ;
666+ pub const MSG_DONTWAIT : :: c_int = 64 ;
664667pub const MSG_WAITALL : :: c_int = 256 ;
665668pub const SHUT_RD : :: c_int = 0 ;
666669pub const SHUT_WR : :: c_int = 1 ;
@@ -1028,6 +1031,7 @@ extern "C" {
10281031 pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
10291032
10301033 // sys/mman.h
1034+ pub fn madvise ( addr : * mut :: c_void , len : :: size_t , advice : :: c_int ) -> :: c_int ;
10311035 pub fn msync ( addr : * mut :: c_void , len : :: size_t , flags : :: c_int ) -> :: c_int ;
10321036 pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int ) -> :: c_int ;
10331037 pub fn shm_open ( name : * const c_char , oflag : :: c_int , mode : mode_t ) -> :: c_int ;
0 commit comments