This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: access call not calling faccessat correctly
* Michael Morrell:
> The manpage for "access" says it takes 4 arguments.
>
> ACCESS(2) Linux Programmer's Manual ACCESS(2)
>
> NAME
> access, faccessat - check user's permissions for a file
>
> SYNOPSIS
> #include <unistd.h>
>
> int access(const char *pathname, int mode);
>
> #include <fcntl.h> /* Definition of AT_* constants */
> #include <unistd.h>
>
> int faccessat(int dirfd, const char *pathname, int mode, int flags);
For the system call? No it does not. You need to scroll down for
userspace/kernel difference.
Thanks,
Florian