summaryrefslogtreecommitdiffstats
path: root/snake
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-283-8/+10
|
* Get all the games compiling for iOSCameron Katri2021-02-223-13/+36
|
* Remove extra semicolon.msaitoh2020-05-141-3/+3
|
* Do not pass usleep() values >= 1 million. From Henning Petersen in PR 51286dholland2016-06-271-3/+5
|
* snake(6) supports LCD displays too. (noted by tnn)dholland2016-03-121-2/+2
|
* WARNS=5, and make WARNS=5 the default for src/games.dholland2012-06-192-44/+26
|
* Fix a few of the games to use getprogname() in their usage() functions.pgoyette2010-12-051-4/+8
| | | | | | Suggested by Joerg. XXX There are probably many more that have their progname hard-coded, but XXX I'm not up for a wholesale roto-till at the moment.
* 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-122-66/+67
|
* Remove redundant .brjoerg2009-03-111-2/+1
|
* 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-202-8/+8
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-5/+5
|
* Replve duplicate #includeshubertf2007-01-171-3/+2
| | | From Slava Semushin <slava.semushin@gmail.com>, via private mail
* if getpwuid() returns null, print out the uid rather than dereferencingabs2006-03-171-7/+15
| | | Addresses Coverity CID 930
* Fix overrun in players[] array. Addresses Coverty CID 1457abs2006-03-171-3/+3
|
* Control -d by #ifdef DEBUG; adjust usage message accordingly. Bugjsm2004-02-081-3/+7
| | | | reported by Malcolm Parsons <malcolm@ivywell.screaming.net> in Debian bug 84852.
* Remove uses of __P.jsm2004-01-272-28/+28
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-074-26/+10
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* New sentences begin on new lines.wiz2002-09-261-5/+9
| | | Patch from Richard Elz, slightly improved by yours truly.
* some makefile de-lintinglukem2002-09-181-2/+3
|
* MKfoo=no -> NOfoo=tv2001-12-121-5/+5
|
* Always lseek back to the beginning of the file in post(), which may bejsm2001-08-311-3/+5
| | | | called twice in a game if a bonus occurs. Patch from Malcolm Parsons <malcolm@ivywell.screaming.net>.
* Whitespace and/or punctuation fixes.wiz2001-04-021-4/+4
|
* Use setgid(), not setregid().mycroft2000-05-082-6/+6
|
* Improve snscore error handling.jsm2000-01-211-4/+7
|
* fix handling of '-t' flag, and pause for a little bit after drawing happysnakecgd1999-10-261-2/+5
|
* correct description of representation of snakecgd1999-10-261-2/+2
|
* Convert snake to use curses, and generally clean it up somewhat.jsm1999-09-145-1009/+213
| | | Includes bugfixes from or inspired by OpenBSD.
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-122-11/+30
| | | | | | | | | | | | | | | 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-4/+5
|
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-5/+5
| | | the games.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-082-5/+5
| | | | | | | | | | | | 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-084-31/+29
| | | | | | | | | 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.
* Adapt to change of "termcap.h".tron1999-08-142-5/+5
|
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+2
| | | include <bsd.own.mk> if testing a MKxxx variable.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* fix main() prototype, per PR#5867hubertf1998-09-111-6/+4
|
* const poisoning.mycroft1998-07-271-3/+3
|
* Remove -lcompat; not needed.christos1998-02-041-3/+3
|
* install games that need it setgid.mrg1997-11-201-1/+2
|
* use CPPFLAGS instead of CFLAGSlukem1997-10-221-2/+2
|
* use <termcap.h>lukem1997-10-142-10/+4
|
* WARNSify, KNFifylukem1997-10-125-547/+672
|
* BS was using obsolete 'bs' and 'bc' capabilities. Now tries 'le' first.chopps1996-07-032-10/+13
| | | This deals with pr#2417
* Avoid NULL-pointer deref and for now, simply exit if required terminalpk1996-05-191-5/+14
| | | | | capabilities aren't there. Since the capabilities in question are marked `obsolete' in termcap(5), someone might want to have another look at this someday (PR#2417).
* Fix usages of ospeed.mycroft1995-04-292-6/+6
|
* Use POSIX tty semantics.mycroft1995-04-293-51/+21
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-243-7/+9
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* fix up botched includecgd1995-04-221-3/+3
|