Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/unix/coe.3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH coe 3
.SH NAME
coe \- set close-on-exec flag for a descriptor
.SH SYNTAX
.B #include <coe.h>

int \fBcoe\fP(\fIfd\fR);

int \fIfd\fR;
.SH DESCRIPTION
.B coe
sets the close-on-exec flag for
file descriptor
.IR fd ,
returning 0 if it was successful
or -1 on error.
If
.B coe
is successful,
.I fd
will be closed when the process calls
.BR execve .
.SH "SEE ALSO"
execve(2),
fcntl(2)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.