File: io_closeonexec.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.TH io_closeonexec 3
.SH NAME
io_closeonexec \- mark a file descriptor non-inheritable
.SH SYNTAX
.B #include <libowfat/io.h>

void \fBio_closeonexec\fP(int64 fd);
.SH DESCRIPTION
io_closeonexec marks a file descriptor non-inheritable.  It will be
automatically closed if the process executes a different one.  The
descriptor will not be automatically closed when you fork() a new child
process, though.
.SH "SEE ALSO"
io_wait(3), io_canwrite(3)