Date: Wed, 11 Feb 2009 20:36:17 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/stat stat.c Message-ID: <200902112036.n1BKaK1q091731@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-02-11 20:36:17 UTC FreeBSD src repository Modified files: usr.bin/stat stat.c Log: SVN rev 188498 on 2009-02-11 20:36:17Z by ed Let stat(1) use fdevname(3). Because we now have a reliable library function that converts file descriptors to character device names, let stat(1) use this. This means it can now do the following: $ stat -f %N /dev/pts/0 I've changed main() to set file properly, so output() is never called with file set to NULL. Approved by: dougb (older version, still used devname) Revision Changes Path 1.8 +20 -12 src/usr.bin/stat/stat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902112036.n1BKaK1q091731>