lkml.org 
[lkml]   [1997]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: procfs problems
    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


    \
     
     \ /
      Last update: 2005-03-22 13:39    [W:4.466 / U:0.540 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site