summaryrefslogtreecommitdiff
path: root/userland/libc
AgeCommit message (Collapse)Author
2024-12-31libc: opendir should not keep a internal offsetAnton Kling
2024-12-31libc: Change names for head/final in mallocAnton Kling
This used to cause problems when linking
2024-12-31libc: Add more sv/sb functionsAnton Kling
2024-12-16libc: Add gai_strerrorAnton Kling
2024-12-15libc: Fix undefined behavior for non positive VLAAnton Kling
Apparently a VLA of zero size is undefined behavior.
2024-12-15libc: Add setenv/getenvAnton Kling
2024-12-14sb: Allow input to be "ignored"Anton Kling
This removes edge cases from read calls and makes bugs harder to introduce.
2024-12-12formatting: Use clang-format on all projectsAnton Kling
This commit also add braces to all `if` statements.
2024-12-12signal: Remove old way of sending signals and instead use procfsAnton Kling
2024-12-09libc: sv add number parsingAnton Kling
2024-11-28add missing filesAnton Kling
2024-11-28changesAnton Kling
2024-11-24libc: fclose should always close the associated file descriptorAnton Kling
My previous "fix" was a misreading of the spec.
2024-11-23vfs: Support O_TRUNCAnton Kling
2024-11-23libc: Add append to f(d)open and other fixesAnton Kling
2024-11-22libc: Fix bugs in strto(u)l(l)Anton Kling
2024-11-22libc: Add RC_ERRNO to more syscallsAnton Kling
This is very inconstant at the moment
2024-11-22vfs: Add dup()Anton Kling
2024-11-22libc: Add case for strtol(l) where base is 0Anton Kling
2024-10-14kernel: stuffAnton Kling
2024-10-14libc: Copy string views to preallocated buffersAnton Kling
2024-10-13libc/sb: Refactor string builder to allow for none malloc allocationsAnton Kling
A lot of code written usually has means of doing allocations in a more optimal way than having the string builder library doing it itself. For example a temporary buffer can be allocated on the stack and the string builder functions can then make use of this buffer without ever having to run malloc/free(which would be expensive)
2024-10-06libc: Add sb_prepend_bufferAnton Kling
2024-10-03libc: Add sendfile and queueAnton Kling
2024-10-03libc: small changesAnton Kling
2024-10-03libc: Add readdir_multiAnton Kling
This is a faster, zero allocation function for reading directory entries. It has massive speed increases for certain applications since malloc(especially my implementation) is really slow in comparison.
2024-10-03libc: Add fdopendir()Anton Kling
2024-10-02libc: Fix FILE memstream bugAnton Kling
2024-10-02libc: Add faster scandir function(scandir_sane).Anton Kling
This function is significantly faster due to not requiring memory allocations for each directory entry. Now they are instead just allocated as a large chunk. This function is not compatible with scandir since the cleanup of both function will be different. With this a new function scandir_sane_free has also been added. Besides having a function(like scandir) that forces the programmer to implement their own cleanup procedure that is anymore complicated than a simple free() call is absurd.
2024-07-08LibC: Optimize mallocAnton Kling
2024-07-01LibC: Change how kill() worksAnton Kling
2024-06-27stuffAnton Kling
2024-06-26LibC: Fix regression in printfAnton Kling
printf did not write out anything for %d when the value was zero.
2024-06-26Libc/Kernel: Add fcntl()Anton Kling
2024-06-26Networking stuffAnton Kling
TCP is now in a somewhat good state
2024-06-26LibC: Fix printf formattingAnton Kling
Previously %02x would not print out padding if the given value was zero.
2024-06-24Kernel: Purge unused/bad syscallsAnton Kling
2024-06-23LibC: Include delim in getdelim if it was seenAnton Kling
2024-06-22LibC: Fix bugs relating to fseekAnton Kling
2024-06-21LibC: Add ldexpAnton Kling
2024-06-20Add getaddrinfo and change other libc stuffAnton Kling
2024-05-05LibC: fflush() should not dereference stream if it is NULLAnton Kling
2024-05-02sh: Use string view instead of C stringsAnton Kling
2024-04-29Kernel/LibC: Remove unused syscallsAnton Kling
2024-04-29Kernel/IRC: Add setsockopt and move IRC client to use new socket interfaceAnton Kling
2024-04-29Kernel/Socket: Move sockets back to being file descriptorsAnton Kling
2024-04-21LibC: Add different isX() functionsAnton Kling
2024-04-18LibC/Kernel: Move lseek/seek to kernelAnton Kling
2024-04-18LibC: Fix bug in sv_cloneAnton Kling
2024-04-18LibC: Fix compiler warningsAnton Kling
It can now compile with almost all compiler warnings turned on without producing any warnings.