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

spt_fcntlx(2) OSS System Calls Reference Manual
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, 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 or F_SETLKW, 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 cannnot use spt_fcntlx( ) function on an OSS socket
from the Guardian environment.
[EWRONGID] One of these conditions occurred:
The process attempted an operation through an operating system
input/output process (such as a terminal server process) that has failed or
is in the down state.
The processor for the disk process of the specied le failed during an
input or output operation, and the backup process took over.
The open le descriptor has migrated to a new processor, but the new
processor lacks a resource or system process needed for using the le
descriptor.
The le descriptor specied by the ledes parameter can only be closed.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
For more information about a specic Guardian le-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Functions: creat(2), close(2), dup(2), dup2(2), exec(2), fcntl(2), open(2), read(2), socket(2),
spt_dup2x(2), spt_readx(2), spt_writex(2), tdm_execve(2), tdm_execvep(2), write(2).
7120 Hewlett-Packard Company 527186-007