summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/stdin.c
AgeCommit message (Collapse)Author
2024-12-12formatting: Use clang-format on all projectsAnton Kling
This commit also add braces to all `if` statements.
2024-06-22LibC: Fix bugs relating to fseekAnton Kling
2024-04-18LibC/Kernel: Move lseek/seek to kernelAnton Kling
2023-11-23LibC: Reduce warnings in codeAnton Kling
2023-11-22LibC: Add fflush() and buffer writes to file descriptorsAnton Kling
2023-10-30LibC: Bug fix, make sure to invalidate cache if it skips using itAnton Kling
Since when the cache gets skipped the offset in the file increases far outside of the reach of the current cache. Therefore the current cache should be discarded.
2023-10-30LibC: Skip using cache if length requested is longer than the cache blockAnton Kling
This avoid a bunch of extra systemcalls that would have to be made to read each portion into a cache block.
2023-10-24LibC: Allocate stdin, stdout, stderr on the heap so they can be closed with ↵Anton Kling
fclose
2023-10-22libc: Add a cache to the fread function for reading from files on disk.Anton Kling
This helps a ton when using functions such as fscanf that reads from a FILE byte by byte. By creating a cache it avoids a ton of 'read' syscalls that would otherwise be made.
2023-10-22Move everything into a new repo.Anton Kling