projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: fix fmaf not to depend on FE_TOWARDZERO
[musl]
/
src
/
unistd
/
access.c
diff --git
a/src/unistd/access.c
b/src/unistd/access.c
index
2c10e58
..
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)
{
- return syscall2(__NR_access, (long)filename, amode);
+#ifdef SYS_access
+ return syscall(SYS_access, filename, amode);
+#else
+ return syscall(SYS_faccessat, AT_FDCWD, filename, amode, 0);
+#endif
}
}