summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/ls.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.mdf2012-09-271-1/+1
| | | | Original code by: Gleb Kurtsou
* Get rid of major/minor number distinction.ed2011-09-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | 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).
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Revert r207677 which is considered a violation of style(9).delphij2010-05-061-2/+6
| | | | | Pointed out by: bde Pointy hat to: delphij
* Move SCCS tags to comments as they were already #if 0'ed.delphij2010-05-051-6/+2
|
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Use a larger field for the size in blocks; the current width (4 digits)des2004-01-201-1/+1
| | | | is only good for 5 MB.
* Fix all WARNS. Checked with "make WARNS=9". Remove unused file.markm2003-06-141-13/+9
|
* - Use MAXLOGNAME - 1 rather than UT_NAMESIZE.robert2002-07-221-3/+2
| | | | - Remove the inclusion of <utmp.h>.
* Fix to WARNS=2 level.obrien2002-04-151-2/+3
| | | | Tested by: AXP gcc 3.1
* Fix SCM IDs.obrien2002-04-011-3/+2
|
* For the sake of consistency, remove an include that is included inmarkm2002-03-201-1/+0
| | | | a previous include. All other files in this app do this.
* Remove __P().markm2002-03-201-2/+2
|
* Fixed divots that I created when I moved prototypes of group_from_gidimp2002-02-191-1/+7
| | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
* They add the following commands:phk2001-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | -anewer -cnewer -mnewer -okdir -newer[acm][acmt] With it, you can form queries like find . -newerct '1 minute ago' -print As an extra bonus, the program is ANSI-fied - the original version relies on some obscure features of K&R C. (This PR was submitted in 1999, and the submittor has kept the patch updated ever since, hats off for him guys, and how about you close a PR ??) PR: 9374 Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* Don't attempt to parse %c, use nl_langinfo insteadache2001-03-211-13/+16
|
* MAXPATHLEN already accounts for the trailing NUL, so no need to add one in.imp2001-03-011-1/+1
| | | | | In addition, since we pass readlink MAXPATHLEN - 1, we would have never have used that extra byte anyway.
* This patch adds the -mindepth and -maxdepth options to find(1), whichroberto2000-06-121-0/+5
| | | | | | | | | | | | behave as in GNU find (and of course as described in the manual page diff included). I think these options would be useful for some people. Some missing $FreeBSD$ tags are also added. The patch was slightly modified (send-pr mangling of TABS). PR: bin/18941 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Fixed printf format errors.bde1998-07-061-1/+1
|
* Make sure we pass the length - 1 to readlink, since it adds its ownimp1998-06-091-1/+1
| | | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt
* Localize itache1996-08-121-3/+2
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-2/+1
| | | | which is no longer bogusly installed in /usr/include.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+118
OpenPOWER on IntegriCloud