use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / unistd / readlinkat.c
index 8171050..9af45cd 100644 (file)
@@ -1,7 +1,7 @@
 #include <unistd.h>
 #include "syscall.h"
 
-int readlinkat(int fd, const char *path, char *buf, size_t bufsize)
+ssize_t readlinkat(int fd, const char *restrict path, char *restrict buf, size_t bufsize)
 {
-       return syscall4(__NR_readlinkat, fd, (long)path, (long)buf, bufsize);
+       return syscall(SYS_readlinkat, fd, path, buf, bufsize);
 }