From 934c30d35a3ca0e0bf6cd8709d779e060e27f6d2 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 23 Nov 2024 14:59:26 +0100 Subject: libc: Add append to f(d)open and other fixes --- userland/libc/include/stdio.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'userland/libc/include/stdio.h') diff --git a/userland/libc/include/stdio.h b/userland/libc/include/stdio.h index ac49a67..781b431 100644 --- a/userland/libc/include/stdio.h +++ b/userland/libc/include/stdio.h @@ -33,6 +33,12 @@ struct __IO_FILE { int buffered_char; int has_buffered_char; int fd; + + int has_control_over_the_fd; + int can_write; + int can_read; + int append; + uint8_t is_eof; uint8_t has_error; uint64_t file_size; @@ -89,6 +95,7 @@ int getchar(void); size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); FILE *fopen(const char *pathname, const char *mode); +FILE *fdopen(int fildes, const char *mode); int fclose(FILE *stream); int fseek(FILE *stream, long offset, int whence); int fprintf(FILE *f, const char *fmt, ...); -- cgit v1.2.3