summaryrefslogtreecommitdiff
path: root/kernel/lib
AgeCommit message (Collapse)Author
2024-12-14sb/printf: Add ksbprintfAnton Kling
Easier to add formatted strings to the string builder without using intermediate buffers.
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-11kernel: Add more sv functions and change interfacesAnton Kling
2024-12-10kernel: Add string view and string builderAnton Kling
This makes write/read calls that use strings to communicate much simpler and less error prone.
2024-10-17kernel: Use realloc instead of malloc+freeAnton Kling
2024-07-06Kernel: Fix integer overflowAnton Kling
2024-06-25VFS: dup2 fixesAnton Kling
2024-06-11TCP stuffAnton Kling
2024-06-09Add UDPAnton Kling
2024-04-29Kernel/Socket: Move sockets back to being file descriptorsAnton Kling
2024-04-28Kernel: Use ringbuffer for handling incoming socket dataAnton Kling
2024-04-27Kernel: Make "relist" able to dynamically resizeAnton Kling
2024-04-27Kernel: Make file descriptor numbers reusable.Anton Kling
Instead of using the "append only" list it now uses "relist" which allows for indexes to be removed.
2024-04-25Kernel: Add a ringbufferAnton Kling
This will be used later
2024-04-16Kernel: Improve "out of memory" error handlingAnton Kling
It can now boot with fairly low memory while not crashing and instead gracefully failing the operation. Userland still does not properly handle errors.
2024-04-02Kernel: Use "struct list" to handle file descriptors instead of a fixed ↵Anton Kling
sized array
2024-04-02Kernel: Fix some memory leaksAnton Kling
2024-03-14random changes madeAnton Kling
2024-02-28TCP/UDP: Start rewrite of network socketsAnton Kling
Having sockets be file descriptors seems like a bad idea so I trying to make UDP and TCP sockets be more independent and not be abstracted away as much.
2024-02-21Kernel: Remove all inline assembly.Anton Kling
Now the kernel does not rely upon inline assembly which is often very error prone. This also means that the kernel could probably be compiled with any c99 compiler which would help future bootstrapping.
2024-02-21New clang-format optionsAnton Kling
2024-02-16General cleanupAnton Kling