summaryrefslogtreecommitdiffstats
path: root/bin/ls/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace spaces with tabs where appropriate.grog2012-11-081-6/+6
| | | | Reminded by: jh@
* Add a new -U flag to instruct ls to use the birthtime for printing orjhb2006-03-241-0/+2
| | | | | | | 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/+2
| | | | | | | | 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
* Treat filenames as multibyte character strings (according to the currenttjr2004-05-021-0/+1
| | | | | | | | | | | | | LC_CTYPE setting) when determining which characters are printable. This is an often-requested feature. Use wcwidth() to determine the number of column positions a character takes up, although there are still a few places left where we assume 1 byte = 1 column position, e.g. line-wrapping when handling the -m option. The error handling here is somewhat more complicated than usual: we do our best to show what we can of a filename in the presence of conversion errors, instead of simply aborting.
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Fix a bazillion warnings. This makes almost the whole of src/bin/*markm2003-05-031-4/+5
| | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha
* Print non-printing characters in directory names, as well as file names,tjr2002-10-181-0/+1
| | | | | | | as `?' or `\ooo', depending on whether the -b or -B flags were used. PR: 43995 MFC after: 1 month
* Add missing options required by SUSv3:tjr2002-05-191-0/+1
| | | | | | | | -m List files across the page, separated by commas. -p Print a slash after directory names -x Same as -C but sort across the columns rather than down Submitted by: Kyle Martin <mkm@ieee.org>
* WARNS=4 fixes, plus a healthy dose of fixes inspired by lint.markm2002-02-031-1/+1
|
* o __P has been reovedimp2002-02-021-17/+17
| | | | | | | | | 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.
* Mop up some warnings.joe2001-12-281-1/+1
|
* Revamp the colour support to allow for bold characters. Coloursjoe2001-12-281-0/+2
| | | | | | | | are now defined using the characters a-h and A-H for the bold variants. The old way using 0-7 for the colours still works, but prints a message asking the user to switch. PR: bin/27374
* make sure we do not write out non-printable characters in file namesassar2000-07-041-3/+3
| | | | | | | and symbolic links (by default) PR: bin/19354 Reviewed by: silence on -current
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-171-1/+0
|
* Move colorquit() prototype to extern.hache2000-06-061-3/+4
| | | | | Add "extern" to variables declarations in extern.h to not make them commons into each compiled file.
* Make signal handler safe - don't use stdio (pointed by bde)ache2000-06-061-2/+0
| | | | | | Staticize some color functions Add yet one tolower() call which is forgotten after check Don't check for OOPS - not really needed
* Don't look up the ANSI sequences each time a colour is changed,joe2000-06-051-0/+4
| | | | | | | | | | | this is extremely inefficient, instead write them all down at the beginning. The correct sequence to switch colours off is to first use 'op' if it exists, otherwise use 'oc'. If neither of these exist then we shouldn't be doing colour with this terminal. Reviewed by: ache
* * Re-implement colour support using termcap's AF and AB capabilitiesjoe2000-06-051-0/+3
| | | | | | | | | | | | | to manage the ANSI colour sequences. Colour support is disabled unless the TERM environment variable references a valid termcap. * Allow optional compilation of the colour support in the Makefile, defaulting to yes. This allows us to switch it off for fixit floppies and other mediums where space is an issue and the extra bloat of statically linking with ncurses isn't acceptable. * Display a warning if colour is requested with '-G' but support for it isn't compiled in.
* Add colour support to /bin/ls (at a cost of 1056 bytes on my system).joe2000-06-021-0/+2
| | | | | | | | | | | | | | It is not switched on by default and must be enabled with the -G flag. When using ls -G the output behaviour is modified with ANSI colour sequences wrapped around filenames to help distinguish file types. (Colours can be redefined in the LSCOLORS environment variable as described in the manual page.) Colour support is silently disabled (if switched on) if stdout isn't a tty. Based on: asami's colorls port. PR: bin/18900 && ports/18616.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Added -b option to display unprintables in octal.des1998-04-211-1/+3
| | | | PR: 1315
* Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.steve1997-08-071-2/+2
|
* 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.
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+50
OpenPOWER on IntegriCloud