summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2014-07-12If a constant string needs a name, use a static const array insteadPhilip Guenther
of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings.
2014-07-11using COPTS is probably better than CFLAGSTheo de Raadt
2014-07-11correct readlink termination. from Doug HoganTed Unangst
2014-07-11clarify a comment about readlink. from Doug HoganTed Unangst
2014-07-10sprinkle in -Werror-implicit-function-declaration to disable one of theTed Unangst
worst C misfeatures. ok deraadt miod
2014-07-08sys/user.h can now be substantially gutted.Theo de Raadt
ok guenther
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
2014-06-19Fix memory leak in digest_file() on ferror(). OK tedu@ lteo@Todd C. Miller
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