summaryrefslogtreecommitdiffstats
path: root/usr/klibc/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/fstat.c')
-rw-r--r--usr/klibc/fstat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/klibc/fstat.c b/usr/klibc/fstat.c
new file mode 100644
index 0000000..36dd661
--- /dev/null
+++ b/usr/klibc/fstat.c
@@ -0,0 +1,10 @@
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/syscall.h>
+
+int fstat(int fd, struct stat *buf)
+{
+ return fstatat(fd, "", buf, AT_EMPTY_PATH);
+}