3 ms·
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 su
by phendrenad2 5y ago
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 https://man7.org/linux/man-pages/man2/syscall.2.html), but a wrapper library is nicer.
- matheusmoreira 5y agoYes. 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.