Re: Please change /proc/rtc

Alessandro Sigala (sansig@freenet.hut.fi)
Tue, 23 Apr 1996 15:54:17 +0200 (MET DST)


On Mon, 22 Apr 1996, Nelson Minar wrote:

> Is there any general effort to reform all of /proc's output to a
> standard format? The tagged line format (/proc/cpuinfo format, for
> instance) seems like a good compromise to me: both readable and
> parseable. I noticed there's now a /proc/self/status which is a tagged
> version of /proc/self/stat, although there's not yet a /proc/self/statm
> equivalent (and the data in statm is still incorrect).

I agree. In fact the /proc/meminfo file format is a bit 'broken' ;-)
It is the application program (e.g. `free') that should format the
text for the user, not the kernel.

A nice vanilla format for all the /proc/* files may be this:
object:status1:status2:...

for example:

/proc/meminfo may be like this:
memtotal:7000404
memfree:4291033
memshared:4010344
[...]

/proc/interrupts:
timer:0::404040
keyboard:1::13454
cascade:2::0
serial:3:+:673190
mitsumi:11:+:3020
[...]

etc.

--Alessandro