freebsd-dev/usr.bin/find
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 Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
find.1 Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
find.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
find.h Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
function.c Using statfs.f_fstypename rather than statfs.f_type whilst performing fstype 2011-06-13 05:22:07 +00:00
getdate.y Don't let find(1) depend on struct timeb. 2010-02-09 21:24:41 +00:00
ls.c Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
main.c find: Exit if there is an unknown option. 2011-06-04 21:59:55 +00:00
Makefile Remove unneeded CFLAGS. 2010-02-10 07:15:21 +00:00
misc.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
operator.c Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
option.c find: If a part of an expression is unknown, do not call it an option. 2011-05-27 22:14:49 +00:00