News for hackers. Stuff that matters.
Re:Project Oberon by eindiran on Tuesday September 15, 2020 @01:26AM (#24478134)
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.

Re:Project Oberon by matheusmoreira on Tuesday September 15, 2020 @10:17AM (#24481419)
> 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

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_kroah...