News for hackers. Stuff that matters.
Re:liblinux: Architecture-independent access to Linux system... by phendrenad2 on Tuesday November 09, 2021 @02:26AM (#29158781)
Very cool. It seems that glibc is not a faithful wrapper of the Linux syscalls (it makes assumptions about some calls, to provide a better C API, and doesn't support some Linux-specific syscalls).

You could always call syscalls directly, using syscall() (https://man7.org/linux/man-pages/man2/syscall.2.html), but a wrapper library is nicer.

Re:liblinux: Architecture-independent access to Linux system... by matheusmoreira on Tuesday November 09, 2021 @08:41AM (#29161576)
Yes. Glibc is very heavyweight. Its supposedly thin wrappers provide features such as cancellation, for example.

One of my objectives was to produce ELFs with no symbols other than those defined in my own code. Glibc adds a lot of symbols.