summaryrefslogtreecommitdiffstats
path: root/worm
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-281-2/+2
|
* Get all the games compiling for iOSCameron Katri2021-02-221-4/+15
|
* remove cpp abusedholland2015-08-171-9/+14
|
* ANSIfyjoerg2011-05-231-22/+13
|
* When using -lcurses, you also need -lterminfo.he2010-02-061-3/+3
| | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies.
* sprinkle staticdholland2009-08-121-34/+36
|
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-3/+4
| | | next curses call
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-281-2/+1
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* This builds with WARNS=4; set it in the Makefile so it stays that way.dholland2008-01-281-1/+2
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-5/+5
|
* Remove uses of __P.jsm2004-01-271-13/+13
|
* Score is in upper right corner, not upper left corner. Patch fromjsm2004-01-011-2/+2
| | | Robert Hunter <roh@cryptocracy.hn.org> in Debian bug 209034.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-072-13/+5
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* .Nm does not need a dummy argument ("") before punctuation orwiz2003-02-251-2/+2
| | | for correct formatting of the SYNOPSIS any longer.
* New sentences begin on new lines.wiz2002-09-261-8/+9
| | | Patch from Richard Elz, slightly improved by yours truly.
* Change deprecated curses function to new equivalent.blymn2001-12-061-3/+3
|
* Keep track of visible worm length. If nowhere is available for thejsm2001-08-311-2/+13
| | | | new prize, have the player win rather than hanging. Bug reported by Malcolm Parsons <malcolm@ivywell.screaming.net>.
* Check for screen sizes that are too small. Fix off-by-one error injsm2001-08-301-4/+13
| | | | trying to place the prize. Position the score appropriately for screens that may not be 80 columns wide.
* Remove documented bug with long worm lengths, and improve handling ofjsm2001-08-292-15/+18
| | | non-standard screen sizes. From OpenBSD.
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* 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