freebsd-dev/bin/ps
Ed Schouten 9f365aa1d6 Get rid of major/minor number distinction.
As of FreeBSD 6, devices can only be opened through devfs. These device
nodes don't have major and minor numbers anymore. The st_rdev field in
struct stat is simply based a copy of st_ino.

Simply display device numbers as hexadecimal, using "%#jx". This is
allowed by POSIX, since it explicitly states things like the following
(example taken from ls(1)):

	"If the file is a character special or block special file, the
	size of the file may be replaced with implementation-defined
	information associated with the device in question."

This makes the output of these commands more compact. For example, ls(1)
now uses approximately four columns less. While there, simplify the
column length calculation from ls(1) by calling snprintf() with a NULL
buffer.

Don't be afraid; if needed one can still obtain individual major/minor
numbers using stat(1).
2011-09-28 18:53:36 +00:00
..
extern.h Add "gid" and "group" keywords to display the effective group ID 2011-06-14 16:50:16 +00:00
fmt.c Get rid of a cast to '(void) ' on the return of a call to strcpy. 2004-06-22 02:18:29 +00:00
keyword.c Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN. 2011-07-18 20:06:15 +00:00
Makefile ps(1) is WARNS=6 on all Tier-1 platforms as far as I can test, 2005-01-27 13:42:40 +00:00
nlist.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
print.c Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
ps.1 Bump date after the previous commit. 2011-07-01 10:57:10 +00:00
ps.c Fix some typos under bin/ 2011-05-22 14:03:46 +00:00
ps.h Get rid of DSIZ; instead just call the sizing function if provided. 2011-04-12 20:10:15 +00:00