open.2: BUGS: Verifying O_TMPFILE support requires checking for *two* errors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-01-24 05:16:55 +01:00
parent fd185f5819
commit 0d730fcc90
1 changed files with 8 additions and 0 deletions

View File

@ -1154,6 +1154,14 @@ use
to enable this flag.
.\" FIXME . Check bugzilla report on open(O_ASYNC)
.\" See http://bugzilla.kernel.org/show_bug.cgi?id=5993
One must check for two different error codes,
.B EISDIR
and
.BR ENOENT ,
when trying to determine whether the kernel supports
.B O_TMP_FILE
functionality.
.SH SEE ALSO
.BR chmod (2),
.BR chown (2),