Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
.IP
The
.I mode
-argument specifies the file mode bits be applied when a new file is created.
-This argument must be supplied when
+argument specifies the file mode bits to be applied when a new file is created.
+If neither
.B O_CREAT
-or
+nor
.B O_TMPFILE
is specified in
-.IR flags ;
-if neither
+.IR flags ,
+then
+.I mode
+is ignored (and can thus be specified as 0, or simply omitted).
+The
+.I mode
+argument
+.B must
+be supplied if
.B O_CREAT
-nor
+or
.B O_TMPFILE
-is specified, then
-.I mode
-is ignored.
+is specified in
+.IR flags ;
+if it is not supplied,
+some arbitrary bytes from the stack will be applied as the file mode.
.IP
The effective mode is modified by the process's
.I umask