Thread #108557703
HomeIndexCatalogAll ThreadsNew ThreadReply
H
previous: >>108548206

#define __NR_sysfs                139

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

i don't even know what to put for the tl;dr lol. get filesystem information i guess?

it's a completely obsolete syscall and really shouldn't even exist anymore. it's been superseded entirely by /proc
i mean, just look at this lol
>This string will be written to the buffer pointed to by buf. Make sure that buf has enough space to accept the string.
...
>There is no way to guess how large buf should be.
fucking lmao. thank god no one really supports this anymore. i'm really not sure how useful it would be in the first place, but i guess it had to have had some use in order to get created at all...
we can also discuss https://man7.org/linux/man-pages/man5/proc.5.html if there's interest. this guy is pretty cool

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 9 replies.
>>
File: fgsfds.png (278.4 KB)
278.4 KB
278.4 KB PNG
>>108557703
>>
funnily, similar theme as the op
https://ops.tips/blog/a-month-of-proc/
>>
>>108559144
oh, that looks like an interesting read. thanks for posting it!
>>
>>108557703
cutecall of the day
>>
>>108557703
>there is no way to guess how large buf should be
ah yes, classic boomer ingenuity and rock solid design
>>
>>108561928
i figure, fuck it. map in a page. surely it'll never be larger than that, right? virtual memory is ``free'' anyway
>>
bampu
>>
bumping because I missed this one yesterday.
>>
>>108566704
there's not much to say about the syscall itself, but proc is pretty cool

Reply to Thread #108557703


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