Age | Commit message (Collapse) | Author |
|
deleted the greek quiz. Some people felt trauma, and called out our
hubris. At my request, Carson Harding performed a metamorphosis of
the quiz -- kudos to him! After playing, I consider it the acme of
quizzes.
ok jmc mglocker
|
|
deleted the greek quiz. Some people felt trauma, and called out our
hubris. At my request, Carson Harding performed a metamorphosis of
the quiz -- kudos to him! After playing, I consider it the acme of
quizzes.
ok jmc mglocker
|
|
ok jmc@
|
|
|
|
|
|
this. Replace it with a new quiz about galley (ship) parts. This
commit changes the *LAST UNMODIFIED ORIGINAL FILE* (meaning revision
1.1.1.1) from the original import that created OpenBSD on Oct 18,
1995. With this commit, we have completed an amusing mission of
replacing the final parts of the original OpenBSD.
We have reached OpenBSD of Theseus.
ideas & assistance from mglocker, naval terminology help from jmc
|
|
Discussed with deraadt@
|
|
ok mglocker
|
|
|
|
2,$-1g/^/.,.1j does not combine every even-numbered line with the next
odd-numbered line. One correct way is 2,$-1g/^/.,+1j
Pointed out by ed1conf on mastodon.
|
|
OK jmc, mlarkin
|
|
A deraadt/mglocker production
|
|
Proposed by Anisja Mayer (math. student from Basel).
ok deraadt@
|
|
|
|
the wellknown name of "tupa inca yupanqui" has evolved to be either
"topa inca yupanqui" or "tupac inca yupanqui", so accept those answers.
research by claudio, inhouse inca expert
|
|
|
|
|
|
|
|
ok mglocker
|
|
suggested and ok jmc@
|
|
ok jmc@
|
|
ok jmc@
|
|
ultimate question of life, the universe, and everything.
ok jmc@
|
|
|
|
-The best laid schemes o' mice an' men gang aft a-gley{,}:\
+The best laid schemes o' mice an' men gang aft agley{,}:\
most sources i've checked use "best-laid", but not all, so i've erred
on the side of caution;
|
|
|
|
|
|
|
|
|
|
space), ok millert@
|
|
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.
|
|
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@
|
|
|
|
but with much reduced permissions ("stdio tty" if ncurses based and "stdio"
for the ones that only perform basic operations).
There's still a few games that we cannot yet remove their fs access, through
pledge(2), since they open files on demand and too late, this might get
revisited in the future.
OK tb@
|
|
|
|
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)
- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)
OK tb@ after his suggestions
|
|
OK tb@
|
|
- in main() replace exit with return
- drop some /* NOTREACHED */ lint comments along the way.
- make more use of standard CFLAGS, esp. -Wimplicit-function-declaration
- add and sort some headers when needed
- add straightforward pledges to some programs used at compile time
discussed with and ok mestre@
|
|
OK tb@ and he also pointed out that for consistency with rest of the tree we
should include termios.h instead of sys/ttydefaults.h, where applicable
|
|
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h>
lived up until this day so remove it.
Additionally, earlier than that, 18 years ago, random(6) was one of the first
consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but
these days we pull it from stdlib.h, which is already done, so while here
remove dev/rndvar.h also.
"seems comprehensive to me" deraadt@ and OK tb@
|
|
section.
Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore.
OK tb@
|
|
and feel. Revert previous and allow the pager with pledge "proc exec".
Play the game with pledge "stdio rpath".
Discussed with tedu@
|
|
makes pledge much simpler.
from jan stary
|
|
|
|
|
|
|
|
patch from pjanzen@; ok jmc@
|
|
|
|
from pjanzen
|
|
|