fcntl(5) File Formats Manual fcntl(5)
NAME
fcntl - file control options
SYNOPSIS
DESCRIPTION
The function provides for control over open files. The include file describes requests and arguments to and See fcntl(2) and open(2).
The access modes set by and accessed by are:
The mask for file access modes is:
The file status flags set by
or and accessed by are:
Nonblocking I/O.
POSIX-style nonblocking I/O.
Append (writes guaranteed at the end).
Write through cache for data.
Write through cache for data and attributes.
Write through cache for data on reads and writes.
Write through cache for data and attributes on reads and writes.
When the filesystem is mounted as large files enabled, the
option allows the file to grow over 2 GB.
The flag is a synonym for and is defined for backward compatibility in
The flag values accessible only to are:
Open with file create (uses third open arg).
Open with truncation.
Exclusive open.
Do not assign a controlling terminal.
Do not traverse a symbolic link if it is the last component in the path.
The requests for are:
Duplicate file descriptor.
Get file descriptor flags.
Set file descriptor flags.
Get file flags.
Set file flags.
Get blocking file lock.
Set or clear file locks and fail on busy.
Set or clear file locks and wait on busy.
Fadvise service request (see
fadvise(2)).
The file descriptor flag for is:
The file segment locking control structure
includes the following members:
The file segment locking types are:
SEE ALSO
fcntl(2), fadvise(2), open(2).
STANDARDS CONFORMANCE
fcntl(5)