summaryrefslogtreecommitdiffstats
path: root/canfield
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-26/+26
|
* Use PREFIX nowCameron Katri2021-03-283-6/+8
|
* Get all the games compiling for iOSCameron Katri2021-02-223-13/+35
|
* Use ssize_t for read() results. Don't use int for lseek() results.dholland2014-03-221-6/+5
| | | Call srandom() with time(), not getpid().
* Use ssize_t for read() results. Don't use int for lseek() results.dholland2014-03-221-6/+6
|
* Use uid_t to hold getuid() results, and don't check getuid for failuredholland2014-03-221-5/+3
| | | as it isn't allowed to fail.
* Don't use strings from arrays as format string.joerg2011-05-231-4/+4
|
* 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.
* Christos points out that usage should not use errx, but should usedholland2010-01-031-3/+5
| | | getprogname.
* New sentence, new line.wiz2010-01-011-11/+13
|
* Adjust SYNOPSIS for cfscores to better match reality. Note in BUGSdholland2010-01-011-3/+6
| | | | that the score file isn't portable. Bump date (first time since 1993, and first in 2010...)
* Split struct betinfo into its own header file so it can be shareddholland2010-01-013-25/+50
| | | between canfield and cfscores, instead of copy-pasted.
* Use NULL instead of 0 for pointer tests. Remove an unnecessary cast.dholland2010-01-011-6/+6
|
* Send error messages to stderr. Use errx/warnx, not printf.dholland2010-01-011-9/+6
|
* Correct usage message.dholland2010-01-011-3/+3
|
* sprinkle staticdholland2009-08-122-123/+122
|
* if initscr() fails, exit with a message rather than crash in thedrochner2008-08-081-3/+6
| | | next curses call
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-202-8/+8
|
* Work around gcc signedness warning: if you check for uid_t < 0, gcc warnsdholland2008-01-281-6/+9
| | | | because it's unsigned, but I don't really want to rely on uid_t being unsigned on every platform this code might propagate to.
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-5/+5
|
* Fix typo in the instructions.wiz2006-02-251-3/+3
|
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-3/+3
| | | Sort sections if necessary. Use more/better markup.
* KNF and WARNS=3jmc2005-07-012-98/+67
|
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-3/+3
|
* Remove uses of __P.jsm2004-01-272-53/+53
|
* 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.
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-18/+12
|
* some makefile de-lintinglukem2002-09-181-2/+3
|
* MKfoo=no -> NOfoo=tv2001-12-121-5/+5
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-11/+11
|
* More include additions for exit, abs, strcmp, etc.matt2000-07-031-2/+4
|
* Use setgid(), not setregid().mycroft2000-05-082-6/+6
|
* Fix arguments to *printw().jdc2000-04-271-11/+12
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-122-4/+13
| | | | | | | | | | | | | | | 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.
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-3/+3
| | | are used.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-4/+4
| | | | | | | | | | | | 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-082-27/+27
| | | | | | | | | 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.
* Fix .Bl/.El imbalance.erh1999-03-101-1/+2
|
* 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, as per PR#5867hubertf1998-09-111-6/+4
|
* Use symbolic constants for seek(), open(). Fixed as per PR 6057 byhubertf1998-08-292-10/+10
| | | Joseph Myers <jsm@octomino.demon.co.uk>.
* Simply include -lcurses instead of -lcurses -ltermcapjtc1998-02-181-3/+3
|
* install games that need it setgid.mrg1997-11-201-1/+2
|
* use CPPFLAGS instead of CFLAGSlukem1997-10-221-2/+2
|
* use err/warn instead of perrorlukem1997-10-111-14/+9
|
* WARNSifylukem1997-10-103-39/+152
|
* Clear the last char in input buffer when an erase or kill character isjtc1995-05-131-5/+5
| | | | read. This prevents rubbed-out commands from being accepted. (Fix from PR #862)
* 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 importcgd1995-03-217-30/+45
|