mirror of https://github.com/mkerrisk/man-pages
Clarify distinction between "file creation flags" and
"file status flags".
This commit is contained in:
parent
04a57fff62
commit
bfe9ba6712
18
man2/open.2
18
man2/open.2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue