previous: >>108162093#define __NR_bind 49https://man7.org/linux/man-pages/man2/bind.2.htmlmore sockets today! are we excited yet? i know i sure am :)))>The only purpose of this structure is to cast the structure pointer passed in addr in order to avoid compiler warnings.this is pretty amusing. i more or less understand why they did it this way, but god. you're only using three arguments. why not just pass a shared header struct and an implementation-specific void pointer separately? then you don't have to do these evil castsrelevant 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_bind 49
man man
man syscalls
>>108170938use case?
>>108170938alarm is the only syscall i give a shit about when are you going to do that one?
>>108171026sockets!https://man7.org/linux/man-pages/man7/ip.7.htmlhttps://man7.org/linux/man-pages/man7/ipv6.7.htmlhttps://man7.org/linux/man-pages/man7/unix.7.htmlhttps://man7.org/linux/man-pages/man7/ddp.7.htmlhttps://man7.org/linux/man-pages/man7/packet.7.htmlhttps://man7.org/linux/man-pages/man7/x25.7.htmlhttps://man7.org/linux/man-pages/man7/netlink.7.html>>108171031>>108092980
>>108171049swag daddy
it's pretty surprising how many syscalls are dedicated purely to sockets