
I love C but I dont like libc that much
I love C, but I don't like its standard library having tons of hidden states (like errno) and error values baked into their returns. A lot of times I have to stop and check the function's documentation just to know which value is actually the error value. It makes me tired.
So, I have spent some of my time making a custom C runtime and libc from scratch in C89. I know it might be bad or wrong in some places, but at least I understand how it all works under the hood now.
Thing i have done so far are: Explicit Allocator - No Hidden State - Builtin Some Basic types
There are still a lot of things that need to be implemented, and currently, it only supports x86_64 Linux.
I would love to hear feedback!
Repo: https://codeberg.org/fanes/flibc
Edit: Added a GitHub mirror for convenience (and in case Codeberg is having downtime!):
https://github.com/byfanes/flibc