[libc][Obvious] Fix typo in the alternate path of the POSIX "access" function.

This commit is contained in:
Siva Chandra 2022-09-14 01:03:07 -07:00
parent 419580c699
commit cae9c64f08
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ namespace __llvm_libc {
LLVM_LIBC_FUNCTION(int, access, (const char *path, int mode)) {
#ifdef SYS_access
long ret = __llvm_libc::syscall(SYS_access, path, mode);
#elif defined(SYS_accessat)
long ret = __llvm_libc::syscall(SYS_accessat, AT_FDCWD, path, mode);
#elif defined(SYS_faccessat)
long ret = __llvm_libc::syscall(SYS_faccessat, AT_FDCWD, path, mode, 0);
#else
#error "access syscalls not available."
#endif