summaryrefslogtreecommitdiffstats
path: root/bin/ls
Commit message (Collapse)AuthorAgeFilesLines
* Print negative minor numbers in hex. Negative minor numbers arebde2000-01-061-2/+3
| | | | | essentially large unsigned ones, and we already print minor numbers > 255 in hex.
* Added missing DPADD's. Removed unrequired SRCS's.joe2000-01-011-0/+1
| | | | Obtained from: bde
* Retire stat_flags.c; it's now in libutil.joe1999-12-301-149/+0
|
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-1/+3
| | | | many places nowadays.
* Fix a bug where a pointer would be one character too far after puttingroberto1999-12-211-1/+1
| | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* Rewriting of flags_to_string() and string_to_flags() to use an array.roberto1999-12-191-86/+61
| | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
* Add `n' to the synopsis.obrien1999-10-161-1/+1
| | | | Forgotten by: sheldonh
* $Id$ -> $FreeBSD$peter1999-08-279-9/+9
|
* Backed out my -n change to imply -l by request of sheldonh.chris1999-08-231-2/+0
|
* Make -n flag compliant to the Single Unix Specification.chris1999-08-231-1/+3
| | | | | | | | | | To quote their ls(1) specification: -n The same as -l, except that the owner's UID and GID numbers are written, rather than the associated character strings. Reviewed by: green
* Take integer rounding into account in the buffer size approximationsheldonh1999-08-191-2/+2
| | | | | | macro. So now it's (1 +) for the sign and (+ 1) for rounding. Reported by: bde
* Style issues in previous commit:sheldonh1999-08-191-4/+14
| | | | | | | | | | Use an upward approximation of the number of characters required for decimal representations of uid_t, gid_t and u_quad_t, intead of arbitrary values that may not be safe in the future. Fix disordering. Requested by: bde
* Add -n option to print numeric user and group IDs instead of namessheldonh1999-08-023-9/+31
| | | | | | | | | | | | in a long (-l) listing. MFC-jockies should make sure that bde's concerns regarding the number of digits required to represent a uid_t and the use of snprintf on the associated PR have been addressed before going wild. PR: 12866 Reported by: Philip Kizer <pckizer@nostrum.com> Obtained from: NetBSD
* Chflags was clearing all flags supplied on the command line after ajmz1999-05-211-2/+2
| | | | | | | clearing flag like dump or noschg, etc. PR: bin/10071 Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
* Various spelling/formatting changes.kris1999-05-082-4/+4
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* .Xr chflags 1 ,hoek1999-04-271-1/+2
|
* changable -> changeablebillf1998-11-301-2/+2
| | | | | PR: docs/8697 Submitted by: Sascha Blank <blank@fox.uni-trier.de>
* Doh. What was I smoking when I wrote this?des1998-10-131-5/+5
| | | | | PR: bin/8301 Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
* Null commit, just to test something. Please ignore.jkh1998-10-041-2/+1
|
* Add missing "else", without whom the prev. commit is a null change.hoek1998-08-021-4/+3
| | | | Fix a 2nd level indentation style bug.
* Allow env. variable LS_COLWIDTHS to specify minimum column widths,hoek1998-07-294-13/+97
| | | | | | | | | | | effectively overriding the dynamically-sized-column feature. This is mostly useful for non-interactive use, where it may be necessary to ensure that listings taken at different times have columns that line-up correctly. I have been assured that at least one large, well-known program will soon be taking advantage of this. :-) PR: bin/7011 Submitted by: Joel Ray Holveck <joelh@gnu.org>
* Correct use of .Nm. Typo.charnier1998-05-151-11/+11
|
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTphk1998-05-131-2/+2
| | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* Add note about BLOCKSIZE variable to -s flag.imp1998-04-291-2/+3
|
* Fix nasty error in len_octal, result not initializedache1998-04-251-2/+2
|
* Fix ctype error #1 - chars must be unsignedache1998-04-251-2/+2
|
* Remove the bogus -? option after reading the getopt() manual :)des1998-04-243-8/+6
|
* o Removed two unused variables (f_dirname and f_newline) in ls.cdes1998-04-243-27/+58
| | | | | | | | | | | | | | | o Added the -H and -P options for treatment of symbolic links. o Removed the #ifdef BSD4_4_LITE, since it does not seem to do anything useful o Fixed up prn_octal() so its output looks more like that of AT&T Unices when -b is given. The next two lines apply only to the first two changes above: PR: bin/6140 Submitted by: Max Euston
* o Renamed '-b' (show unprintables in octal) to '-B'des1998-04-245-25/+97
| | | | | | | | o Added a new '-b' which behaves as in AT&T Unices (show unprintables in octal, using C escape codes when possible) o Added '?' to the getopt() string, since the code in the switch considers it as a valid option.
* Added -b option to display unprintables in octal.des1998-04-216-11/+71
| | | | PR: 1315
* Make a couple of the stat flags dependent on the sys/stat.h header filejb1998-01-091-1/+9
| | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-)
* Use consistent spelling,hoek1997-12-251-2/+2
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* environmental -> environment.charnier1997-09-181-3/+3
|
* Fix sorting of directories when doing '-d'.sef1997-09-181-10/+6
| | | | | PR: bin/4558 Submitted by: Keith Bostic
* Observe precedence set by Phillippe Charnier in adding ansteve1997-08-075-15/+28
| | | | rcsid.
* Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.steve1997-08-077-35/+21
|
* Submitted by: Whistle Communications (archie Cobbs)julian1997-06-021-1/+9
| | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems
* Enable whiteout code since we now have the lite2 support for them.dfr1997-04-292-4/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-3/+3
| | | | posix standard on the topic.
* make usage() and SYNOPSIS agree with each other and add missing optionsobrien1997-03-262-4/+4
| | | | documented in the DESCRIPTION section.
* Typo fix.mpp1997-03-071-2/+2
|
* Add a missing period in the -o option description.mpp1997-02-251-3/+10
| | | | | | Document the depreciated -g option. Inspired by: OpenBSD PR# 119
* Revert $FreeBSD$ to $Id$peter1997-02-229-9/+9
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-149-9/+9
| | | | | | | | 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.
* Minor mdoc cleanup.mpp1997-01-111-2/+4
|
* Add a blurb describing the fact that ls will print thempp1997-01-111-2/+8
| | | | | | | year in place of the hour/minute fields if the time is more than 6 months in the past or future. Also some minor mdoc cleanup.
* Make ls include the year when displaying times that are more thanmpp1997-01-111-2/+6
| | | | | | 6 months into the future. Closes PR# 1657. Submitted by: Sakari Jalowaara <sja.home.tekla.fi>
* 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-147-19/+63
| | | | | | not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-2/+2
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
OpenPOWER on IntegriCloud