summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-10-17no need for realloc() front ends anymoreTheo de Raadt
2014-10-16Use reallocarray() and remove a few archaic memory allocation practices.Theo de Raadt
ok deraadt
2014-10-16Kill the alloc command, which tried to measure behaviour based on sbrk.Theo de Raadt
Discussed with guenther.
2014-10-13remove unused variableCharles Longeau
ok guenther@
2014-10-13Remove duplicate and misleading vcmp() prototype;Ingo Schwarze
patch from Martin <Natano at natano dot net>; ok deraadt
2014-10-13jmc@ found another manpage i broke when i touched inetd.David Gwynne
use kill -HUP 1 as an example of a hangup signal that does something useful and non-contrived. ok jmc@
2014-10-06In case of invalid syntax like "chmod -Pr -w tf" (trailing mode letterIngo Schwarze
in a group of option letters), do not silently ignore the syntax error and do something undefined, but instead error out properly. Found because miod@ said "read the code" (not to me, though). ok doug@
2014-09-14Error out when negative values are given for sizes on the command line.Ingo Schwarze
Do not error out when the maximum permissible value is given, but only when it is exceeded. Patch from William Orr <will at worrbase dot com> using feedback from tedu@. ok millert@
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.Doug Hogan
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
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