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;
12511251pub const SOCK_DGRAM : c_int = 2 ;
12521252pub const SOCK_RAW : c_int = 3 ;
12531253pub const SOCK_SEQPACKET : c_int = 5 ;
1254+ pub const SOCK_NONBLOCK : c_int = 0x00040000 ;
1255+ pub const SOCK_CLOEXEC : c_int = 0x00080000 ;
12541256
12551257pub const SOL_SOCKET : c_int = -1 ;
12561258pub const SO_ACCEPTCONN : c_int = 0x00000001 ;
@@ -1779,6 +1781,13 @@ extern "C" {
17791781 address_len : crate :: socklen_t ,
17801782 ) -> c_int ;
17811783
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+
17821791 pub fn writev ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
17831792 pub fn readv ( fd : c_int , iov : * const crate :: iovec , count : c_int ) -> ssize_t ;
17841793
You can’t perform that action at this time.
0 commit comments