Skip to content

Add accept4() for NetBSD, Illumos and Solaris #1705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/unix/bsd/netbsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,12 @@ extern "C" {
) -> ::c_int;

pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
pub fn accept4(
s: ::c_int,
addr: *mut ::sockaddr,
addrlen: *mut ::socklen_t,
flags: ::c_int,
) -> ::c_int;
pub fn mincore(
addr: *mut ::c_void,
len: ::size_t,
Expand Down
6 changes: 0 additions & 6 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1393,12 +1393,6 @@ extern "C" {
tp: *const ::timeval,
tz: *const ::timezone,
) -> ::c_int;
pub fn accept4(
s: ::c_int,
addr: *mut ::sockaddr,
addrlen: *mut ::socklen_t,
flags: ::c_int,
) -> ::c_int;
pub fn execvpe(
file: *const ::c_char,
argv: *const *const ::c_char,
Expand Down
6 changes: 6 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2347,6 +2347,12 @@ extern "C" {
msg: *mut ::msghdr,
flags: ::c_int,
) -> ::ssize_t;
pub fn accept4(
fd: ::c_int,
address: *mut sockaddr,
address_len: *mut socklen_t,
flags: ::c_int
) -> ::c_int;

pub fn mq_open(name: *const ::c_char, oflag: ::c_int, ...) -> ::mqd_t;
pub fn mq_close(mqd: ::mqd_t) -> ::c_int;
Expand Down