summaryrefslogtreecommitdiff
path: root/src/user/lib/file.h
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:10:20 +0200
committerdzwdz2022-07-26 22:10:20 +0200
commit8af714e59d16f186fd9173edba4fb2699690947a (patch)
treea7df70cd7a6170ff95a9b85fe84c467a648c1be3 /src/user/lib/file.h
parent137dcb3e207b264c467f4b2b13df2316b8b0a67c (diff)
user/libc: make FILE an opaque type
Diffstat (limited to 'src/user/lib/file.h')
-rw-r--r--src/user/lib/file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/user/lib/file.h b/src/user/lib/file.h
new file mode 100644
index 0000000..9630b6d
--- /dev/null
+++ b/src/user/lib/file.h
@@ -0,0 +1,9 @@
+#pragma once
+#include <stdbool.h>
+
+struct _LIBC_FILE {
+ int fd;
+ int pos;
+ bool eof;
+ bool error;
+};