previous: >>108399208
#define __NR_getrlimit 97
#define __NR_setrlimit 160
#define __NR_prlimit64 302
https://man7.org/linux/man-pages/man2/getrlimit.2.html
tl;dr:
manage process resource limits
i wasn't gonna include the prlimit one in this thread, but the manpage grouped them all together, so i figured i would include it too.
lots of bugs in the history of these syscalls. i guess it's a relatively complicated system.
the concept of soft limits and hard limits is pretty interesting. it makes me curious as to the history behind this design decision. i'm sure someone out there knows it. maybe that one anon who posts a lot of cool history tidbits?
which resource do you most often find yourself modifying, anon? some are definitely going to be a lot more common than others, but i'm curious to hear what you all have to say
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/