projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
increase default thread stack/guard size
[musl]
/
src
/
unistd
/
access.c
diff --git
a/src/unistd/access.c
b/src/unistd/access.c
index
e7ce73a
..
d6eed68
100644
(file)
--- a/
src/unistd/access.c
+++ b/
src/unistd/access.c
@@
-1,7
+1,12
@@
#include <unistd.h>
#include <unistd.h>
+#include <fcntl.h>
#include "syscall.h"
int access(const char *filename, int amode)
{
#include "syscall.h"
int access(const char *filename, int amode)
{
+#ifdef SYS_access
return syscall(SYS_access, filename, amode);
return syscall(SYS_access, filename, amode);
+#else
+ return syscall(SYS_faccessat, AT_FDCWD, filename, amode, 0);
+#endif
}
}