[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: 1777128533966780.png (345 KB, 616x357)
345 KB PNG
previous: >>108701257

#define __NR_nfsservctl                180

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

tl;dr:
nfs API

jesus christ, what a mouthful. another ancient syscall that's been removed in favor of a procfs API
NFS in general is kind of cursed so far as filesystems go. it generally is the exception to a lot of rules in terms of error conditions, etc. but i'm sure someone has a use for it, or else it wouldn't exist. still cursed, 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/
>>
bampu
>>
This is off-topic for /g/
>>
>>108709942
>some actual technical shit gets discussed
>gets dismissed
I fucking hate this place.
>>
File: suffering.gif (904 KB, 500x532)
904 KB GIF
>>108708357
>NFS
>syscall
Sun should've invented FUSE first and thereby banished this abomination to userspace.
>>
>>108710697
all filesystems are evil
>>
one last bump before bedtime! (i am an eepymaxxing zzz-pilled wakecel)
>>
>>108713537
*rapes you in your sleep*
>>
>>108708357
NFS is so cursed it was featured in the UNIX-HATERS HANDBOOK and every complaint is still relevant today
>>
>>108708357
>syscall that's been removed in favor of a procfs API
this whole obsession with "everything is a file" makes Linux programming absolutely miserable. In order to get anything done you have to open some stupid file in /sys or /proc and read some text out of it, and then you have to parse the text to integer or otherwise parse data out of the string. Then you have to write more text back to the string. So basically all your apps are full of string parsing and formatting code, amazing.
On Windows you just call a syscall and it gives you a struct that you can directly read out of and it just werks.
>>
>>108708357
ah NFS. every single fs syscall manpage I've read lists some obscure edgecase where NFS will fuck you over
>>
>>108713537
what's your timezone?
>>108714420
>it was featured in the UNIX-HATERS HANDBOOK
which doesn't mean much on its own, as they really grasp straws in that one.
>>
>>108714673
It's sadly still relevant
>>
>>108714601
yeah, everything is a file works nicely in the simple case, but breaks in the general case. All the ioctl/procfs you have to do, ugh.
I prefer a property based approach. You get a seekable block device. You get a bufferable stream, etc.
>>108714677
unix-likes have never fundamentally been reinvented
>>
>>108713754
@_@
>>108714673
US east
>>108714601
it's very useful from the perspective of a shell
less so from a program
>>108714667
YEP lmfao. it's hilarious
>>
>>108714601
autism
>>
>>108714684
Dumbass. Never post again
>>
>>108715701
be nice!
>>
>>108715333
>it's very useful from the perspective of a shell
Windows shells and scripting languages just let you perform DLL calls, which more than compensates for the lack of a bunch of random pseudo-textfiles which form an "API" according to freetards
>>
>>108715914
autists deserve nothing but derision and scorn



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