about summary refs log tree commit diff
path: root/src/stat/fstatat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat/fstatat.c')
-rw-r--r--src/stat/fstatat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stat/fstatat.c b/src/stat/fstatat.c
new file mode 100644
index 00000000..22bc2934
--- /dev/null
+++ b/src/stat/fstatat.c
@@ -0,0 +1,10 @@
+#include <sys/stat.h>
+#include "syscall.h"
+#include "libc.h"
+
+int fstatat(int fd, const char *path, struct stat *buf, int flag)
+{
+	return syscall4(__NR_fstatat64, fd, (long)path, (long)buf, flag);
+}
+
+LFS64(fstatat);