File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1261,6 +1261,8 @@ pub const SOCK_STREAM: c_int = 1;
1261
1261
pub const SOCK_DGRAM : c_int = 2 ;
1262
1262
pub const SOCK_RAW : c_int = 3 ;
1263
1263
pub const SOCK_SEQPACKET : c_int = 5 ;
1264
+ pub const SOCK_NONBLOCK : c_int = 0x00040000 ;
1265
+ pub const SOCK_CLOEXEC : c_int = 0x00080000 ;
1264
1266
1265
1267
pub const SOL_SOCKET : c_int = -1 ;
1266
1268
pub const SO_ACCEPTCONN : c_int = 0x00000001 ;
@@ -1789,6 +1791,13 @@ extern "C" {
1789
1791
address_len : crate :: socklen_t ,
1790
1792
) -> c_int ;
1791
1793
1794
+ pub fn accept4 (
1795
+ socket : c_int ,
1796
+ address : * mut crate :: sockaddr ,
1797
+ addressLength : * mut crate :: socklen_t ,
1798
+ flags : c_int ,
1799
+ ) -> c_int ;
1800
+
1792
1801
pub fn writev ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
1793
1802
pub fn readv ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
1794
1803
You can’t perform that action at this time.
0 commit comments