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:
parent
000a9cad34
commit
db30a2549e
2 changed files with 579 additions and 186 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue