Home | History | Annotate | only in /src/games/canfield
History log of /src/games/canfield
RevisionDateAuthorComments
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 06-Feb-2010  he When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
 1.7 18-Feb-1998  jtc Simply include -lcurses instead of -lcurses -ltermcap
 1.6 20-Nov-1997  mrg install games that need it setgid.
 1.5 21-Mar-1995  cgd branches: 1.5.4;
clean up import
 1.4 22-Dec-1994  cgd specify man pages the new way.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 23-Mar-1993  cgd got rid of unnecessary -lcompat and associated dependency
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.4.1 20-Nov-1997  mrg pull up from trunk:
- install games files with the correct permissions.
- install games that need it setgid.
 1.1 01-Jan-2010  dholland Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.
 1.12 01-Jan-2010  wiz New sentence, new line.
 1.11 01-Jan-2010  dholland Adjust SYNOPSIS for cfscores to better match reality. Note in BUGS
that the score file isn't portable. Bump date (first time since 1993,
and first in 2010...)
 1.10 15-Sep-2005  wiz Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.8 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.7 02-Apr-2001  wiz Whitespace and/or punctuation fixes.
 1.6 10-Mar-1999  erh Fix .Bl/.El imbalance.
 1.5 10-Oct-1997  lukem WARNSify
 1.4 21-Mar-1995  cgd clean up import
 1.3 05-Aug-1993  jtc Update to -mandoc macros
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.31 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.30 22-Mar-2014  dholland Use ssize_t for read() results. Don't use int for lseek() results.
Call srandom() with time(), not getpid().
 1.29 22-Mar-2014  dholland Use uid_t to hold getuid() results, and don't check getuid for failure
as it isn't allowed to fail.
 1.28 23-May-2011  joerg branches: 1.28.4; 1.28.10;
Don't use strings from arrays as format string.
 1.27 01-Jan-2010  dholland Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.
 1.26 12-Aug-2009  dholland sprinkle static
 1.25 08-Aug-2008  drochner if initscr() fails, exit with a message rather than crash in the
next curses call
 1.24 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.23 15-Dec-2007  perry branches: 1.23.6;
convert __attribute__s to applicable cdefs.h macros
 1.22 25-Feb-2006  wiz branches: 1.22.10;
Fix typo in the instructions.
 1.21 01-Jul-2005  jmc KNF and WARNS=3
 1.20 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.19 27-Jan-2004  jsm Remove uses of __P.
 1.18 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.17 08-May-2000  mycroft Use setgid(), not setregid().
 1.16 27-Apr-2000  jdc Fix arguments to *printw().
 1.15 12-Sep-1999  jsm branches: 1.15.6;
Security improvements for games (largely from or inspired by OpenBSD).

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.
 1.14 09-Sep-1999  jsm Include <time.h> in various places in the games where time() or time_t
are used.
 1.13 08-Sep-1999  jsm Add `__noreturn__' and `__unused__' attributes where appropriate to
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).
 1.12 08-Sep-1999  jsm Add use of `const' where appropriate to 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).

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.
 1.11 13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.10 11-Sep-1998  hubertf fix main() prototype, as per PR#5867
 1.9 29-Aug-1998  hubertf Use symbolic constants for seek(), open(). Fixed as per PR 6057 by
Joseph Myers <jsm@octomino.demon.co.uk>.
 1.8 10-Oct-1997  lukem WARNSify
 1.7 13-May-1995  jtc Clear the last char in input buffer when an erase or kill character is
read. This prevents rubbed-out commands from being accepted. (Fix
from PR #862)
 1.6 24-Apr-1995  cgd Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
 1.5 21-Mar-1995  cgd clean up import
 1.4 28-Feb-1995  jtc change <sys/signal.h> to <signal.h>
 1.3 10-Aug-1993  mycroft Changes for new Curses.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.6.1 21-Jan-2000  jdc Update for SUS v2 curses - printw takes `char *format' not `const char *format'
 1.22.10.1 09-Jan-2008  matt sync with HEAD
 1.23.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.28.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 18-Sep-2002  lukem some makefile de-linting
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo=
 1.5 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.4 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.3 21-Mar-1995  cgd branches: 1.3.4;
clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.4.1 08-Nov-1997  lukem pull up rev 1.4 (approved by thorpej)
 1.22 22-Mar-2014  dholland Use ssize_t for read() results. Don't use int for lseek() results.
 1.21 03-Jan-2010  dholland branches: 1.21.6; 1.21.12;
Christos points out that usage should not use errx, but should use
getprogname.
 1.20 01-Jan-2010  dholland Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.
 1.19 01-Jan-2010  dholland Use NULL instead of 0 for pointer tests. Remove an unnecessary cast.
 1.18 01-Jan-2010  dholland Send error messages to stderr. Use errx/warnx, not printf.
 1.17 01-Jan-2010  dholland Correct usage message.
 1.16 12-Aug-2009  dholland sprinkle static
 1.15 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.14 28-Jan-2008  dholland branches: 1.14.6;
Work around gcc signedness warning: if you check for uid_t < 0, gcc warns
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.
 1.13 01-Jul-2005  jmc branches: 1.13.10;
KNF and WARNS=3
 1.12 27-Jan-2004  jsm Remove uses of __P.
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.10 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.9 08-May-2000  mycroft Use setgid(), not setregid().
 1.8 12-Sep-1999  jsm Security improvements for games (largely from or inspired by OpenBSD).

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.
 1.7 08-Sep-1999  jsm Add use of `const' where appropriate to 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).

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.
 1.6 29-Aug-1998  hubertf Use symbolic constants for seek(), open(). Fixed as per PR 6057 by
Joseph Myers <jsm@octomino.demon.co.uk>.
 1.5 11-Oct-1997  lukem use err/warn instead of perror
 1.4 10-Oct-1997  lukem WARNSify
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13.10.1 23-Mar-2008  matt sync with HEAD
 1.14.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.21.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed