summaryrefslogtreecommitdiff
path: root/src/user/lib/include/bits
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/include/bits
parent137dcb3e207b264c467f4b2b13df2316b8b0a67c (diff)
user/libc: make FILE an opaque type
Diffstat (limited to 'src/user/lib/include/bits')
-rw-r--r--src/user/lib/include/bits/file.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/user/lib/include/bits/file.h b/src/user/lib/include/bits/file.h
index e50d402..63a31c4 100644
--- a/src/user/lib/include/bits/file.h
+++ b/src/user/lib/include/bits/file.h
@@ -1,10 +1,2 @@
#pragma once
-#include <stdbool.h>
-// TODO make opaque
-struct FILE {
- int fd;
- int pos;
- bool eof;
- bool error;
-};
-typedef struct FILE FILE;
+typedef struct _LIBC_FILE FILE;