rework langinfo code for ABI compat and for use by time code
[musl] / src / stat / lstat.c
index 3b22e62..8f60358 100644 (file)
@@ -2,9 +2,9 @@
 #include "syscall.h"
 #include "libc.h"
 
-int lstat(const char *path, struct stat *buf)
+int lstat(const char *restrict path, struct stat *restrict buf)
 {
-       return syscall2(__NR_lstat, (long)path, (long)buf);
+       return syscall(SYS_lstat, path, buf);
 }
 
 LFS64(lstat);