fix out-of-bounds reads in __dns_parse
[musl] / src / stat / __xstat.c
index 8138cbe..b4560df 100644 (file)
@@ -1,5 +1,6 @@
 #include <sys/stat.h>
-#include "libc.h"
+
+#if !_REDIR_TIME64
 
 int __fxstat(int ver, int fd, struct stat *buf)
 {
@@ -21,7 +22,14 @@ int __xstat(int ver, const char *path, struct stat *buf)
        return stat(path, buf);
 }
 
-LFS64(__fxstat);
-LFS64(__fxstatat);
-LFS64(__lxstat);
-LFS64(__xstat);
+#endif
+
+int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
+{
+       return mknod(path, mode, *dev);
+}
+
+int __xmknodat(int ver, int fd, const char *path, mode_t mode, dev_t *dev)
+{
+       return mknodat(fd, path, mode, *dev);
+}