1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibC: Rewrite stdio

The new version uses buffering much more prominently, and hopefully performs
better. It also uses something resembling C++ rather than plain C.
This commit is contained in:
Sergey Bugaev 2020-05-19 20:35:42 +03:00 committed by Andreas Kling
parent 000a9cad34
commit db30a2549e
2 changed files with 579 additions and 186 deletions

View file

@ -34,20 +34,6 @@
__BEGIN_DECLS
struct __STDIO_FILE {
int fd;
int eof;
int error;
int mode;
pid_t popen_child;
char* buffer;
size_t buffer_size;
size_t buffer_index;
int have_ungotten;
char ungotten;
char default_buffer[BUFSIZ];
};
typedef struct __STDIO_FILE FILE;
typedef struct FILE FILE;
__END_DECLS