Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_fcntlz(2) OSS System Calls Reference Manual
The file access mode is not changed when F_SETFL is used.
F_GETOWN Gets the process ID or process group ID currently receiving the SIGURG signal
for a socket. A process group ID is returned as a negative value. A positive
value indicates the process ID.
The value F_GETOWN is invalid for these calls:
• Guardian use of OSS sockets is not supported. If this value is used in a
call from the Guardian environment, the call fails, and errno is set to
[ENOTOSS].
• If this value is used in a call that specifies anything other than a socket
for the filedes parameter, the call fails, and errno is set to [EINVAL].
F_SETOWN Sets the process ID or process group ID to receive the SIGURG signal for a
socket. A process group ID is specified by supplying it as a negative value in the
argument1 parameter; otherwise, the argument1 parameter is interpreted as a
process ID.
The value F_SETOWN is invalid for these calls:
• Guardian use of OSS sockets is not supported. If this value is used in a
call from the Guardian environment, the call fails, and errno is set to
[ENOTOSS].
• If this value is used in a call that specifies anything other than a socket
for the filedes parameter, the call fails, and errno is set to [EINVAL].
These values listed for the request parameter are available for advisory record locking on regular
files. Advisory record locking is supported only for regular files. If attempted on other files, the
operation fails, and errno is set to [EINVAL].
F_GETLK Gets the first lock that blocks the lock description pointed to by the argument2
parameter. The information retrieved overwrites the information passed to the
spt_fcntlz() function in the flock structure. If no lock is found that would
prevent this lock from being created, the structure is left unchanged except for
the lock type, which is set to F_UNLCK.
F_GETLK64 Similar to F_GETLK, except that it takes a pointer to a flock64 structure instead
of a pointer to a flock structure.
F_SETLK Sets or clears a file segment lock according to the lock description pointed to by
the argument2 parameter. F_SETLK is used to establish shared locks
(F_RDLCK) or exclusive locks (F_WRLCK) and, additionally, to remove
either type of lock (F_UNLCK). If a shared (read) or exclusive (write) lock can-
not be set, the spt_fcntlz() function returns immediately with the value -1.
F_SETLK64 Similar to F_SETLK, except that it takes a pointer to a flock64 structure instead
of a pointer to a fl
ock structure.
F_SETLKW Same as F_SETLK except that, if a shared or exclusive lock is blocked by other
locks, the thread waits until it is unblocked. If a signal is received while
spt_fcntlz() is waiting for a region, the function is interrupted, -1 is returned,
and errno is set to [EINTR].
7−168 Hewlett-Packard Company 527186-023