agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
simonb
ae46649fa5
Pass a NULL to getbsize() for any arguments that aren't needed, and
...
remove the otherwise unused variables.
2003-05-30 00:17:25 +00:00
kleink
7c8d837e74
If both -g and -l options are present, let -l take precedence over -g,
...
as requested by several users.
POSIX-2001 is unclear on conflicting option letters as far as the -g
option is concerned; a clarification request will be made.
Addresses PR bin/21519 by Geoff Wing.
2003-05-11 08:06:01 +00:00
simonb
7efb28b165
Add a FALLTHROUGH to keep lint happy.
2003-05-07 13:23:32 +00:00
grant
75d0e9d0c0
make -g behave as it should according to SUSv3 (long listing without
...
owner).
ok'd by kleink@.
2003-05-07 13:00:24 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
fbaeb4bd05
some mdoc improvements.
...
ok'd by wiz.
2003-02-10 16:10:22 +00:00
itojun
6bf8c47b32
we can't do {} while (0) for TEST() macro since it has "break" which
...
goes out of the switch statement. from shin-ichi kaneta.
2002-11-16 13:42:36 +00:00
enami
0cb758feb5
Default .Ar arugment is sufficient.
2002-11-09 12:27:53 +00:00
enami
54a944c353
Cosmetic changes.
2002-11-09 12:27:08 +00:00
simonb
4bce9043f0
Need to initialise the blocksize variable if the -i option is used
...
too. The code in display() could possibly be a bit smarter about this
requirement...
Fixes the problem in PR bin/18321 from David Laight and PR bin/18436
from FUKAUMI Naoki.
2002-09-27 12:01:51 +00:00
wiz
14dfaa4b03
New policy: New sentences start on a new line.
...
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
sommerfeld
af723a4db0
Use the output blocksize when computing how much room to leave for the
...
-s option, to suppress unnecessary leading spaces.
2002-09-14 04:25:55 +00:00
christos
1eb5da90ed
don't include utmp.h
2002-08-01 20:05:48 +00:00
kleink
7595143319
Note that -T is to be used with -l; synced with FreeBSD via Michal
...
Pasternak on current-users.
2002-06-24 20:14:35 +00:00
kleink
5f23bdba58
Add missing -p to synopsis; from Ryan Younce in PR misc/16555.
2002-04-29 19:47:01 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
fair
4d71b1538f
Add explanation of directory sizes, and a reference to dir(5),
...
per PR 14291.
2002-02-03 08:00:05 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
fcae5f73b7
Add hooks to make mtree compilable from src/tools.
2002-01-29 00:07:27 +00:00
soren
3dfa483ad3
Oops, pasto.
2001-12-20 20:17:29 +00:00
soren
dc53bf3cba
Sync getopt() / man page with actual getopt options.
2001-12-20 20:10:33 +00:00
wiz
8adaff33d3
Use standard headers.
2001-12-20 20:05:25 +00:00
wiz
3ebcdc5e43
Whitespace nits.
2001-12-20 19:31:48 +00:00
lukem
678a800f83
change from WARNS?=1 to WARNS?=2 for bin/
2001-11-03 13:40:30 +00:00
lukem
a596720367
enable WARNS?= 2
2001-10-19 00:59:07 +00:00
lukem
353bb37176
fix strlcpy length in previous...
2001-10-18 08:03:46 +00:00
lukem
b720dda403
make this WARNS=2 safe
2001-10-18 03:54:18 +00:00
lukem
0d74a5dc03
flags_to_strings() changes:
...
- fix bug where the 'clear' flag was set outside of main loop, so
"dump,uchg,arch" on a file with flags would clear all the bits
(because "dump" sets 'clear'). noted in FreeBSD PR 10071, and fix
obtained from FreeBSD.
- enforce right-most priority on arguments by clearing the appropriate
bit in the opposite set; if a string of "nouchg,uchg" is given,
chflags(8) would clear uchg because it applies the "set" bits before
clearing the "clear" bits. now, "uchg" sets UF_IMMUTABLE in setp
and also resets it in clrp, solving this problem
- constify second arg (the `default' arg)
2001-10-18 03:16:20 +00:00
simonb
79f5a137af
Xref getbsize(3).
2001-07-08 15:34:13 +00:00
christos
18d76c325c
fix nested extern.
2001-02-04 19:32:26 +00:00
kleink
2caf6aacdd
For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
...
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
hubertf
1cb54f68ac
Add 'RETURN VALUE' section header.
2000-08-28 02:11:04 +00:00
lukem
ba2e04dc88
convert to new KNF
2000-07-29 03:46:14 +00:00
mycroft
e8f910e0d5
ts_nsec -> tv_nsec, per POSIX.
2000-07-23 20:50:44 +00:00
assar
b23df5be68
make sure to print file names consistenly in column mode
2000-06-22 23:42:22 +00:00
assar
c5a806697b
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
2000-06-17 16:11:25 +00:00
bjh21
d12393eb8e
Add Ev tag to COLUMNS
2000-05-28 21:14:11 +00:00
enami
c3a9dd2e8d
- Fix a typo that when group_from_gid is failed (though it merely fails
...
on NetBSD), numeric gid string is used as `user'.
- Don't mix use %u and %d for numeric uid/gid.
- Share temporary buffer.
2000-03-06 11:03:45 +00:00
mjl
5a87b7dd81
Add description of FIFOs in long display (was commented out).
2000-01-05 02:54:55 +00:00
drochner
85cbf55d16
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.
1999-11-09 15:06:30 +00:00
tron
c87c6d5c86
Call setlocale(3) to use localization in "ls" as suggested by
...
Jens A Nilsson in PR bin/8730.
1999-11-02 19:44:07 +00:00
lukem
37085e7c0d
Rename ls.c::main() -> ls.c::ls_main(), and add a wrapper in main.c::main().
...
This allows other programs to link in against ls (e.g, ftpd), without having
to have hacks to deal with multiple main()s.
Yes, I know this is ugly. The clean alternative (move lots of this
into libutil, yada yada yada) isn't fun, and the effort probably isn't
justified...
1999-05-17 12:16:03 +00:00
simonb
a4b250cd02
If an error is encountered, exit with non-zero status.
...
Based on FreeBSD fix (in 1996!), and fixes PR bin/7514 from
Jorgen Pehrson.
1999-05-04 11:55:22 +00:00
kleink
b424b8fe8c
Add support for the XCU5 -p option (-F restricted to directories).
1999-02-17 15:28:08 +00:00
kleink
b7443b0f16
Implement 1003.2 -m option (stream output format).
1999-02-12 14:35:48 +00:00
lukem
9ebc86e047
update date
1999-01-03 02:04:10 +00:00
lukem
1f786e2c6f
refer to chflags(1) for more info on file flags.
...
split up explanation of long format into a list
1999-01-03 01:33:51 +00:00
lukem
0f56c0cd69
* parse `nonodump' (synonym for `dump'; both are inverse of `nodump').
...
from Brian C. Grayson <bgrayson@marvin.ece.utexas.edu> in [bin/3932]
* don't depend on a fallthrough in one case; explicitly return like
all other cases.
* include "stat_flags.h" instead of "ls.h" and "extern.h"; other
programs use this file and don't need the other cruft.
1999-01-03 01:30:10 +00:00
christos
a7e8a30ca7
%q -> %ll
1998-11-04 18:53:17 +00:00