aboutsummaryrefslogtreecommitdiffstats
path: root/man2/open.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2006-02-02 03:25:41 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2006-02-02 03:25:41 +0000
commitbfe9ba67123ef8cc33db6925bfb337a805105588 (patch)
tree2a97976520c112ec430bce96bb3239d0be04f3b5 /man2/open.2
parent04a57fff62771760f7e8aa0d8e6941d3dc59377e (diff)
downloadman-pages-bfe9ba67123ef8cc33db6925bfb337a805105588.tar.gz
Clarify distinction between "file creation flags" and
"file status flags".
Diffstat (limited to 'man2/open.2')
-rw-r--r--man2/open.218
1 files changed, 16 insertions, 2 deletions
diff --git a/man2/open.2 b/man2/open.2
index c46ae56651..a033414268 100644
--- a/man2/open.2
+++ b/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