News for hackers. Stuff that matters.
Re:The Journey Before main() by 1718627440 on Sunday October 26, 2025 @08:52AM (#45711405)
Yeah sure they do more things than only doing the syscall, that's the point of an abstraction. But they still provide the functionality of the syscalls, just in the abstraction that you want it to be exposed as in the programming language. That's what I would consider a wrapper.

> C is used a lot in embedded projects.

Sure that's a freestanding implementation, which primary distinction is that it doesn't rely on the libc. The notion of the libc being part of the OS in the wider sense, still holds water here, since here no OS corresponds to no libc.

Re:The Journey Before main() by saagarjha on Sunday October 26, 2025 @09:21AM (#45711630)
mmap and sbrk would be very poor implementations of malloc.
Re:The Journey Before main() by 1718627440 on Sunday October 26, 2025 @10:28AM (#45712184)
We are talking of wrappers on top of mmap and sbrk. Of course you wouldn't use mmap and sbrk instead of the abstraction. It's really the same as the difference between fread and read.