Date: Fri, 31 Jan 2003 07:16:52 -0800 (PST) From: Robert Drehmel <robert@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pstat pstat.c Message-ID: <200301311516.h0VFGqHm072925@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
robert 2003/01/31 07:16:52 PST
Modified files:
usr.sbin/pstat pstat.c
Log:
- Modernize the format of the open file showing mode output:
. Print the column headers centered (except for the left-aligned
TYPE header) using a different header for architectures where
sizeof(uintptr_t) is not four.
. Consistently do not print a '0x' prefix for hexadecimal values.
. Separate columns by a single space character.
. Pad the columns presenting an address or offset enough to hold
their respective largest value.
. Do not restrict the output to unknown file types, inodes and
sockets; allow displaying of pipes, fifos, kqueues and crypto file
descriptors too.
- Shorten an overly long line by removing a cast of printf's return
value to void.
PR: alpha/45240
Tested on: i386, sparc64, alpha
Revision Changes Path
1.83 +23 -10 src/usr.sbin/pstat/pstat.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301311516.h0VFGqHm072925>
