summaryrefslogtreecommitdiffstats
path: root/bin/ls/cmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace spaces with tabs where appropriate.grog2012-11-081-8/+8
| | | | Reminded by: jh@
* Add y flag and environment variable LS_SAMESORT to specify the samegrog2012-11-081-4/+16
| | | | | | | | | | | | | | | | | sorting order for time and name with the -t option. IEEE Std 1003.2 (POSIX.2) mandates that the -t option sort in descending order, and that if two files have the same timestamp, they should be sorted in ascending order of their names. The -r flag reverses both of these sort orders, so they're never the same. This creates significant problems for sequentially named files stored on FAT file systems, where it can be impossible to list them in the order in which they were created. Add , (comma) option to print file sizes grouped and separated by thousands using the non-monetary separator returned by localeconv(3), typically a comma or period. MFC after: 14 days
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-281-32/+32
| | | | Also remove some local patches to diff(1) which are now unneeded.
* Add a new -U flag to instruct ls to use the birthtime for printing orjhb2006-03-241-0/+26
| | | | | | | sorting. Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl MFC after: 1 week
* Add the -S option to sort files by size. NetBSD and OpenBSD alreadydd2005-06-031-0/+18
| | | | | | | | have this option with identical semantics (sorting large files first). -r can be used to reverse the sort if that is desired. PR: 81625 Submitted by: Kostas Blekos <mplekos@physics.upatras.gr>, keramida
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* Fix some style bugs I introduced pointed out by bde. Also add a blankdwmalone2004-06-231-15/+23
| | | | | | line after the empty variable declarations. Reviewed by: md5
* Use nanoseconds and then lexicographic ordering when the seconds ofdwmalone2004-06-221-6/+42
| | | | | | | | the [acm]time are the same. I was going to use Scott's patch, but I couldn't get the style quite right, so I used a patch of my own. Submitted by: Scott Mitchell <scott+freebsd at fishballoon.org> MFC after: 3 weeks
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Consistently use __FBSDIDobrien2002-06-301-4/+3
|
* Use __FBSDID() and clean up the vendor tags.markm2002-02-031-5/+6
|
* o __P has been reovedimp2002-02-021-16/+8
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Observe precedence set by Phillippe Charnier in adding ansteve1997-08-071-3/+5
| | | | rcsid.
* Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.steve1997-08-071-2/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Use strcoll instead of strcmp for file names comparationache1996-12-281-3/+3
| | | | Should be in 2.2
* Merge Lite2 mods, and -Wall cleaning. undelete(2) cruftsteve1996-12-141-2/+2
| | | | | | not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+104
OpenPOWER on IntegriCloud