summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-3018-71/+94
|
* Use macro NAMLEN rather than dirent->d_namlen, for easier portability.jsm1999-09-221-4/+8
|
* Use the function usage().jsm1999-09-221-4/+3
|
* Don't include terminal . in argument of err().jsm1999-09-221-3/+3
|
* Don't include <nlist.h>.jsm1999-09-221-3/+2
|
* Remove generated file "limerick-o" in "clean" target.tron1999-09-211-2/+2
|
* Cleanup and warning fixes for phantasia/setup.c.jsm1999-09-191-4/+17
|
* Allow dm to ban games playing 11pm-midnight.jsm1999-09-191-7/+11
| | | From OpenBSD.
* Define variables as BOOLEAN, not bool, where the extern declarationsjsm1999-09-191-6/+6
| | | already use BOOLEAN.
* Further warning fix for mkdict.jsm1999-09-191-6/+4
|
* Add alternative style for commands at end of game (#ifdef NEW_STYLE).jsm1999-09-191-2/+21
|
* Warning cleanup for boggle's mkdict and mkindex.jsm1999-09-182-11/+15
|
* Fix -Wsign-compare warnings.jsm1999-09-1817-56/+58
|
* Use strncpy() rather than strcpy() with fixed size buffer.jsm1999-09-181-3/+3
|
* Add missing initialisers.jsm1999-09-182-6/+6
|
* Add FALLTHROUGH comment.jsm1999-09-181-2/+3
|
* Give sensible error message in a shouldn't happen case.jsm1999-09-181-3/+3
|
* Make word list for hangman selectable at run time.jsm1999-09-175-12/+40
|
* Convert tetris to use <err.h> functions.jsm1999-09-171-15/+8
|
* Fix some uses of NULL as non-pointer and 0 for null pointer.jsm1999-09-174-12/+13
|
* Use `extern' for header variable declarations in trek(6).jsm1999-09-172-26/+44
|
* Change quiz `pres' data file to include vice-presidents, and fix somejsm1999-09-142-43/+81
| | | | | minor errors. From OpenBSD.
* Update pom to the third edition of Duffett-Smith's book, and clean itjsm1999-09-142-57/+155
| | | | | | | up somewhat. Change time specification format to similar to that used by date(1) - taking a command line argument in seconds since the Epoch is silly. Date parsing based on code from date(1). Based on work by Paul Janzen for OpenBSD.
* Declare variables in extern.h as extern, and add non-externjsm1999-09-142-42/+78
| | | declarations to globals.c.
* Use time() instead of gettimeofday().jsm1999-09-142-10/+7
|
* Convert snake to use curses, and generally clean it up somewhat.jsm1999-09-145-1009/+213
| | | Includes bugfixes from or inspired by OpenBSD.
* Make cribbage use the POSIX.2 pager behaviour.jsm1999-09-131-15/+27
|
* Fix buffer overrun in rogue.jsm1999-09-131-6/+14
|
* Fix uses of names of library functions for other purposes.jsm1999-09-135-18/+18
|
* A couple more checks for file descriptor < 3 missed earlier.jsm1999-09-132-3/+7
|
* Remove rogue's old and bit-rotten cut-down version of curses.jsm1999-09-134-835/+8
|
* Split limericks into "normal" and "offensive" ones.hwr1999-09-124-71/+53
| | | Fixes PR 6202 by Matthias Grutzeck <grut@teco.edu>.
* These fortunes conatain offensive language.hwr1999-09-122-0/+387
| | | | These were originally unamerican.{fake,real} Part of the work on PR 6202.
* Moved to unamerican.real-ohwr1999-09-121-385/+0
|
* Moved to unamerican.fake-ohwr1999-09-121-2/+0
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-1226-75/+216
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Use STD*_FILENO.kleink1999-09-101-4/+4
|
* Check for write errors in auxiliary programs used during build of games.jsm1999-09-104-12/+24
|
* Compare getchar() against EOF, not -1.jsm1999-09-101-3/+3
|
* Fix glitch in const changes (bin/8365 from John.P.Darrow@wheaton.edu).jsm1999-09-101-2/+2
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-099-18/+29
| | | are used.
* Check for failure of malloc() and calloc() at various places in the games.jsm1999-09-099-20/+51
|
* Remove extra blank line in copyright.simonb1999-09-091-2/+1
|
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-0815-72/+72
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-0847-144/+152
| | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* Add use of `const' where appropriate to the games.jsm1999-09-0892-636/+653
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* Removed unused array Movenames[].jsm1999-09-081-6/+2
|
* Convert to something resembling KNF.simonb1999-08-2118-371/+377
|
* Instead of writing out a structure that contains pointers as the headersimonb1999-08-213-18/+62
| | | | | | of the card decks file, just write out the number of cards for each deck. Also use "off_t" for offsets into the file (that are stored after the number of cards) instead of "long". /usr/share/games/cards.pck is now MI.
* Use new endian-specific conversion macros - 64-bit off_t's are nowsimonb1999-08-215-34/+37
| | | | | | | the stored the same regardess of the byte order of the generating host. Note in the strfile(8) man page that all fields are big-endian, not in network byte order.