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 @@ -1251,6 +1251,8 @@ pub const SOCK_STREAM: c_int = 1;
1251
1251
pub const SOCK_DGRAM : c_int = 2 ;
1252
1252
pub const SOCK_RAW : c_int = 3 ;
1253
1253
pub const SOCK_SEQPACKET : c_int = 5 ;
1254
+ pub const SOCK_NONBLOCK : c_int = 0x00040000 ;
1255
+ pub const SOCK_CLOEXEC : c_int = 0x00080000 ;
1254
1256
1255
1257
pub const SOL_SOCKET : c_int = -1 ;
1256
1258
pub const SO_ACCEPTCONN : c_int = 0x00000001 ;
@@ -1779,6 +1781,13 @@ extern "C" {
1779
1781
address_len : crate :: socklen_t ,
1780
1782
) -> c_int ;
1781
1783
1784
+ pub fn accept4 (
1785
+ socket : c_int ,
1786
+ address : * mut crate :: sockaddr ,
1787
+ addressLength : * mut crate :: socklen_t ,
1788
+ flags : c_int ,
1789
+ ) -> c_int ;
1790
+
1782
1791
pub fn writev ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
1783
1792
pub fn readv ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
1784
1793
You can’t perform that action at this time.
0 commit comments