[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: share-this-share.mp4 (750 KB, 640x570)
750 KB
750 KB MP4
previous: >>108023158

#define __NR_shmget                29

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

oh man, any time i see system v in a man page, i start to get nervous.
shm_segsz
looks like seggs and sounds like seggsy, though, which is kind of amusing. same goes for SHMALL, eheh...
in general, i really like the concept of shared memory outside of the context of threads. i just don't really like threads, though

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/
>>
"allocates a System V shared memory segment"
is that different than a regular shared memory segment? or the same thing? I guess I only know /dev/shm
>>
Now, this one really is legacy garbage that needs to die.
Either use mmap on files in /tmp, pass memfds between your programs, or use wrappers around the above (e.g. shm_open)
>>
>>108032241
that is a very good question
>>
bampu
>>
File: 5584896.jpg (87 KB, 466x480)
87 KB
87 KB JPG
>shmget
>>
>>108032139
so what happens when systemd is replaced by some other system manager in the future? Do we just get stuck with syscalls like these, adding bloat and complexity to the kernel?
>>
dropkick chao to the pool
megaton punch chao off the cliff
hurl chao egg at the ocean
bully chao
>>
>>108038178
be nice to poor chao ;___;



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