[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: 1710554241913028.jpg (1.89 MB, 2526x2771)
1.89 MB
1.89 MB JPG
previous: >>108129324

#define __NR_accept                43
#define __NR_accept4 288

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

more sockets.... but no one cares ( ._.)
i need to just
accept()
that...
once again, linux loves to recreate the exact same syscall, but now it accepts more arguments

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/
>>
no posts.......
>>
>>108139469
>>108141030
Please accept() my love!
>>
>>108141030
Cute thread OP, I appreciate your dedication
>>
>>108141093
as implied by the OP image, i accept all :>
>>108141141
thank u ..... i hope it is appreciated, but i guess a lot of the syscalls are just boring or uninteresting.....
>>
it's a bit lame that there's an accept4, but no connect4... missed opportunity
>>
odd question
in the man page for getaddrinfo they use it in an example for a icmp echo server.

  s = getaddrinfo(NULL, argv[1], &hints, &result); 

what is the purpose of running this on your own system, fill up a LL of structs with different field options? seems like that should already be known.
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};
>>
>>108141717
nm, A Indian gave me a good answer.
>>
>>108141742
what was the answer?
>>
>>108141782
portability. get your list back that expanded all the NULL hints. presumably the author would then need to to conditionally select them.
>>
>>108139469
They really should have made fds CLOEXEC by default so they wouldn't have to make "new and improved" versions of every syscall later.
At least some of the new ones do that, like pidfd_open.
>>
>>108141932
cloexec is so based honestly
>>
fork and exec are UNIX brain damage
>>
>>108139469
cute shadow mistress
>>
>>108144062
Yes. CreateProcessW ftw.
>>
>>108139469
I'm a codelet but I support your efforts have a bump. I'll start learning C soon
>>
>>108139469
I will continue to say that the BSD socket API has been a resounding disaster.
>>
Oh this is a neat thing you're doing here, man.

Makes me wanna go back and work through OS:TEP. That book defined/explained condition variables to me better than Silberschatz or even Tanenbaum.


You might like this weeb code song from Ar Tonelico.
https://youtu.be/7EX3jbQyqQg

I never quite figured out the language, but there does seem to be some formal logic behind it, (with some emotional interpretation).



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