What is Nostr?
Jadi
npub1c29…pw98
2024-05-08 06:56:27

Jadi on Nostr: Have 10mins to deepen your understanding of #Unix like systems? Check the utistd.h ...

Have 10mins to deepen your understanding of #Unix like systems?

Check the utistd.h page. This is the header file that provides access to the POSIX operating system API. Even a quick browse can show you how your program talks with your OS.

https://en.wikipedia.org/wiki/Unistd.h

For example whenever your program needs a higher privilege (or to act as another user), it calls `setuid` for that. Or starts with `sudo/doas` to have a higher access but calls `setuid` to become "nobody" in most of its life cycle.

If still have a click to spare, check the setuid.h on #OpenBSD man pages:

https://man.openbsd.org/setuid.2

in most cases OpenBSD man pages are the best references you need to understand the OS.
#BSD #Linux
Author Public Key
npub1c29weetz4uk46vl8ja6a98lxqfsz8e27vsdlcqlp8zeqvmkezyaqlupw98