2 * Copyright 2002-2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
10 #include <errno_private.h>
12 #include <syscall_utils.h>
16 access(const char* path
, int accessMode
)
18 status_t status
= _kern_access(-1, path
, accessMode
, false);
20 RETURN_AND_SET_ERRNO(status
);
25 faccessat(int fd
, const char* path
, int accessMode
, int flag
)
27 status_t status
= _kern_access(fd
, path
, accessMode
,
28 (flag
& AT_EACCESS
) != 0);
30 RETURN_AND_SET_ERRNO(status
);