Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2005 15:20:21 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/ipcs ipcs.c
Message-ID:  <20050308132021.GA88362@orion.daedalusnetworks.priv>
In-Reply-To: <200503081314.j28DEl3i090934@repoman.freebsd.org>
References:  <200503081314.j28DEl3i090934@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-08 13:14, Giorgos Keramidas <keramida@freebsd.org> wrote:
> keramida    2005-03-08 13:14:46 UTC
>
>   FreeBSD src repository (doc committer)
>
>   Modified files:
>     usr.bin/ipcs         ipcs.c
>   Log:
>   Use 12 columns for (int) values, 20 columns for (long) and align
>   headers properly (right justified for numbers, left justified for
>   everything else).
>
>   This fixes the alignment of the fields on i386, sparc64 and amd64
>   today but does not dynamically assign column widths or bear in mind
>   that some of the values may be 64-bit in the future.
>
>   Reviewed by:    alfred
>
>   Revision  Changes    Path
>   1.26      +50 -47    src/usr.bin/ipcs/ipcs.c

If anyone has a good idea for making the columns widths dynamically
adjustable, please do so :-)

The above fixes only the problems of column alignment shown below:

before:
: orion:/d/src/usr.bin/ipcs$ ipcs
: Message Queues:
: T     ID     KEY        MODE       OWNER    GROUP
:
: Shared Memory:
: T     ID     KEY        MODE       OWNER    GROUP
: m 1966080          0 --rw------- keramida keramida
: m 5832705          0 --rw------- keramida keramida
:
: Semaphores:
: T     ID     KEY        MODE       OWNER    GROUP
:

after:
: orion:/d/src/usr.bin/ipcs$ ./ipcs
: Message Queues:
: T           ID          KEY MODE        OWNER    GROUP
:
: Shared Memory:
: T           ID          KEY MODE        OWNER    GROUP
: m      1966080            0 --rw------- keramida keramida
: m      5832705            0 --rw------- keramida keramida
:
: Semaphores:
: T           ID          KEY MODE        OWNER    GROUP
:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050308132021.GA88362>