aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-01-21 05:55:58 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-01-24 11:44:56 +0100
commitba03011f4074f4107725fd8ec9cee7aaaa544971 (patch)
tree787de7965048e03f83d01ac927578d7a61195493
parent8e3353915cbb339206d2e96a07151052f122fb0d (diff)
downloadman-pages-ba03011f4074f4107725fd8ec9cee7aaaa544971.tar.gz
open.2: Add ENOENT error for O_TMPFILE
On older kernels that don't support O_TMPFILE, O_TMPFILE + [O_RDWR or O_WRONLY] will produce the error ENOENT if the directory specified in 'pathname' does not exist. Reported-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/open.214
1 files changed, 14 insertions, 0 deletions
diff --git a/man2/open.2 b/man2/open.2
index 8959686d4a..acf38e1f4b 100644
--- a/man2/open.2
+++ b/man2/open.2
@@ -761,6 +761,20 @@ Or, a directory component in
.I pathname
does not exist or is a dangling symbolic link.
.TP
+.B ENOENT
+.I pathname
+refers to a nonexistent directory,
+.B O_TMPFILE
+and one of
+.B O_WRONLY
+or
+.B O_RDWR
+were specified in
+.IR flags ,
+but this kernel version does not provide the
+.B O_TMPFILE
+functionality.
+.TP
.B ENOMEM
Insufficient kernel memory was available.
.TP