Thread #108644361
HomeIndexCatalogAll ThreadsNew ThreadReply
H
previous: >>108639567

#define __NR_mount                    165
#define __NR_umount2 166

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

tl;dr:
manage filesystems

another scary filesystem call... i'm at least a little bit more comfortable with these, though. just because i've been forced to interact with them enough that i've become a bit more familiar over time. i like bind mounting a lot. i think it's a really interesting concept. the expire and detach flags for umount2 are also quite interesting
do you ever use any of these flags? or are plain old mount/umount usually good enough for you?

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/
+Showing all 71 replies.
>>
>>108644361
>mount
Yep. coombait was unavoidable on this one. You on the left, me on the right, 'nuff said.
>>
>>108644454
i wish i had been able to find a good image of one of them actually mounting the other, but unfortunately i'm in a rush today
also teto is my spirit animal, but i must admit that i relate more to miku in this one
>>
How many of these syscall posts have you made already? I've been finding your posts intermittently for quite some time now
>>
>>108644729
Count the number of days elapsed so far, I guess.
Or search the archive. He's been making these very punctually everyday as far as I've followed them
>>
>>108644487
I gotchu.
>>
>umount
more like "uhmm sweaty device is busy" or just hanging without doing anything
>>
>>108646232
This is the syscall thread, it's more like returning EBUSY
>>
>>108644361
me on the left
>>108645249
me on the right
>>
>>108646352
Nah, it'll just block.
Which goes to show just how lobotomized kernel interfaces actually are.
>>
>>108646416
dam sun
>>
mount >>108644361 /page1
>>
>>108645249
me top right
>>108644759
i'm a girl btw
>>
>>108644361
I love Teto
>>
tangentially related, i'm making something, how would you always listen to udev add events and auto-mount?
>do it in main script, make script concurrent or threaded, use udev library in the lang
>do it with a udev rule in /etc/udev/rules.d/

udev events seem finnicky as hell. i plugged something in with a custom rule that printed 1 line to a file, and the file had like 20 lines. with a udev library (pyudev for example) you can check for an "add", and just set a flag, and then have something happen based on the state of that flag, so a billon events dont do the thing a billion times.
but why is it so touchy anyway?
>>
>>108649641
>but why is it so touchy anyway?
Mechanism over policy - i.e. userspace is responsible for anything because the kernel cannot be bothered.
>>
>>108648437
>i'm a girl btw
Don't care. I don't do gender discrimination here bro.
>>
I always type unmount or umount wrong a couple of times before I get it right.
>>
>>108650064
>I don't do gender discrimination here bro.
In other words:
>you're fucked either way
>>
>>108644361
I don't think I've ever invoked this one directly.
But I have used the wrapper user space programs a lot
>>
>>108650377
One of my biggest frustrations when starting linux was trying to figure out why "unmount" wasn't working.
Took me days to figure out the command was actually "umount".
>>
>>108650385
I don't fuck either. I dwell on blue boards for a reason.
>>
>>108651321
lol
>>
Why does nobody actually talk about the syscalls in these threads?
>>
for a board full of chuds you guys sure do love engaging with every thread this tranny makes to validate her identity
>>
>>108655001
What makes them tranny though.
>>
>>108654853
how many systems developers do you think browse this place
>>
>>108656402
he's probably retarded and thinks vocaloid = tranny
Teto is pretty transcoded tho, at least 3 out of 5 of her most popular English songs are from transgender producers
>>
>>108658874
No the person who makes these threads calls themselves a girl >>108648437 and posts memes only a tranny would post (ie pegging memes where both participants appear female). OP is just lonely and needs a gf and sadly the groomers got to him.
>>
>>108658928
She sure knows how to spike your cortisol.
>>
>>108656402
browse /g/ for a week, take note or even save the OP pics that they post, then once that week is over you open those pics on your 2nd monitor or print them out, and start going board through board and do a cross examination. Look for the board that most closely matches the themes and ideas conveyed through OPs pics. Also if you wanna skip that just enter the threads and see how OP responds to people engaging with them, it's always in that stereotypical bubbly feminine personality most closely associated with someone trying to roleplay a female. If you ever played an mmo you've come across it tons of times.
>>
>>108659007
I'm not autistic enough for this shit.
>>
>>108656402
>>108659085
I'm pretty sure OP admitted to being trans in one of the early threads but I cba to look into the archives.
>>108658950
Would be pretty funny if it's a woman pretending to be trans just to screw with us.
>>
>>108658874
everyone knows tetoposters are agp. not to mention the art style.
>>
>>108659085
you don't know how a woman types?
>>
>>108654853
we're all larpers here, no bully. this is a larper safe space
>>
i think we should all be nice to one another ^_^
>>
>>108661758
I don't.
>>
>>108661758
>>108644361
You very beautiful woman. My wife.
>>
>>108661856
i am indeed quite cute :3c
>>108661846
wah, so mean....
>>
>>108651281
cute story:3
the reason is that the earliest UNIX assemblers only allowed for 6 significant characters in symbols (unmount is 7 chars long)
>>
>>108661985
... that almost sounds as stupid as many Windows files still being limited to 8 characters because of DOS compatibility (ntoskrnl.exe, msvcrt.dll, d3d8thk.dll ...)
>>
>>108662316
It's the reason many libc and syscalls are so aggressively abbreviated: creat, strchr, strspn etc.
and why variants of these functions feature single characters at the beginning or in the middle instead of where you'd expect them from a normal abbreviation
strncpy, strcspn, strpbrk, vsnprintf etc.
>>
>>108644361
I am starting to think like a half of essential binaries are just wrappers around the syscalls with the same name
>>
>>108663025
yes?
that's literally what they are
every posix shell operator is syntactic sugar for some low level linux stscal
>>
>>108648526
We know, Miku
>>
>>108663319
lol
>>
>>108663025
this is the level of genius that permeates this thread
>>108662620
congrats on having learnt first year university level trivia, retard
>>
>>108649641
the people who design APIs are about as stupid as the ones who consume them. you wouldn't know better anyway
>>
>>108644759
It's obviously botted
>>
>>108644759
she*
>>
>>108658950
the groomers must have got to you too.
>>
>>108646352
that's what op has
>>
>>108646416
Bitching about things made with educated, defensible tradeoffs and how they square up to alternative solutions, makes you look smart to ignorants but an egotistical retard to anyone who knows the history behind these decisions.
>>
>>108659945
it's namefags like you that feed into tranny dysphoria with your incessant want for there to be women online smarter than you at your hobby.
>>
>>108665739
Nah, I'm not autistically obsessed with trannies.
>>
>>108665757
>everyone who disagrees with me is ignorant
OK, autist.
>>
>>108665933
>>108665929
autistic
>>
>>108665929
yeah, you just are one
>>
>>108666793
>>108666818
>two autists next to one other
I have yet to hear good arguments why autists shouldn't be banned from the internet like sex offenders. They're certainly not adding to it.
>>
>>108666957
says the biggest autist itt lmao. eat a dick
>>
>>108665665
nop, I picked that up by reading K&R C where it mentions the external 6 character limit and adding 1&1 together
>>
>>108666968
Seethe, autist. It suits you.
>>
>>108667052
autism
>>
>>108667054
Triggered the autist.
>>
>>108667056
autism
>>
>>108667062
>>108667052
>>
>>108667077
>no u
I accept your concession. your next reply will be of the exact same retort and I shall accept that concession too.
>>
>>108667087
>>108667052
>>
>>108663025
>frogposter
unironically the smartest man itt
>>
>>108663319
stupid
>>
>>108662316
autism

Reply to Thread #108644361


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)