манипулировать файловым дескриптором (manipulate file descriptor)
Стандарты (Conforming to)
SVr4, 4.3BSD, POSIX.1-2001. Only the operations F_DUPFD
,
F_GETFD
, F_SETFD
, F_GETFL
, F_SETFL
, F_GETLK
, F_SETLK
, and
F_SETLKW
are specified in POSIX.1-2001.
F_GETOWN
and F_SETOWN
are specified in POSIX.1-2001. (To get
their definitions, define either _XOPEN_SOURCE
with the value 500
or greater, or _POSIX_C_SOURCE
with the value 200809L or
greater.)
F_DUPFD_CLOEXEC
is specified in POSIX.1-2008. (To get this
definition, define _POSIX_C_SOURCE
with the value 200809L or
greater, or _XOPEN_SOURCE
with the value 700 or greater.)
F_GETOWN_EX
, F_SETOWN_EX
, F_SETPIPE_SZ
, F_GETPIPE_SZ
, F_GETSIG
,
F_SETSIG
, F_NOTIFY
, F_GETLEASE
, and F_SETLEASE
are Linux-
specific. (Define the _GNU_SOURCE
macro to obtain these
definitions.)
F_OFD_SETLK
, F_OFD_SETLKW
, and F_OFD_GETLK
are Linux-specific
(and one must define _GNU_SOURCE
to obtain their definitions),
but work is being done to have them included in the next version
of POSIX.1.
F_ADD_SEALS
and F_GET_SEALS
are Linux-specific.