Implement stdio buffering #36

Merged
apio merged 7 commits from stdio-buffers into main 2023-07-22 09:39:02 +00:00
Owner

This is going to be VERY useful for some apps that lag while reading data repeatedly from /etc/passwd, since Ext2 uses no kernel-side caching for now, and fgets() reads data character-by-character (ls -l, ps, anyone?).
Also, some third-party apps expect fflush(), setvbuf() and company.

This is going to be VERY useful for some apps that lag while reading data repeatedly from /etc/passwd, since Ext2 uses no kernel-side caching for now, and fgets() reads data character-by-character (ls -l, ps, anyone?). Also, some third-party apps expect fflush(), setvbuf() and company.
apio added 2 commits 2023-07-21 22:04:16 +00:00
This does nothing for now, but prepares for buffering.
libc: Basic read buffers
All checks were successful
continuous-integration/drone/pr Build is passing
f7be2fe20b
apio force-pushed stdio-buffers from f7be2fe20b to a3ed950be8 2023-07-21 22:04:38 +00:00 Compare
Author
Owner

Whoops, those were write buffers, not read buffers. I updated the commit title for that.

Whoops, those were write buffers, not read buffers. I updated the commit title for that.
apio added 4 commits 2023-07-22 09:25:26 +00:00
Author
Owner

Oh my gosh this actually makes ls -l and ps usable. Looks like it works, just a few more things to do.

Oh my gosh this actually makes ls -l and ps usable. Looks like it works, just a few more things to do.
apio added 1 commit 2023-07-22 09:34:11 +00:00
libc: Implement setbuf(), setbuffer(), and setlinebuf()
Some checks failed
continuous-integration/drone/pr Build is failing
f704739a7c
These are all simple wrappers around setvbuf().
apio force-pushed stdio-buffers from f704739a7c to 085d2895e8 2023-07-22 09:36:27 +00:00 Compare
apio changed title from WIP: Implement stdio buffering to Implement stdio buffering 2023-07-22 09:38:51 +00:00
apio merged commit 085d2895e8 into main 2023-07-22 09:39:02 +00:00
apio deleted branch stdio-buffers 2023-07-22 09:39:02 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apio/Luna#36
No description provided.