/* * Copyright 2002-2009, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ #include #include #include #include #include int access(const char* path, int accessMode) { return faccessat(AT_FDCWD, path, accessMode, 0); } int faccessat(int fd, const char* path, int accessMode, int flag) { RETURN_AND_SET_ERRNO(_kern_access(fd, path, accessMode, (flag & AT_EACCESS) != 0)); }