rework langinfo code for ABI compat and for use by time code
[musl] / src / stat / stat.c
index 67640cc..c6de716 100644 (file)
@@ -2,9 +2,9 @@
 #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 syscall2(__NR_stat64, (long)path, (long)buf);
+       return syscall(SYS_stat, path, buf);
 }
 
 LFS64(stat);