Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (s and S) spt_fcntlz(2)
shared-locked or exclusive-locked by another process.
[EBADF] One of these conditions exists:
• The request parameter is F_SETLK, F_SETLK64, F_SETLKW,or
F_SETLKW64, the type of lock is shared (F_RDLCK), and filedes is
not a valid file descriptor open for reading.
• The type of lock is exclusive (F_WRLCK), and filedes is not a valid file
descriptor open for writing.
• The filedes parameter is not a valid open file descriptor.
[ECONNRESET]
One of these conditions occurred:
• The transport-provider process for this socket is no longer available.
• The TCP/IP subsystem for this socket is no longer available.
• The peer socket forcibly closed the connection.
The file descriptor specified by the filedes parameter can only be closed.
[EFAULT] The argument2 parameter is an invalid address.
[EINTR] The request parameter is F_SETLKW or F_SETLKW64, and the spt_fcntlz( )
function was interrupted by a signal that was caught.
[EINVAL] One of these conditions exists:
• The request parameter is F_DUPFD, and the argument1 parameter is
negative or greater than or equal to the maximum number of open file
descriptors permitted.
• 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 filedes refers to a file that does not support
locking.
• The request parameter is F_GETOWN, and the filedes parameter does
not specify a socket.
• The request parameter is F_SETFD, and a flag 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 flag can be
set.
• The request parameter is F_SETFL, and any file status flag 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 filedes parameter does
not specify a socket.
• The call attempted to set an advisory record lock on a file that is not a
regular file.
527186-023 Hewlett-Packard Company 7−171