This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] manual: Document the O_TMPFILE flag
- From: Florian Weimer <fweimer at redhat dot com>
- To: Jonathan Nieder <jrnieder at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 3 Nov 2017 23:51:00 +0100
- Subject: Re: [PATCH] manual: Document the O_TMPFILE flag
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D5A41A8AC
- References: <20171103213714.8303C41F1E4EF@oldenburg.str.redhat.com> <20171103215823.hijavlkqczgh65gb@aiede.mtv.corp.google.com>
On 11/03/2017 10:58 PM, Jonathan Nieder wrote:
Hi,
Florian Weimer wrote:
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -3478,6 +3478,25 @@ If set, the file will be created if it doesn't already exist.
[...]
+@deftypevr Macro int O_TMPFILE
+@standards{GNU, fcntl.h} If this flag is specified, functions in the
For the other flags there's a line break after the } here. I don't
know whether it matters.
Okay, I will add that here, too.
+@code{open} family create an unnamed temporary file in the directory
+@var{filename}. The @code{O_TMPFILE} flag must be combined with
@var{filename} isn't defined here. How about "the named directory"?
It is defined for the open functions. I wasn't sure how to incorporate
the fact that the pathname argument is overloaded without totally
reorganizing how this information is presented.
+@code{O_WRONLY} or @code{O_RDWR}, and the @var{mode} argument is
+required. The file can later be given a name using @code{linkat}. To
+prevent that, specify the @code{O_EXCL} flag at open time.
To prevent what? Can you describe an example scenario where O_EXCL
would be used?
Giving a name using linkat. Is this really unclear?
The rest looks good.
Thanks.
Florian