previous: >>107964764#define __NR_select 23https://man7.org/linux/man-pages/man2/select.2.htmlselect: like poll, but worse! on top of having such an absurdly unwieldy API, it doesn't even work for most file descriptors. i guess that's just a limitation of the glibc implementation, though, and not the underlying syscall. so maybe it's not quite so bad after all. the self pipe and usleep emulations are probably my favorite uses for this syscall. i love cool little hacks like that. what's your favorite hack in that genre? it doesn't have to be specifically related to select, but ideally it at least involves a syscallrelevant resources: man manman syscallshttps://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/
#define __NR_select 23
man man
man syscalls
bampu
>>107974077why did these retards made polland after that they made select?
>>107974077>like poll, but worseeh. it's only "worse" because the bitmap is fixed size at comptime. poll's interface is shit too and you're better off just going straight to your platform's epoll-like abstraction or some spooky-memory-actions-at-a-distance shit like io_uring, IoUring or IOCP
>>107974077Is there any reason to use this instead of a more modern syscall for events?
>>107978183portabilityepoll isn't avaiable outside linux
>>107974077loving sex with chise