History log of /src/bin/ls/print.c |
Revision | | Date | Author | Comments |
1.59 |
| 11-Dec-2024 |
simonb | Use the number of blocks used in the current directory instead of the total file byte count when printing the initial "total" line with the -h option combined with -s or -l options.
|
1.58 |
| 06-Nov-2024 |
jschauma | In multi-column output, print the 'total' line even if we ended up using only a single column (e.g., COLUMNS is small or the filenames are long).
|
1.57 |
| 17-May-2020 |
christos | No ACL support for install media (SMALLPROG)
|
1.56 |
| 16-May-2020 |
christos | Add ACL support for FFS. From FreeBSD.
|
1.55 |
| 10-May-2014 |
martin | branches: 1.55.24; PR bin/48798: fix format for ino_t. Slightly modifed variant of the patch provided by Thomas Schmitt.
|
1.54 |
| 22-Feb-2014 |
mlelstv | branches: 1.54.2; fix -w output
|
1.53 |
| 20-Feb-2014 |
christos | Add -O (only leaf files) and -P (print full path), from tls@
|
1.52 |
| 02-May-2013 |
zafer | remove whitespace from end of file. introduced by erh in 1.49
|
1.51 |
| 29-Jun-2012 |
yamt | branches: 1.51.2; handle realloc failure
|
1.50 |
| 15-Mar-2011 |
christos | branches: 1.50.4; - use printf(3) "'" format to do thousands grouping instead of custom version. - fix sign format inconsistencies.
|
1.49 |
| 15-Mar-2011 |
erh | PR#7540, add a -M option to ls which causes sizes (and number of blocks) to be displayed with comma separators (or a locale specific separator).
|
1.48 |
| 18-Aug-2010 |
enami | Fix broken indentation. No functional change.
|
1.47 |
| 02-Apr-2010 |
christos | make it obvious to grep that we are checking ctime.
|
1.46 |
| 01-Apr-2010 |
christos | handle ctime returning NULL
|
1.45 |
| 14-Feb-2009 |
lukem | fix -Wsign-compare issues
|
1.44 |
| 28-Dec-2008 |
christos | branches: 1.44.2; prepare for 64 bit dev_t
|
1.43 |
| 02-Nov-2008 |
ahoka | Implement a printtotal function to avoid code repetition.
|
1.42 |
| 14-Dec-2006 |
christos | Pass lint. From Anon Ymous
|
1.41 |
| 31-Oct-2005 |
jschauma | Somehow missed this in the last commit, where I only changed the commentary to reflect the actual change (plus minor nits). So here's the actual change:
Rather than '-h' suppressing '-s' when using '-l', make it display the blocks used in human readable form, as suggested by Alan Barrett and Daniel Carosone.
(Missing bits spotted, as usual, by wiz@.)
|
1.40 |
| 17-Nov-2004 |
mycroft | Print some future timestamps with HH:MM rather than YYYY, so that we get something reasonable if we're using a file server whose time is slightly ahead.
|
1.39 |
| 09-Aug-2004 |
jschauma | If a files date is any time in the future (not six months or more), use "date "+%b %e %Y"" format. This is what SUSv3 says. Ok jdolecek, dsl
|
1.38 |
| 26-Dec-2003 |
grant | implement -h(umanize).
from David P. Reese Jr. in PR bin/23870.
|
1.37 |
| 22-Sep-2003 |
jschauma | After last weeks addition of the '-b' flag, add '-B' and '-w' flags, suggested by uwe@, inspired by FreeBSD. The three flags override each other (and the '-q' flag) and behave as follows:
-B Force printing of non-printable characters in file names as \xxx, where xxx is the numeric value of the character in octal.
-b As -B, but use C escape codes whenever possible.
-w Force raw printing of non-printable characters. This is the default when output is not to a terminal.
|
1.36 |
| 14-Sep-2003 |
jschauma | Implement '-b' option, which, following FreeBSD, Linux and (I think) Solaris prints octal escapes for nongraphic characters.
|
1.35 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
|
1.34 |
| 07-May-2003 |
grant | make -g behave as it should according to SUSv3 (long listing without owner).
ok'd by kleink@.
|
1.33 |
| 09-Nov-2002 |
enami | Cosmetic changes.
|
1.32 |
| 01-Aug-2002 |
christos | don't include utmp.h
|
1.31 |
| 04-Feb-2001 |
christos | fix nested extern.
|
1.30 |
| 29-Jul-2000 |
lukem | convert to new KNF
|
1.29 |
| 22-Jun-2000 |
assar | make sure to print file names consistenly in column mode
|
1.28 |
| 17-Jun-2000 |
assar | branches: 1.28.2; Do not modify the file name when not printing non-printables, also do it consistently with the file name and possible symbolic link target.
fixes bin/10385 and bin/10384
|
1.27 |
| 09-Nov-1999 |
drochner | branches: 1.27.2; Since our gcc doesn't warn about NULL format strings anymore, we can fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
|
1.26 |
| 17-Feb-1999 |
kleink | branches: 1.26.6; Add support for the XCU5 -p option (-F restricted to directories).
|
1.25 |
| 12-Feb-1999 |
kleink | Implement 1003.2 -m option (stream output format).
|
1.24 |
| 04-Nov-1998 |
christos | %q -> %ll
|
1.23 |
| 04-Nov-1998 |
christos | conservative casts for printfs.
|
1.22 |
| 28-Jul-1998 |
mycroft | Delint.
|
1.21 |
| 16-May-1998 |
lukem | * blocks can be 64bit (not u_long), so calculate and display accordingly * cleanup some other typedamage (int is as good as u_long) * remove unused variables
|
1.20 |
| 21-Jan-1998 |
mycroft | If a time stamp is 6 months or more in the future, display the year in the short form. Also, cache the current time.
|
1.19 |
| 18-Jan-1998 |
lukem | * implement -x; sort columns across the page rather than down the page * in printcol(), don't bother building an index to the linked list if only printing one column with printscol()... * implement -n; prevent [gu]id->name mapping in long listings. inspired by openbsd, but does *not* imply -l by itself. * fix sorting with -d (or mismatched types in general). (from openbsd). * document -g. (from openbsd).
|
1.18 |
| 17-Jan-1998 |
mycroft | Automatically resize the major and minor number fields, and DTRT if the size field is not the same size.
|
1.17 |
| 30-Jul-1997 |
thorpej | branches: 1.17.2; Add some casts to printf args to keep the compiler happy on the Alpha.
|
1.16 |
| 20-Jul-1997 |
christos | Fix compiler warnings. Add WARNS=1
|
1.15 |
| 11-Dec-1996 |
thorpej | Do multicolumn output in a way that's a little more likely to always line up evenly. From D'Arcy J.M. Cain <darcy@druid.com>, PR #2965.
|
1.14 |
| 07-Sep-1995 |
jtc | Sync with 4.4lite2
|
1.13 |
| 21-Mar-1995 |
cgd | convert to new RCS id conventions.
|
1.12 |
| 27-Dec-1994 |
mycroft | Sync with CSRG.
|
1.11 |
| 23-Sep-1994 |
mycroft | Merge with 4.4-Lite version.
|
1.10 |
| 04-Apr-1994 |
chopps | "yet" on quad_t/off_t things. (not noticed on i386 becuase of endian I guess.)
|
1.9 |
| 27-Mar-1994 |
cgd | off_t exp.
|
1.8 |
| 25-Jan-1994 |
cgd | (1) fixup getbsize() calls (2) convert to use err(), warn(), and warnx(), as appropriate.
|
1.7 |
| 13-Jan-1994 |
jtc | The working directory is changed back when fts_children() returns, so their fts_accpath members no longer have the correct relative path. We can solve this problem by looking at the parent's path via p->fts_parent->fts_accpath.
|
1.6 |
| 14-Oct-1993 |
jtc | POSIX.2 says to print a pipe character after fifo names when using the -F option.
|
1.5 |
| 07-Aug-1993 |
mycroft | New version from uunet, with -k option readded, and 4.4 ffs--specific stuff in `#ifdef notyet'.
|
1.4 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.3 |
| 23-Mar-1993 |
cgd | changed "Id" to "Header" for rcsids
|
1.2 |
| 22-Mar-1993 |
cgd | added rcs ids to all files
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 |
| 07-Sep-1995 |
jtc | imported from 44lite2
|
1.1.1.2 |
| 22-Sep-1994 |
mycroft | Import original 4.4-Lite version.
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.17.2.2 |
| 09-Feb-1998 |
mellon | Pull up 1.18 (mycroft)
|
1.17.2.1 |
| 29-Jan-1998 |
mellon | Pull up 1.20 (mycroft)
|
1.26.6.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.27.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.28.2.1 |
| 26-Jun-2000 |
assar | merge in fixes for printing of strange filenames in column mode from trunk approved by releng-1-5
|
1.44.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.50.4.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.50.4.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.51.2.2 |
| 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.51.2.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.54.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.55.24.2 |
| 21-Apr-2020 |
martin | Ooops, restore accidently removed files from merge mishap
|
1.55.24.1 |
| 21-Apr-2020 |
martin | Sync with HEAD
|