previous: >>108737793
#define __NR_futex 202
#define __NR_futex_waitv 449
#define __NR_futex_wake 454
#define __NR_futex_wait 455
#define __NR_futex_requeue 456
https://man7.org/linux/man-pages/man2/futex.2.html
https://man7.org/linux/man-pages/man7/futex.7.html
tl;dr:
fast userspace mutexes
i included the 400s calls, since they're related, but i don't think they actually exist yet? or at least, i couldn't find any documentation/manpages for them, so they're not fully integrated
i'm going to be honest with you. this manpage is really long, and i really couldn't possibly care less. i've said it many times in prior threads, but i hate multithreading. cannot stand it. if you really need these sorts of primitives, just use pthreads. don't torture yourself by using the syscalls. that's for fun things, like mmap or opening files. this is just miserable. pic very much related. if you've ever dug deep into standard library source code (especially for C++), you'll find yourself asking how the fuck these people live like this
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/