diff options
Diffstat (limited to 'man3/fexecve.3')
-rw-r--r-- | man3/fexecve.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/man3/fexecve.3 b/man3/fexecve.3 index 015d2e7fe..26688bf04 100644 --- a/man3/fexecve.3 +++ b/man3/fexecve.3 @@ -18,7 +18,7 @@ Standard C library .P .RS -4 Feature Test Macro Requirements for glibc (see -.BR feature_test_macros (7)): +.MR feature_test_macros 7 ): .RE .P .BR fexecve (): @@ -31,7 +31,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION .BR fexecve () performs the same task as -.BR execve (2), +.MR execve 2 , with the difference that the file to be executed is specified via a file descriptor, .IR fd , @@ -53,7 +53,7 @@ On error, the function does return, with a result value of \-1, and is set to indicate the error. .SH ERRORS Errors are as for -.BR execve (2), +.MR execve 2 , with the following additions: .TP .B EINVAL @@ -74,13 +74,13 @@ See BUGS. .TP .B ENOSYS The kernel does not provide the -.BR execveat (2) +.MR execveat 2 system call, and the .I /proc filesystem could not be accessed. .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -100,14 +100,14 @@ glibc 2.3.2. On Linux with glibc versions 2.26 and earlier, .BR fexecve () is implemented using the -.BR proc (5) +.MR proc 5 filesystem, so .I /proc needs to be mounted and available at the time of the call. Since glibc 2.27, .\" glibc commit 43ffc53a352a67672210c9dd4959f6c6b7407e60 if the underlying kernel supports the -.BR execveat (2) +.MR execveat 2 system call, then .BR fexecve () is implemented using that system call, with the benefit that @@ -119,7 +119,7 @@ The idea behind is to allow the caller to verify (checksum) the contents of an executable before executing it. Simply opening the file, checksumming the contents, and then doing an -.BR execve (2) +.MR execve 2 would not suffice, since, between the two steps, the filename, or a directory prefix of the pathname, could have been exchanged (by, for example, modifying the target of a symbolic link). @@ -168,5 +168,5 @@ Thus, the close-on-exec flag can't be set on .I fd if it refers to a script, leading to the problems described in NOTES. .SH SEE ALSO -.BR execve (2), -.BR execveat (2) +.MR execve 2 , +.MR execveat 2 |