access.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-04-04 13:58:18 +02:00 committed by Michael Kerrisk
parent fa1755e4be
commit 4175b08beb
1 changed files with 8 additions and 3 deletions

View File

@ -49,15 +49,20 @@ access, faccessat, faccessat2 \- check user's permissions for a file
.PP
.BI "int access(const char *" pathname ", int " mode );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.BR "#include <fcntl.h>" " /* Definition of " AT_* " constants */"
.B #include <unistd.h>
.PP
.BI "int faccessat(int " dirfd ", const char *" pathname ", int " \
mode ", int " flags );
/* But see C library/kernel differences, below */
.PP
.BI "int faccessat2(int " dirfd ", const char *" pathname ", int " \
mode ", int " flags );
.BR "#include <fcntl.h>" " /* Definition of " AT_* " constants */"
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
.BI "int syscall(SYS_faccessat2,"
.BI " int " dirfd ", const char *" pathname ", int " mode \
", int " flags );
.fi
.PP
.RS -4