Open System Services System Calls Reference Manual (G06.28+, H06.05+)

System Functions (f - i) fcntl(2)
The request parameter is F_GETLK, F_GETLK64, F_SETLK,
F_SETLK64, F_SETLKW,or F_SETLKW64, and the data pointed to
by argument2 is invalid, or ledes refers to a le that does not support
locking.
The request parameter is F_GETOWN, and the ledes parameter does
not specify a socket.
The request parameter is F_SETFD, and a ag in addition to
FD_CLOEXEC in the argument1 parameter is set. When the request
parameter is F_SETFD and FD_CLOEXEC is set, no other ag can be
set.
The request parameter is F_SETFL, and any le status ag other than
O_NONBLOCK, O_APPEND, O_CREAT, O_EXCL, O_SYNC,or
O_TRUNC is set. (Values set in the O_ACCMODE mask are ignored.)
The request parameter is F_SETOWN, and the ledes parameter does
not specify a socket.
The call attempted to set an advisory record lock on a le that is not a
regular le.
[EIO] An input or output error occurred. The device holding the le might be in the
down state, or both processors that provide access to the device might have
failed.
[EISGUARDIAN]
The value used for the ledes parameter is appropriate only in the Guardian
environment.
[EMFILE] The request parameter is F_DUPFD and the maximum number of open le
descriptors permitted are currently open in the calling process, or no le descrip-
tors greater than or equal to argument1 are available.
[ENETDOWN]
The request parameter is F_SETLK or F_SETLK64, the ledes parameter
species a le on a remote node, and communication with the remote node has
been lost.
[ENOLCK] The request parameter is F_SETLK, F_SETLK64, F_SETLKW,or
F_SETLKW64, and satisfying the lock or unlock request would cause the
number of locked regions in the system to exceed a system-imposed limit.
[ENOTOSS] The ledes parameter species a socket, and the calling process is running in the
Guardian environment. You cannot use the fcntl() function on an OSS socket
from the Guardian environment.
[EOVERFLOW]
The command argument is F_GETLK, F_SETLK,orFSETLKW, and the |
smallest offset (if l_len parameter is zero), or the highest offset (if the l_len |
parameter is nonzero), of any byte in the requested segment cannot be |
represented correctly in an object of type off_t.
527186-007 Hewlett-Packard Company 315