projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use O_CLOEXEC to open semaphore files in sem_open
[musl]
/
src
/
stat
/
fstatat.c
diff --git
a/src/stat/fstatat.c
b/src/stat/fstatat.c
index
e39f833
..
863d526
100644
(file)
--- a/
src/stat/fstatat.c
+++ b/
src/stat/fstatat.c
@@
-2,9
+2,9
@@
#include "syscall.h"
#include "libc.h"
#include "syscall.h"
#include "libc.h"
-int fstatat(int fd, const char *
path, struct stat *
buf, int flag)
+int fstatat(int fd, const char *
restrict path, struct stat *restrict
buf, int flag)
{
{
- return syscall
4(__NR_fstatat, fd, (long)path, (long)
buf, flag);
+ return syscall
(SYS_fstatat, fd, path,
buf, flag);
}
LFS64(fstatat);
}
LFS64(fstatat);