From: Alejandro Colomar Date: Sun, 4 Apr 2021 11:58:27 +0000 (+0200) Subject: execveat.2: Use syscall(SYS_...); for system calls without a wrapper X-Git-Tag: man-pages-5.12~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86970bf4d34cd6ada7f93dfc366d214d010a0afe;p=thirdparty%2Fman-pages.git execveat.2: Use syscall(SYS_...); for system calls without a wrapper Add , which contains AT_* definitions used by execveat(). Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man2/execveat.2 b/man2/execveat.2 index 8558327655..c566f53dfb 100644 --- a/man2/execveat.2 +++ b/man2/execveat.2 @@ -28,15 +28,14 @@ execveat \- execute program relative to a directory file descriptor .SH SYNOPSIS .nf +.BR "#include " " /* Definition of " AT_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP -.BI "int execveat(int " dirfd ", const char *" pathname , -.BI " const char *const " argv "[], const char *const " envp [], -.BI " int " flags ); +.BI "int syscall(SYS_execveat, int " dirfd ", const char *" pathname , +.BI " const char *const " argv "[], const char *const " envp [], +.BI " int " flags ); .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 .SH DESCRIPTION .\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874 @@ -209,9 +208,6 @@ the natural idiom when using is to set the close-on-exec flag on .IR dirfd . (But see BUGS.) -.PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH BUGS The .B ENOENT