#[no_mangle]
pub unsafe extern "C" fn ax_dup3(
old_fd: c_int,
new_fd: c_int,
flags: c_int
) -> c_int
Available on crate features
alloc
and cbindings
only.Expand description
dup3()
is the same as dup2()
, except that:
The caller can force the close-on-exec flag to be set for the new file descriptor by specifying O_CLOEXEC
in flags.
If oldfd equals newfd, then dup3()
fails with the error EINVAL
.