Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (f - i) fcntl(2)
Table 3−1. Ignored File Status Flags
File type Ignored file status flags
_______________________________________________
O_APPEND, O_NONBLOCK,
O_SYNC
Directory
FIFO, pipe O_APPEND, O_SYNC
Character special file O_APPEND, O_SYNC
Regular file O_NONBLOCK
Socket O_APPEND, O_SYNC
These file status flags are always accepted and ignored:
O_ACCMODE
O_CREAT
O_EXCL
O_TRUNC
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
fcntl() 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.
527186-023 Hewlett-Packard Company 3−13