summaryrefslogtreecommitdiffstats
path: root/worm
Commit message (Collapse)AuthorAgeFilesLines
* Use err(1, NULL) and warn(NULL) for `out of memory' error messages.jsm2000-01-091-5/+5
|
* support arrow keys.cgd1999-10-262-16/+43
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | 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.
* Check for failure of malloc() and calloc() at various places in the games.jsm1999-09-091-2/+9
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+3
| | | | | | | | | | | | 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-081-4/+4
| | | | | | | | | 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.
* Leave ^Z-handling to the system (curses? no idea, at least it works :-),hubertf1999-08-101-24/+2
| | | and don't wait for two seconds when game is over.
* Print score after endwin() so it isn't deleted immediately afterward.hubertf1999-08-081-4/+7
|
* This patch makes worm(6) keep the cursor on the head of the worm.hubertf1999-07-281-2/+5
| | | Submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8103.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-4/+4
|
* Simply include -lcurses instead of -lcurses -ltermcapjtc1998-02-181-3/+3
|
* WARNSifylukem1997-10-122-23/+47
|
* Remove incorrect (but unused) definition of baudrate().mycroft1995-04-291-5/+2
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-2/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, fix up Idscgd1995-04-223-14/+21
|
* specify man pages the new way.cgd1994-12-221-2/+2
|
* Restructure a switch to eliminate a compiler warning.mycroft1993-12-031-16/+14
|
* Compare baudrate() with 1200, not B1200.mycroft1993-08-101-2/+2
|
* Update to use new -mandoc macros.jtc1993-08-051-17/+16
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* Add RCS indentifiers.mycroft1993-08-011-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* got rid of unnecessary -lcompat and associated dependencycgd1993-03-231-2/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-213-0/+376