summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2014-08-27promote "times" to posix special built-in;Jason McIntyre
ok guenther
2014-08-25Delete secret or secret-derived data with explicit_bzero.Doug Hogan
concept ok deraadt@ diff looks ok tedu@
2014-08-17update the built-ins list:Jason McIntyre
- "times" is both promoted to posix and special (ooh!) - "pwd" is promoted to posix, but not special (aah!) while here, jiggle the text somewhat to clarify that "non-POSIX" actually meant when posix mode is off, not mandated by posix joint work with guenther
2014-08-16reduce cutoff for "hours only" start times to reduce window of ambiguity.Ted Unangst
ok deraadt
2014-08-11Still need to separately set FD_CLOEXEC if the new fd was >= FDBASE.Philip Guenther
Affects scripts that directly use 9 of the first 10 fds. noted by miod@
2014-08-10Only need <stdint.h> and not all of <inttypes.h> herePhilip Guenther
2014-08-10Replace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXECPhilip Guenther
ok matthew@ millert@
2014-08-10Add F_DUPFD_CLOEXEC handlingPhilip Guenther
2014-08-10Add newer errnosPhilip Guenther
2014-08-09Switch from calloc() to reallocarray() where the zeroing isn't neededPhilip Guenther
2014-07-21don't try to be clever and name the _PATH_CP exec "mv", since thisTheo de Raadt
breaks the instbin argv[0] mechanism found by landry, ok guenther
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-14Constipate st_hash()Philip Guenther
2014-07-14Oops: resurrect cached file that wasn't ripe for deletionPhilip Guenther
2014-07-14Delete pointless 'return;' at end of functionPhilip Guenther
2014-07-14Instead of using a variable format string to change the field width,Philip Guenther
use %*s and just put the width in a variable
2014-07-13Update procflags list, add PS_SYSTEM, PS_EMBRYO, PS_ZOMBIE andClaudio Jeker
PS_NOBROADCASTKILL. The resulting table is shifted so far right that a few additional lines had to be wrapped. Not ideal but the best we can do at the moment.
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@