summaryrefslogtreecommitdiff
path: root/src/_forced/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/_forced/stat.h')
-rw-r--r--src/_forced/stat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/_forced/stat.h b/src/_forced/stat.h
new file mode 100644
index 00000000..e0a75dcc
--- /dev/null
+++ b/src/_forced/stat.h
@@ -0,0 +1,7 @@
+#include "_syscall.h"
+struct stat {
+ int st_mode;
+ char padding[1024];
+};
+#define stat(_f, _b) __scall2(stat, _f, _b)
+#define S_ISDIR(_m) ((_m) & 0x00)