]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: clarify fopen with the x flag
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Dec 2019 17:34:06 +0000 (09:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Dec 2019 17:40:02 +0000 (09:40 -0800)
* manual/stdio.texi (Opening Streams): Say how glibc's
implementation of fopen with "x" follows ISO C11.

manual/stdio.texi

index bbd3061bab908a6332d5cc3c16f98ad1383c3f5f..8051603321c1a3f52dc3e8911c453c34725378b7 100644 (file)
@@ -216,7 +216,9 @@ exists, @code{fopen} fails rather than opening it.  If you use
 file.  This is equivalent to the @code{O_EXCL} option to the
 @code{open} function (@pxref{Opening and Closing Files}).
 
-The @samp{x} modifier is part of @w{ISO C11}.
+The @samp{x} modifier is part of @w{ISO C11}, which says the file is
+created with exclusive access; in @theglibc{} this means the
+equivalent of @code{O_EXCL}.
 @end table
 
 The character @samp{b} in @var{opentype} has a standard meaning; it