Add support for using time64 on big-endian machines.
[uclibc-ng.git] / libc / sysdeps / linux / common / access.c
blobda3cb936a8bbe1756e04cee4dfedb8407abb7ada
1 /*
2 * access() for uClibc
4 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 */
9 #include <sys/syscall.h>
10 #include <unistd.h>
12 #if defined __NR_faccessat && !defined __NR_access
13 # include <fcntl.h>
14 int access(const char *pathname, int mode)
16 return faccessat(AT_FDCWD, pathname, mode, 0);
19 #else
20 _syscall2(int, access, const char *, pathname, int, mode)
21 #endif