summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2014-06-12somehow i missed -vW as extensions;Jason McIntyre
From: Martin Natano
2014-06-05Add support for COLUMNS env variable, inspired by FreeBSD but with a dashPhilip Guenther
of strtonum() from millert@ sprinkled on top. Also, we've always supported TZ for formatting dates, so say so. ok jmc@ millert@
2014-06-04undo my "no TZ support" notes; guenther says they're wrongJason McIntyre
ok guenther
2014-06-03-a, -o, and () are marked by posix as obsolete; the finer details areJason McIntyre
left to the user to investigate, on guenther's advice; ok guenther
2014-05-29document control characters which are extensions;Jason McIntyre
2014-05-29flesh out STANDARDS;Jason McIntyre
2014-05-29for -a and -g, do not say "as per posix": it adds no value to the user, andJason McIntyre
STANDARDS already notes these flags are compliant; it also stops us looking redundant referring to older posix revs; for -g, also note that output can safely be used by the shell; while here, zap some unneeded Fl i missed in previous;
2014-05-29some basic formatting fixes;Jason McIntyre
2014-05-28onocr suppresses the cr, not outputs it;Jason McIntyre
confirmed by/ok millert guenther
2014-05-28document that posix defaults to -L if no options are given, and tweak previous;Jason McIntyre
2014-05-28In his continuing quest to improve our documentation, jmc@ noticed thatPhilip Guenther
we didn't support the -L option required by POSIX, and didn't document the -P option that we did support. Fix that with code and doc bits from NetBSD, but correcting a minor noncompliance in the -L support and applying the jmc@ and sobrado@ magic to the manpage. This commit does not change the default behavior. ok jmc@ millert@ sobrado@
2014-05-27document SIGALRM, since it's handling is somewhat special, and useJason McIntyre
a standard EXIT STATUS blurb now that we can; ok guenther sobrado millert
2014-05-25- it seems our notes that posix require rm to behave like rmdir for directoriesJason McIntyre
is plain wrong: remove it. the note in posix spec is misleading, to be fair - most of the rest of notes in STANDARDS are really historical notes (admittedly caused by the standards i guess) so move them into HISTORY. debatable, yes, but leaves STANDARDS consistent. HISTORY is a hodge podge anyway, by neccesity. - while there, fix a sentence splice in BUGS sobrado agrees with the removal of the rmdir note; millert oks the diff
2014-05-24Delete pointless casts: free() return value to (void), free()'sPhilip Guenther
argument to (char *), and malloc/calloc's return value to the type of the variable it's being assigned to. Convert the one calloc() where the zeroing isn't needed to a reallocarray(). ok millert@
2014-05-24Missed #include <signal.h>Philip Guenther
2014-05-24Make signal setup clearer via helper function, eliminating a gap inPhilip Guenther
ignoring signals when they were already ignored ok millert@
2014-05-24delete restricted ed. no one will ever use this. never documented or enabled.Daniel Dickman
ok millert@
2014-05-23Archives written with a non-standard blocksize currently show up asPhilip Guenther
truncated reads. Until better detection of that case can is implemented, back out that part of rev 1.45 problem noted by sthen@
2014-05-23Make the signal handler safe: block signals when updating data-structuresPhilip Guenther
that are walked by routines called from the signal handler and use dprintf() instead fprintf() in ar_close(). ok millert@
2014-05-23Use errc/warnc to simplify code.Philip Guenther
ok jca@ krw@
2014-05-21Use errc/warnc to simplify code.Philip Guenther
ok jca@ krw@
2014-05-21document which keywords are posix conformant;Jason McIntyre
ok guenther sobrado
2014-05-21Exit with non-zero status if a read is truncated, or if a compressionPhilip Guenther
program was used but it didn't exit successfully. Original diff by mpf@
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage. No intentional functional change. Tweaks by and ok guenther@
2014-05-18use reallocarrayMarc Espie
okay miod@, millert@
2014-05-17better description for -A and -a, with help from millert;Jason McIntyre
ok millert sobrado guenther
2014-05-16more STANDARDS fleshing; ok sobrado millertJason McIntyre
2014-05-16Make the df calculations of available space the same as that done inKenneth R Westerback
ffs_statfs(). In 1998, with /usr/src/sys/ufs/ffs/ffs_vfsops.c r1.16, mickey@ improved the calculation of available blocks in ffs_statfs(). Yesterday guenther@ noticed that this fix had not been applied to the same calculation being done by df(8) when run against raw devices. Which meant different values were displayed depending on which device/file system you gave to df. ok otto@
2014-05-15more for STANDARDS: unsupported lists (noted by guenther) and env vars;Jason McIntyre
2014-05-15flesh out STANDARDS; ok guentherJason McIntyre
2014-05-07use reallocarray. ok guentherTed Unangst
2014-05-07Remove the undocumented and ineffective -F option (force hard linkIngo Schwarze
to directory). This doesn't reduce functionality but merely results in a better error message when trying to use the option, and it simplifies the code. The -f option first appeared in AT&T Version 7 UNIX (1979), and Keith Bostic renamed it to -F for 4.3BSD-Reno in 1990 because it conflicted with System V and POSIX. Meanwhile, NetBSD, FreeBSD, and DragonFly removed it, too. From Tristan Le Guern <tleguern at bouledef dot eu>. OK guenther@ krw@
2014-05-07convert calloc to use reallocarray instead. ok millertTed Unangst
2014-05-06reallocarrayTed Unangst
2014-05-06spell NULL as NULLTed Unangst
2014-04-24calloc is better. from Peter MaloneTed Unangst
2014-04-24calloc is better. from Peter MaloneTed Unangst
2014-04-20Remove more commentary about recently removed des supportTheo de Raadt
from Daniel Dickman
2014-04-18tweak;Jason McIntyre
2014-04-15note some unsupported features, and clean up some macros - in particular,Jason McIntyre
whack a dose of unneccessary Em; ok millert
2014-04-15flesh out STANDARDS; ok millert sobradoJason McIntyre
2014-04-14more x removal;Jason McIntyre
2014-04-14remove nonstandard DES support because DES. ok beck deraadt miodTed Unangst
2014-04-01slightly reword -f; ok sobrado schwarzeJason McIntyre
2014-03-31restore the traditional behavior of -f implying -a; apparently Keith BosticIgor Sobrado
forgot to restore it when the -f flag was put back on 2nd of September 1989, after being removed on 16th of August as a consequence of issues getting it working over NFS, so deviation from traditional UNIX behavior in all BSDs looks like an historical accident; as a side effect, this change accommodates behavior of this option to IEEE Std 1003.1-2008 (``POSIX.1''). joint work with jmc@ (who found the inaccuracy in our implementation), schwarze@ (who provided a detailed tracking of historical facts) and millert@ ok millert@, schwarze@
2014-03-31revert previous: i was wrong;Jason McIntyre
thanks thomas klausner for noticing
2014-03-30a pesky comma rendered the text describing how output is sorted relevantJason McIntyre
only to the "if more than one operand is given" scenario; replace it with a full stop and start a new paragraph; ok millert
2014-03-28expand STANDARDS somewhat; ok millertJason McIntyre
2014-03-27The "old" conversions are not mandated by any standard and areTed Unangst
underspecified. The man page offers little guidance as to their use. Remove them and spare people the (likely poor) decision to use them. ok deraadt jmc millert
2014-03-26Ignore the -b option if cksum is called as-is (e.g. "cksum -b /bsd")Lawrence Teo
as documented on the cksum(1) man page. "looks right" deraadt@ ok millert@