Skip to content

Commit 5fd2626

Browse files
devnexentgross35
authored andcommitted
haiku adding accept4 posix call
[ref](haiku/haiku@6beff0d)
1 parent 2fe8b17 commit 5fd2626

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,8 @@ pub const SOCK_STREAM: c_int = 1;
12511251
pub const SOCK_DGRAM: c_int = 2;
12521252
pub const SOCK_RAW: c_int = 3;
12531253
pub const SOCK_SEQPACKET: c_int = 5;
1254+
pub const SOCK_NONBLOCK: c_int = 0x00040000;
1255+
pub const SOCK_CLOEXEC: c_int = 0x00080000;
12541256

12551257
pub const SOL_SOCKET: c_int = -1;
12561258
pub 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

0 commit comments

Comments
 (0)