[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: pensive.png (161 KB, 512x512)
161 KB
161 KB PNG
previous: >>108473059

#define __NR_rt_sigpending        127

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

tl;dr:
check your pending signals

first in a series of syscalls involving signaling
or do you say signalling? i think probably signaling looks better, but i am of two minds on the matter...
signals are another interesting but complicated linux kernel topic. it's quite interesting the system they have set up to temporarily block signals (oftentimes done while in the middle of processing an uninterruptible operation). managing the state must be a nightmare....
do we have any opinions on the matter?

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/
>>
can we just dispense with the pretense that any of us actually come to this decrepit website to engage with anything on good faith? just skip to the part where some fucktard posts about rule 34 of this mascot or whatever so the wastoids can post "omg wtf BASED moment???" and then we can move on to the next thread where we pretend to be on topic for 2 - 3 posts before we derail it
>>
>>108479107
kill yourself
>>
>>108479191
why are you being mean this is an effort post
>>
File: 1774151291306995.jpg (22 KB, 342x400)
22 KB
22 KB JPG
WHAT IS A SYSCALL?
>>
>>108479107
signals are cursed and need to die
>>
File: COCK CHECK.jpg (43 KB, 500x481)
43 KB
43 KB JPG
thank you Anubis
>>
I've really grown to like epoll based programs (even though it is badly documented for some edgecases). If you try it, consider using signalfd as a convenient IPC mechanism in some cases in your eventloop. Beats eventfds for many tasks, especially if you don't have clean parent/ child relationships
>>
>>108479107
based OP

Did you know the linux kernel has it's own c library?
i didn't.
>>
>>108482377
It does, and it sucks since it hardly implements anything. Doesn't do anything for networking.
>>
File: 2026-03-29_20-10.png (54 KB, 441x839)
54 KB
54 KB PNG
>>108482386
it is not very exhaustive.
>>
>>108479425
A miserable little pile of primitives
>>
>>108482392
the way the linux kernel uses macros to skinwalk classes in C is fucking horrifying. not sure if you've ever looked into it
>>
>>108483620
I haven't seen what kernel devs do yet, but I always thought mimicking class behavior with macros in c was kind of pretty in a messy sort of way.
>>
how do you call syscalls right inside the kernel
>>
>>108484262
Syscalls are user space code. They don't exist in kernel space.
>>
>>108484281
I saw some are able to call them though
>>
>>108483620
>le sepples is le bad
>reinvent c++79 poorly with hacky macros
every time
>>
File: 1559411583215.jpg (623 KB, 1920x1080)
623 KB
623 KB JPG
>>108479107
It's been a hot minute since I've seen a syscall in this series that made me go
>what the fuck is this
>how the fuck do you even get in this state
Then I saw
>rt_
and realized nobody uses this anyway
>>
>>108484547
Embedded uses it ( ._.)
>>
>>108484262
>>108484281
this is sort of misleading
all of the code and symbols for syscalls are exposed by the kernel and are perfectly able to be called by the kernel like any other function. it just also exposes an API to userspace which allows the userspace to request that the kernel perform a syscall on the userspace's behalf
>>
>>108479107
Anubussy <3
>>
>>108479107
fuck you for reminding me that i wasn't born a woman and will never be one
>>
File: zi70i.gif (1.57 MB, 360x270)
1.57 MB
1.57 MB GIF
>>108485380
we have the technology. we can rebuild him (her)



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