Re: procfs problems

Philip Blundell (pjb27@cam.ac.uk)
Tue, 15 Apr 1997 23:30:25 +0100 (BST)


On Tue, 15 Apr 1997, root wrote:

> How about:
>
> architecture sparc
> platform sun4c
> cpu MB86900/1A
> cpu_vendor Fujitsu
>
> (Tabs to separate fields. Fields may contain spaces.)

IMHO, particularly for things like /proc/cpuinfo that aren't really used
by programs, it would be nice to keep these looking neat for human
consumption (ie have the fields line up). You can probably do this
without causing too much pain for machines as well.

If you only have one field per line, you can make your format

<tag> ":" <arbitrary whitespace> <value>

so

arch: i386
cpu: 586
model: Pentium 75+

phil