From 6c01d9a7e34e1fccc2775b0e2187ac5e50dd4392 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 20:53:03 +0200 Subject: init: file_reopen, keep stdin/stdout on their standard fds --- src/init/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/init/stdlib.h') 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*); -- cgit v1.2.3