summaryrefslogtreecommitdiff
path: root/Source/UnixUserland/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/UnixUserland/fstat.c')
-rw-r--r--Source/UnixUserland/fstat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/UnixUserland/fstat.c b/Source/UnixUserland/fstat.c
new file mode 100644
index 0000000..78d32f2
--- /dev/null
+++ b/Source/UnixUserland/fstat.c
@@ -0,0 +1,6 @@
+#include <sys/stat.h>
+
+int fstat(int file, struct stat *st) {
+ st->st_mode = S_IFCHR;
+ return 0;
+}