Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
00d3d577cac8dc05e683b16bfe3dbe4a692cb172
/
.
/
src
/
unistd
/
access.c
blob: d6eed6839822f32bebf333218b6e020d08bbbd28 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<fcntl.h>
#include
"syscall.h"
int
access
(
const
char
*
filename
,
int
amode
)
{
#ifdef
SYS_access
return
syscall
(
SYS_access
,
filename
,
amode
);
#else
return
syscall
(
SYS_faccessat
,
AT_FDCWD
,
filename
,
amode
,
0
);
#endif
}