#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);