4 ms·
That header file is amazing. Thank you for the pointer to that. For anyone wondering, it lets you build programs without a libc: > This file is designed to be
by eindiran 6y ago
That header file is amazing. Thank you for the pointer to that. For anyone wondering, it lets you build programs without a libc:
> This file is designed to be used as a libc alternative for minimal programs with very limited requirements. It consists of a small number of syscall and type definitions, and the minimal startup code needed to call main(). All syscalls are declared as static functions so that they can be optimized away by the compiler when not used.
- matheusmoreira 6y ago> That header file is amazing. Thank you for the pointer to that. Yeah, it's an awesome header! It comes straight from the kernel developers too. They use it for their own tools, apparently. It might be missing some of the newer or niche system calls but it has generic mechanisms which can be used to access everything. I found it during my research for my own Linux system calls library project: https://github.com/matheusmoreira/liblinux https://github.com/matheusmoreira/liblinux There's some additional details implemented by my project such as process start up functions which handle argument, environment and auxiliary vectors. I don't see the need to maintain it anymore though since nolibc.h is so amazing and practical. I even asked Greg Kroah-Hartman about nolibc.h on Reddit: https://old.reddit.com/r/linux/comments/fx5e4v/im_greg_kroahhartman_linux_kernel_developer_ama/fn3rpht/ https://old.reddit.com/r/linux/comments/fx5e4v/im_greg_kroah...