Skip to content

Commit

Permalink
Auto merge of rust-lang#394 - lemonrock:accept4, r=alexcrichton
Browse files Browse the repository at this point in the history
Adding accept4 function

accept4 is a version of accept that takes flags.
It is more efficient for certain use cases, and has
a more modern path inside the kernel.
  • Loading branch information
bors authored Sep 14, 2016
2 parents a49950c + cf7f8f6 commit 836cda9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/notbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,8 @@ extern {
pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
pub fn sem_timedwait(sem: *mut sem_t,
abstime: *const ::timespec) -> ::c_int;
pub fn accept4(fd: ::c_int, addr: *mut ::sockaddr, len: *mut ::socklen_t,
flg: ::c_int) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit 836cda9

Please sign in to comment.