News for hackers. Stuff that matters.
Re:Axle OS by nerdponx on Saturday May 20, 2023 @02:27PM (#36014360)
How do you access the contents of /proc programmatically?
Re:Axle OS by nurettin on Saturday May 20, 2023 @02:53PM (#36014552)
read/select loop? Or am I too outdated?
Re:Axle OS by ww520 on Saturday May 20, 2023 @04:20PM (#36015198)
cat, fopen, fread, fwrite, etc.
Re:Axle OS by nerdponx on Saturday May 20, 2023 @10:46PM (#36017578)
Right, so it's an API, but it's only usable through the file system, and it's a pretty bad API. You still need to parse the crappy ad hoc format instead of getting a struct from the kernel.
Re:Axle OS by grepfru_it on Sunday May 21, 2023 @02:31PM (#36023560)
Yep. So the trade off is then app compatibility or a radical new interface
Re:Axle OS by josephg on Sunday May 21, 2023 @02:48PM (#36023695)
If it were in Linux it would probably make sense to keep both interfaces, for the time being. Existing apps can use the current interface, and newer apps can opt in to a fancier interface / api.