diff options
author | Anton Kling <anton@kling.gg> | 2024-11-23 14:59:26 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-11-23 16:31:25 +0100 |
commit | 934c30d35a3ca0e0bf6cd8709d779e060e27f6d2 (patch) | |
tree | b2d5df8919b7bf721b9901b56cccad3f3d1644e0 /userland/libc/include | |
parent | 2dce92236b9fe0a9398287ac7c62f2f4e67d53b6 (diff) |
libc: Add append to f(d)open and other fixes
Diffstat (limited to 'userland/libc/include')
-rw-r--r-- | userland/libc/include/stdio.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, ...); |