forked from OSchip/llvm-project
[libc][Obvious] Fix typo in the alternate path of the POSIX "access" function.
This commit is contained in:
parent
419580c699
commit
cae9c64f08
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue