FIOCLEX
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Set close on exec
on a file descriptor
Synopsis:
#include <sys/ioctl.h>
#define FIOCLEX _IO('f', 1)
Arguments to ioctl():
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | FIOCLEX |
Description:
This command sets the close on exec
flag on a file descriptor.
It's implemented as a call to
fcntl()
with a command of F_SETFD and an additional argument of
FD_CLOEXEC.
Input:
None.
Output:
None.
See also:
Page updated: