summaryrefslogtreecommitdiff
path: root/src/init/stdlib.h
diff options
context:
space:
mode:
authordzwdz2022-07-11 20:53:03 +0200
committerdzwdz2022-07-11 20:53:03 +0200
commit6c01d9a7e34e1fccc2775b0e2187ac5e50dd4392 (patch)
treef047b55ad061c3a1dcd8d9be89e8aaf47c462979 /src/init/stdlib.h
parent5c4fb3b3c58a2d850031e9449b5d65887e42f1c7 (diff)
init: file_reopen, keep stdin/stdout on their standard fds
Diffstat (limited to 'src/init/stdlib.h')
-rw-r--r--src/init/stdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init/stdlib.h b/src/init/stdlib.h
index f7917da..e1e753d 100644
--- a/src/init/stdlib.h
+++ b/src/init/stdlib.h
@@ -15,6 +15,7 @@ typedef struct {
bool eof;
} libc_file;
libc_file *file_open(const char *path, int flags);
+libc_file *file_reopen(libc_file*, const char *path, int flags);
int file_read(libc_file*, char *buf, size_t len);
int file_write(libc_file*, const char *buf, size_t len);
void file_close(libc_file*);