[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: Tumblr_l_2369612668365.png (323 KB, 511x697)
323 KB
323 KB PNG
previous: >>108162093

#define __NR_bind                49

https://man7.org/linux/man-pages/man2/bind.2.html

more 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 casts

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/
>>
>>108170938
use case?
>>
>>108170938
alarm is the only syscall i give a shit about when are you going to do that one?
>>
>>108171026
sockets!
https://man7.org/linux/man-pages/man7/ip.7.html
https://man7.org/linux/man-pages/man7/ipv6.7.html
https://man7.org/linux/man-pages/man7/unix.7.html
https://man7.org/linux/man-pages/man7/ddp.7.html
https://man7.org/linux/man-pages/man7/packet.7.html
https://man7.org/linux/man-pages/man7/x25.7.html
https://man7.org/linux/man-pages/man7/netlink.7.html
>>108171031
>>108092980
>>
>>108171049
swag daddy
>>
it's pretty surprising how many syscalls are dedicated purely to sockets



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.