Comment

Comment by sph

See also Linux's nolibc headers, which allows one to write C software that completely bypass libc, but instead directly operate through syscalls.

https://github.com/torvalds/linux/tree/master/tools/include/...

A sample use-case? I was developing an Erlang-like actor platform that should operate under Linux as well as a bare-metal microkernel, and all I needed is a light layer over syscalls instead of pulling the entire glibc. Also it provides a simple implementation for standard C functions (memcpy, printf) so I don't have to write them myself.

parent sph 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton