previous: >>108212125
#define __NR_execve 59
#define __NR_execveat 322
https://man7.org/linux/man-pages/man2/execve.2.html
https://man7.org/linux/man-pages/man2/execveat.2.html
another one of the most widely used (but also horrifically complicated) syscalls. here, though, the complexity is all buried under the hood. these syscalls seem simple at first glance, but have you ever looked at their source? holy shit. just look at this:
https://elixir.bootlin.com/linux/v6.19.3/source/fs/exec.c#L1684
https://elixir.bootlin.com/linux/v6.19.3/source/fs/exec.c#L1783
also a bit strange is that these are in the fs directory...
anyway, i'm sure some of you have quite a lot to say about exec, so let's hear it
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/