mirror of https://github.com/mkerrisk/man-pages
execveat.2: Use syscall(SYS_...); for system calls without a wrapper
Add <linux/fcntl.h>, which contains AT_* definitions used by execveat(). Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a380538369
commit
86970bf4d3
|
@ -28,15 +28,14 @@
|
||||||
execveat \- execute program relative to a directory file descriptor
|
execveat \- execute program relative to a directory file descriptor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
|
.BR "#include <linux/fcntl.h>" " /* Definition of " AT_* " constants */"
|
||||||
|
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int execveat(int " dirfd ", const char *" pathname ,
|
.BI "int syscall(SYS_execveat, int " dirfd ", const char *" pathname ,
|
||||||
.BI " const char *const " argv "[], const char *const " envp [],
|
.BI " const char *const " argv "[], const char *const " envp [],
|
||||||
.BI " int " flags );
|
.BI " int " flags );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
|
||||||
.IR Note :
|
|
||||||
There is no glibc wrapper for this system call; see NOTES.
|
|
||||||
.\" FIXME . See https://sourceware.org/bugzilla/show_bug.cgi?id=27364
|
.\" FIXME . See https://sourceware.org/bugzilla/show_bug.cgi?id=27364
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874
|
.\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874
|
||||||
|
@ -209,9 +208,6 @@ the natural idiom when using
|
||||||
is to set the close-on-exec flag on
|
is to set the close-on-exec flag on
|
||||||
.IR dirfd .
|
.IR dirfd .
|
||||||
(But see BUGS.)
|
(But see BUGS.)
|
||||||
.PP
|
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2).
|
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
The
|
The
|
||||||
.B ENOENT
|
.B ENOENT
|
||||||
|
|
Loading…
Reference in New Issue