previous: >>108406971
#define __NR_getrusage 98
https://man7.org/linux/man-pages/man2/getrusage.2.html
tl;dr:
get an account of process resource usage
it's interesting that this accounts for all children and their descendants. that's a lot of bookkeeping under the hood. i might have to go look into the source for this one, because wow.
this is another syscall with _GNU_SOURCE-gated functionality
>The _GNU_SOURCE feature test macro must be defined (before including any header file) in order to obtain the definition of this constant from <sys/resource.h>.
the fact that you have to define this at all, but especially before including any header file, always annoys me lol. really not a fan
:D
relevant resources:
Comment too long. Click here to view the full text.