summaryrefslogtreecommitdiff
path: root/kernel/libc
AgeCommit message (Collapse)Author
2024-12-15libc: Fix undefined behavior for non positive VLAAnton Kling
Apparently a VLA of zero size is undefined behavior.
2024-12-14sb/printf: Add ksbprintfAnton Kling
Easier to add formatted strings to the string builder without using intermediate buffers.
2024-12-12formatting: Use clang-format on all projectsAnton Kling
This commit also add braces to all `if` statements.
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-12-10kernel: Add kbnprintfAnton Kling
Like snprintf but without null termination
2024-12-09kernel: Add a way to parse numbers from C stringsAnton Kling
After making this change I am now actually doubting if using C strings is a good idea and maybe it should just always just the string view library that userland makes use of. But old code and the upcoming commits rely upon this so it is a change my future less lazy self will do.
2024-12-09kernel: Add ksnprintfAnton Kling
2024-12-08kernel/libc: Add isdigit()Anton Kling
2024-10-16kernel: Add RSOD(red screen of death)Anton Kling
This is not useful since 99% of the time I will have access to the serial output. But it does look cool.
2024-06-28Bug fixesAnton Kling
2024-06-28Kernel: Port over libc printf to kernelAnton Kling
Kernel printf had bugs and was poorly written. LibC still has some FILE* releated stuff that should be cleaned up.
2024-06-26Kernel: Code cleanupAnton Kling
2024-06-17Reorganize logging codeAnton Kling
2024-06-09Add UDPAnton Kling
2024-04-15Bug fix and cleanup.Anton Kling
2024-03-14random changes madeAnton Kling
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
2023-11-28Meta: Apply new clang-format rules to kernelAnton Kling
2023-11-28Kernel: Add basic IPC and move to microkernel design.Anton Kling
The IPC design is currently a WIP and is nowhere near complete
2023-11-15VFS: Add statAnton Kling
2023-11-10Kernel Style: Change uint*_t -> u*Anton Kling
2023-10-31Meta: Move kernel and userland to their own folders.Anton Kling
This is to allow both the kernel and the userland to share certain header files and to make the folder structure a bit more clear.