* fececve man page
@ 2019-08-21 16:44 Simone Piccardi
2019-09-13 12:36 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Simone Piccardi @ 2019-08-21 16:44 UTC (permalink / raw)
To: mtk.manpages; +Cc: linux-man
In http://man7.org/linux/man-pages/man3/fexecve.3.html in the reported
errors there are only EINVAL and ENOSYS but in the BUGS section is cited
also ENOENT (I suppose coming from execveat) for trying to use a script.
Furthermore I think that ENOSYS should be cited as present only when
fexecve is not implemented using execveat.
Regards
Simone
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fececve man page
2019-08-21 16:44 fececve man page Simone Piccardi
@ 2019-09-13 12:36 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-09-13 12:36 UTC (permalink / raw)
To: Simone Piccardi; +Cc: mtk.manpages, linux-man
On 8/21/19 6:44 PM, Simone Piccardi wrote:
>
> In http://man7.org/linux/man-pages/man3/fexecve.3.html in the reported
> errors there are only EINVAL and ENOSYS but in the BUGS section is cited
> also ENOENT (I suppose coming from execveat) for trying to use a script.
>
> Furthermore I think that ENOSYS should be cited as present only when
> fexecve is not implemented using execveat.
Thanks, Simone. I've applied the following diff.
Cheers,
Michael
diff --git a/man3/fexecve.3 b/man3/fexecve.3
index 25cf049dc..73b086881 100644
--- a/man3/fexecve.3
+++ b/man3/fexecve.3
@@ -86,8 +86,18 @@ is NULL, or
.I envp
is NULL.
.TP
+.B ENOENT
+The close-on-exec flag is set on
+.IR fd ,
+and
+.I fd
+refers to a script.
+See BUGS.
+.TP
.B ENOSYS
-The
+The kernel does not provide the
+.BR execveat (2)
+system call, and the
.I /proc
filesystem could not be accessed.
.SH VERSIONS
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-13 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-21 16:44 fececve man page Simone Piccardi
2019-09-13 12:36 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).