Age | Commit message (Collapse) | Author |
|
have the words
ok florian
|
|
correctly. Pointed out by pjanzen@.
To display the offset, use ISO 8601, as suggested by David Goerger.
While here check if tm->tm_gmtoff changed which probably means that we
moved in or out of daylight savings time.
Input & OK millert, deraadt
|
|
variable is set. This is useful when running multiple clocks in
different time zones.
From James Russell Stickney (jrs AT outband.net), tweaked by me.
Input & OK kn
|
|
Fix putchar(3) handling and a number of other issues in the random(6)
code. In -e mode, avoid bias due to truncation of the return code to
8 bits. In default mode, actually treat the denominator as a floating
point number and print the line with a probability of 1 / denominator.
This allows e.g. printing 2/3 of stdin with 'random 1.5'.
Includes code for uniform random floats by Taylor R. Campbell from
https://mumble.net/~campbell/2014/04/28/uniform-random-float
and clz64() by me.
From lucic71 () bronze ! ctrl-c ! club, thanks.
ok deraadt
|
|
|
|
space), ok millert@
|
|
ok schwarze@
|
|
Over a decade ago, the build infrastructure had special logic to process
man pages that ended with the suffix "tbl".
This infrastructure is long gone and the special naming for these man pages
is no longer needed.
Revert the naming of these man pages for consistency with all other man
pages in the tree. As a bonus, we remove a few lines from some of the
Makefiles making them simpler.
ok jmc@, and no objection from schwarze@
|
|
Changes:
- update country and capital names that have changed in recent years
- remove the formal prefix from South Africa for consistency with other
country names
- add additional capitals for countries with multiple capitals
- add "The" as optional prefix for The Gambia and The Bahamas
- add missing suffix "City" to a few capitals
- add many missing countries
NetBSD appears to have also added territories which I've not added in this
update.
The removal of The Hague for The Netherlands was taken from NetBSD and
confirmed by otto@
The duplicate Turkey and Georgia entries have not been touched.
Prompted by a diff by Ben Fuller, who also provided much helpful feedback.
|
|
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
|
|
person. Rewrite or use singular they.
ok thfr@ sthen@ daniel@ ian@ job@ kmos@ jcs@ ratchov@ phessler@ and
others I'm likely missing on an earlier version.
feedback tj@, feedback and ok jmc@
|
|
ok gnezdo@ miod@ jmc@
|
|
OK millert@
|
|
this filters out all retguard symbols, which are no fun to guess. One
recognizes them easily but can get yourself hanged by a single digit!
An earlier version filtering only __retguard symbols was
ok deraadt, jsing
guenther agreed that filtering all double underbar symbols makes sense.
He also suggested to filter out symbols containing several consecutive
digits, but how much fun is guessing libcrypto symbols without all the
X509 goodness?
|
|
ok millert mlarkin
|
|
the string below (unfortunately), settle for making it more realistic: Usage->usage
-Usage: fortune -P [] -a [xsz] [Q: [file]] [rKe9] -v6[+] dataspec ... inputdir
+usage: fortune -P [] -a [xsz] [Q: [file]] [rKe9] -v6[+] dataspec ... inputdir
|
|
this was ok tb@
|
|
ncurses applications, e.g.:
/usr/games/worms 2>&1 | cat
solve this by only calling pledge(2) after initscr(3) is set and done, or
whatever function that calls it. since pledge(2) is called later now the
promises might be reduced, but this a diff for another day.
found by naddy@ almost a year ago, discussed with him deraadt@ and tb@
ok tb@
|
|
- heros -> heroes
- kill a dup
from tom
|
|
|
|
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
|
|
From trondd, OK pjanzen@
|
|
Specifically, the following quiz.db line
foo:\
bar
was parsed into "foo:bar\n", which made it impossible to answer correctly.
Bug reported and inital fix from Alex Karle, partially reworked by
yours truly, further input from millert@
|
|
and installing USD/SMM/PSD docs.
jmc@ agrees with the direction, ok millert@ on an earlier diff
|
|
From Raf Czlonka
|
|
pledge(2) permissions are required
|
|
ok mortimer millert
|
|
similar to the approach used by mortimer
|
|
|
|
Prevents canfield from suspending itself when you resize the window.
Canfield is not prepared to deal with anything other than normal
characters so just ignore them. OK tb@ pjanzen@
|
|
|
|
|
|
ones only or vice versa is an error rather than a recipe for success.
|
|
bug reported and patch provided
by Tilo Stritzky <lfsdc at gmx dot de> on bugs@;
OK martijn@
|
|
okay martijn@
|
|
Rename these files in the same way as NetBSD did in 2001. Requested by
John Carmack so OpenBSD source code can be checked out on Windows.
ok deraadt@, sthen@, "go ahead" jsg@
|
|
from rafa
|
|
grdc(6) has an optional argument indicating a timeout in seconds.
For example, one could do:
$ grdc 60
to to tell grdc(6) to run for sixty seconds and then exit gracefully.
As implemented, however, the timeout may occur too early or too late
if the system clock is reset with settimeofday(2).
To avoid this problem we can instead use alarm(3) and a signal handler
to implement the timeout. alarm(3) is unaffected by settimeofday(2).
|
|
- Sort includes alphabetically
- Sort function prototypes alphabetically
- Add missing whitespace after commas
- Remove extra whitespace after commas
- Add missing whitespace between binary operators
- Add missing whitespace between reserved words and parens, i.e. fix "if("
- Add missing __dead to usage() definition
|
|
when <unistd.h> is included;
patch from Jan Stary <hans at stare dot cz>;
OK millert
|
|
okay millert@, tb@
|
|
my screen.
i don;t have a copy of this book, and a brief search online shows conflicting
punctuation, but i've chosen to replace the comma splice with a full stop,
which is at least grammatically correct, and seems the most likely solution.
whether this quote needs to be in two files escapes me...
|
|
the existing text encouraged the misconception that punched card
encodings were somehow standardized, which they were not. Lots of
different encodings existed, and the one simulated here was a
proprietary one of one specific vendor (GE). Also correct the
history: the folks at Bell Labs already played with this.
HISTORY mistake noticed by Sevan Janiyan <venture37 at geeklan
dot co dot uk>, who also agrees with the final patch.
tweak and OK jmc@
|
|
and correct Xr.
ok jmc
|
|
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
From Jake Champlin
|
|
ok brynet@, tedu@
|
|
hoping to save somebody's life from the Leather Goddesses of Phobos
|
|
|