projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add _ALL_SOURCE as an alias for _GNU_SOURCE/enable-everything
[musl]
/
src
/
stat
/
stat.c
diff --git
a/src/stat/stat.c
b/src/stat/stat.c
index
9847552
..
c6de716
100644
(file)
--- a/
src/stat/stat.c
+++ b/
src/stat/stat.c
@@
-2,9
+2,9
@@
#include "syscall.h"
#include "libc.h"
#include "syscall.h"
#include "libc.h"
-int stat(const char *
path, struct stat *
buf)
+int stat(const char *
restrict path, struct stat *restrict
buf)
{
{
- return syscall
2(__NR_stat, (long)path, (long)
buf);
+ return syscall
(SYS_stat, path,
buf);
}
LFS64(stat);
}
LFS64(stat);