1io_closeonexec(3) Library Functions Manual io_closeonexec(3)
23
4
NAME
6io_closeonexec - mark a file descriptor non-inheritable
7
SYNTAX
9#include <io.h>
1011
void io_closeonexec(int64 fd);
12
DESCRIPTION
14io_closeonexec marks a file descriptor non-inheritable. It will be
15automatically closed if the process executes a different one. The
16descriptor will not be automatically closed when you fork() a new child
17process, though.
18
SEE ALSO
20io_wait(3), io_canwrite(3)
2122
23
24
io_closeonexec(3)