[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: 1714077570991766.jpg (74 KB, 640x430)
74 KB
74 KB JPG
previous: >>108145461

#define __NR_sendmsg            46
#define __NR_recvmsg 47

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

preeeetty much the same exact thread as yesterday. only reason i didn't combine them was cause 4 at once seemed a bit much. plus, this one has the cool struct that could maybe be discussed a bit more.
so, y'know. feel free to discuss it. or don't. i'm not a cop

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/
>>
what does 46 and 47 do
>>
>>108155720
they're magic numbers !
>>
>>108155678
>le jolly exclamation point
>epic themed thread
Go back to plebbit, you insufferable faggot
>>
i fucking love sockets!!!
>>
>>108155813
someone's grumpy..... i just happen to be in a good mood today, sheesh
>>
bampu
>>
>>108155720
46 definitely is, I see it everywhere and that is why it is remarkable. 47 is remarkable for a whole different reason. I never see it anywhere.
>>
>>108155813
Nothing wrong with exclamation marks! faggot!!
>>
>>108155720
is your question a serious one?
in case it is: they're the numbers that get put into the rax register when the syscall instruction is invoked.

>struct msghdr
these old UNIX structs with tons of fields are always a treat, lmao. especially when some of them are literally described as ancillary
>>
File: 1747934791759700.jpg (108 KB, 640x480)
108 KB
108 KB JPG
>>108155678
I love these threads
Thank you for making these threads
I'm usually too dumb to understand but the man pages help a lot
I'm learning more about the OS I'm running!!
>>
>>108155678
whoever makes these, I love you
>>
>>108158590
not always the rax register :-) some of us use ARM
>>
File: 1770580558586136.jpg (65 KB, 736x621)
65 KB
65 KB JPG
>>108158737
>>108158832
i-i love y-you, too, anons....
>>
rescued from page 10!
>>
packet > stream
imagine wasting time parsing shit instead of just casting the msg
>>
>>108158880
>>108158880
fight arm erasure!
I've done syscall tinkering in x64 and riscv, what's the abi using arm? is it sys or ecall?!
>>
>>108160276
Thanks, I would have missed today's thread.
>>
>>108155678
Fuck OP for posting an unfunny tranny reddit meme.
>>
>>108161203
the next OP image is just for you, babe



[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.