]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fexecve.3: Add some detail on the glibc implementation of fexecve() via execveat(2)
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 21 Sep 2017 12:05:00 +0000 (14:05 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 22 Sep 2017 06:44:18 +0000 (08:44 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/fexecve.3

index 3ab39f9e47add1a562ecc0c7d63d9f7fc93c893c..25cf049dcf61d36951a1048d9d39b098aafdced0 100644 (file)
@@ -112,18 +112,22 @@ This function is not specified in POSIX.1-2001,
 and is not widely available on other systems.
 It is specified in POSIX.1-2008.
 .SH NOTES
-On Linux,
+On Linux with glibc versions 2.26 and earlier,
 .BR fexecve ()
-was implemented using the
+is implemented using the
 .BR proc (5)
 filesystem, so
 .I /proc
-needed to be mounted and available at the time of the call.
+needs to be mounted and available at the time of the call.
 Since glibc 2.27,
 .\" glibc commit 43ffc53a352a67672210c9dd4959f6c6b7407e60
-it is implemented using
+if the underlying kernel supports the
 .BR execveat (2)
-instead.
+system call, then
+.BR fexecve ()
+is implemented using that system call, with the benefit that
+.IR /proc
+does not need to be mounted.
 .PP
 The idea behind
 .BR fexecve ()