Open access modes
|
(specify only one)
|
ORDONLY
|
Open for reading only
|
OWRONLY
|
Open for writing only
|
ORDWR
|
Open for reading and writing
|
Open flags
|
(specify zero or more)
|
OAPPEND
|
Causes the file offset to be set to the end of the file prior to EACH write
|
OCREAT
|
Causes the file to be created if it does not exist. Has no effect if the file exists, except as noted under OEXCL.
|
OEXCL
|
If OCREAT and OEXCL are both specified, fails if the file exists.
|
OTRUNC
|
If the file exists and is a regular file, and the file is successfully opened ORDWR or OWRONLY, causes the file to be truncated to zero length with other platform attributes unchanged.
|