1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

1356 Commits

Author SHA1 Message Date
jsg
6e23b9dc8d change some 4.4BSD references to earlier releases
ok schwarze@
2022-08-04 06:20:24 +00:00
daniel
ac81be68d2 remove the "tbl" suffix for a few man pages
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@
2022-07-11 03:11:49 +00:00
daniel
0fde2ccbdd update countres and capitals in quiz(6)
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.
2022-07-06 02:09:05 +00:00
naddy
41ce3b17e7 man pages: add missing commas between subordinate and main clauses
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@
2022-03-31 17:27:13 +00:00
jsg
25a24f0b58 Avoid gendered language in man pages when not referring to a specific
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@
2022-02-18 23:17:13 +00:00
jsg
d905fc10a3 prefer https links in man pages
ok gnezdo@ miod@ jmc@
2022-02-18 10:24:32 +00:00
gnezdo
4f2e04b490 Fix UB "shift-out-of-bounds" in battlestar
OK millert@
2022-02-05 23:00:20 +00:00
tb
b5a76aaea7 Filter out all symbols starting with a double underbar. In particular,
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?
2021-12-24 23:01:56 +00:00
deraadt
361380a1a5 The PATH_MAX+1 bites. The PATH_MAX+1 bites. You die...
ok millert mlarkin
2021-12-15 16:29:29 +00:00
jmc
cd5636cd1f since it's unlikely that i'll get away with changing fortune's real usage to
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
2021-11-20 19:15:55 +00:00
mestre
16dd490345 missed in previous commit
this was ok tb@
2021-10-23 15:08:26 +00:00
mestre
bda84ce940 if both stdout and stderr are redirected to a non-tty, pledge(2) will kill
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@
2021-10-23 11:22:48 +00:00
jmc
d8feb385f8 - guiness -> guinness
- heros -> heroes
- kill a dup

from tom
2021-08-24 20:04:28 +00:00
jmc
01ef4bc58a vini vidi vici -> veni vidi vici 2021-08-24 13:16:07 +00:00
beck
bc5a8259a4 Change the error reporting pattern throughout the tree when unveil
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@
2021-07-12 15:09:18 +00:00
millert
8a56d9bbcf Remove extraneous for() likely caused by copy & paste.
From trondd, OK pjanzen@
2021-04-29 01:57:00 +00:00
naddy
5a0076c3c8 quiz: handle line continuation in data files correctly, switch to getline(3)
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@
2021-03-11 21:18:25 +00:00
jsg
093fc5b92d Add some references, most of these were removed when we stopped building
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff
2021-03-08 02:47:25 +00:00
tb
8613de63bb Fix intercardinal directions in hack help.
From Raf Czlonka
2021-03-07 17:08:49 +00:00
mestre
9edb0cbec1 while learning (teachgammon(1)) you might want to save your game so "{w,c}path"
pledge(2) permissions are required
2021-02-06 21:42:30 +00:00
deraadt
d0bb67025f satisfy -fno-common by duplicating deck chairs as required
ok mortimer millert
2021-01-27 01:59:39 +00:00
deraadt
9cf65994f1 satisfy -fno-common
similar to the approach used by mortimer
2021-01-27 01:57:37 +00:00
millert
46c6838e68 Fix build with -fno-common. OK deraadt@ 2021-01-26 20:42:49 +00:00
millert
a6d654780e Ignore special keys returned by the curses getch() function.
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@
2021-01-21 20:08:17 +00:00
jmc
d075035988 some updates from pjanzen; 2021-01-21 07:12:34 +00:00
schwarze
e8326ca2c6 add the missing EXIT STATUS and HISTORY sections 2021-01-03 01:41:51 +00:00
schwarze
c3f0a71bac Obvious bugfix: requesting a long dictum from a file containing short
ones only or vice versa is an error rather than a recipe for success.
2021-01-03 01:32:13 +00:00
schwarze
6e88d42dcd fix inverted exit status of fortune -m;
bug reported and patch provided
by Tilo Stritzky <lfsdc at gmx dot de> on bugs@;
OK martijn@
2021-01-02 21:35:11 +00:00
zhuk
cb8ad17457 Avoid NULL dereference after returning from copy().
okay martijn@
2020-12-15 14:06:32 +00:00
daniel
166ddc28d1 the names com1 to com9 are reserved filenames on windows
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@
2020-12-15 00:38:18 +00:00
jmc
cbe702d0ae fix unmarked/ignored descriptive mix up;
from rafa
2020-12-13 15:47:32 +00:00
cheloha
fb669f8977 grdc(6): implement timeout with alarm(3)
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).
2020-06-06 17:03:16 +00:00
cheloha
6222ba341e grdc(6): miscellaneous style(9)
- 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
2020-06-06 13:21:40 +00:00
schwarze
d167610cf6 no need to declare "extern optarg" and "extern optind"
when <unistd.h> is included;
patch from Jan Stary <hans at stare dot cz>;
OK millert
2020-02-14 19:17:33 +00:00
espie
3367dcf595 a few depend:-related thingies that were still in.
okay millert@, tb@
2019-12-21 21:39:59 +00:00
jmc
81b7b661bd fix gary zukav's "acceptance without proof" quote, which just appeared on
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...
2019-09-27 20:44:22 +00:00
schwarze
32a8c8b51d Be more specific regarding which encoding this simulator generates:
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@
2019-09-08 22:43:46 +00:00
deraadt
4d9461faa6 Move 4 manual pages from not-a-function filenames to a correct filename,
and correct Xr.
ok jmc
2019-08-30 18:33:17 +00:00
jmc
4279707e7c spelling fix and zap a stray line while here; 2019-08-22 16:32:26 +00:00
deraadt
df69c215c7 When system calls indicate an error they return -1, not some arbitrary
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.
2019-06-28 13:32:41 +00:00
lteo
41daf97413 Remove unused variables; no binary change.
From Jake Champlin
2019-05-20 02:11:22 +00:00
rob
41b007386b Unveil tetris.
ok brynet@, tedu@
2019-05-18 19:38:25 +00:00
schwarze
ab9f6680fc patch from <tleguern at bouledef dot eu> to support backward rotation,
hoping to save somebody's life from the Leather Goddesses of Phobos
2019-05-15 15:59:24 +00:00
jmc
724fe9d8c7 eaktway eviouspray; 2019-05-12 06:07:36 +00:00
tedu
189fbbeead add an example to the man page. discovered by mlarkin 2019-05-11 23:52:17 +00:00
tedu
84f04a3e43 rm lists of hereditary wizards and bad users to ensure level playing field
ok benno mlarkin tb
2019-05-09 20:19:22 +00:00
jmc
75bcd186ff macro args and punctuation should be space spearated;
from fabio scotoni
2019-04-08 17:49:07 +00:00
bentley
dc14b708bc Fix hack(6).
- Write savegames and scorefiles to the current directory instead of /var
- Save oc_name and oc_descr alongside oc_uname in all situations
- When a levitation potion times out, explicitly float down

These patches were contributed last year by "tonypony76"; thanks!

ok deraadt@, with added enthusiasm from tedu@
2019-04-05 09:02:27 +00:00
tb
d2ba0c38d7 g/c unused robots_roll file.
From Randy Hartman
2019-02-26 07:14:35 +00:00
schwarze
b28c290522 missing word found in my tree 2019-02-06 15:02:01 +00:00