summaryrefslogtreecommitdiffstats
path: root/usr/klibc/access.c
blob: 0f24856d8a6b8b13ec7870aa558f58fb432d8ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>

#ifndef __NR_access

int access(const char *pathname, int mode)
{
	return faccessat(AT_FDCWD, pathname, mode, 0);
}

#endif  /* __NR_access */