News for hackers. Stuff that matters.
Re:Not knowing the /proc file system by chasil on Wednesday October 25, 2023 @11:58AM (#38014145)
I believe that the /proc filesystem first appeared commercially in Solaris, and was then adopted and expanded in Linux.

I got an SDF account recently, and was surprised to find it in NetBSD. OpenBSD has great resistance to it.

...looking at the wiki, many more kernels implement /proc:

"Many Unix-like operating systems support the proc filesystem, including Solaris, IRIX, Tru64 UNIX, BSD, Linux, IBM AIX, QNX, and Plan 9 from Bell Labs."

https://en.wikipedia.org/wiki/Procfs

Re:Not knowing the /proc file system by JdeBP on Wednesday October 25, 2023 @12:17PM (#38014366)
The problem is Wikipedia being misleading again. They each support a proc filesystem. There is no single the proc filesystem that they support.

A case in point: FreeBSD's /proc is very different to Linux's /proc, and most of what one would go to /proc on Linux for is obtained via sysctl() on FreeBSD, with a lot less in the way of machine readable → human readable → machine readable busywork formatting and re-parsing involved.

Re:Not knowing the /proc file system by AndrewDavis on Wednesday October 25, 2023 @04:09PM (#38017664)
Roger Faulkner's 1991 paper is good read. The /proc he describes looks alien if you come from a Linux only background.

https://www.usenix.org/sites/default/files/usenix_winter91_f...

Re:Not knowing the /proc file system by yakubin on Thursday October 26, 2023 @01:59AM (#38022149)
By default, FreeBSD, just like OpenBSD, doesn’t have a /proc. I’m actually running a server without it.
Re:Not knowing the /proc file system by yakubin on Thursday October 26, 2023 @02:00AM (#38022159)
/proc appeared in late versions of original Unix. That’s where BSDs inherited it from before ripping it out.