summaryrefslogtreecommitdiff
path: root/src/user/lib/include/bits
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/include/bits')
-rw-r--r--src/user/lib/include/bits/file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/user/lib/include/bits/file.h b/src/user/lib/include/bits/file.h
new file mode 100644
index 0000000..d37b7de
--- /dev/null
+++ b/src/user/lib/include/bits/file.h
@@ -0,0 +1,9 @@
+#pragma once
+#include <stdbool.h>
+// TODO make opaque
+struct libc_file {
+ int fd;
+ int pos;
+ bool eof;
+};
+typedef struct libc_file libc_file;