toaruos/libc/access.c
2018-04-17 20:03:19 +09:00

12 lines
208 B
C

#include <unistd.h>
#include <errno.h>
int access(const char *pathname, int mode) {
int result = syscall_access((char *)pathname, mode);
if (result < 0) {
errno = ENOENT; /* XXX */
}
return result;
}