Clarify distinction between "file creation flags" and

"file status flags".
This commit is contained in:
Michael Kerrisk 2006-02-02 03:25:41 +00:00
parent 04a57fff62
commit bfe9ba6712
1 changed files with 16 additions and 2 deletions

View File

@ -96,10 +96,24 @@ must include one of the following
.BR O_RDONLY ", " O_WRONLY ", or " O_RDWR.
These request opening the file read-only, write-only, or read/write,
respectively.
In addition, zero or more of the following may be
In addition, zero or more file creation flags and file status flags
can be
.RI bitwise- or 'd
in
.IR flags :
.IR flags .
The
.I file creation flags
are
.BR O_CREAT ", " O_EXCL ", " O_NOCTTY ", and " O_TRUNC .
The
.I file status flags
are all of the remaining flags listed below.
The distinction between these two groups of flags is that
the file status flags can be retrieved and (in some cases)
modified using
.BR fcntl (2).
The full list of file creation flags and file status flags is as follows:
.TP
.B O_APPEND
The file is opened in append mode. Before each