[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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1459795101424.png (678 KB, 960x476)
678 KB
678 KB PNG
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/
>>
File: fgsfds.png (278 KB, 498x630)
278 KB
278 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!
>>
File: 1775677575189567.jpg (79 KB, 772x525)
79 KB
79 KB JPG
>>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



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