Home | History | Annotate | only in /src/games/robots
History log of /src/games/robots
RevisionDateAuthorComments
 1.17 27-Jun-2022  christos Enable FANCY mode for debugging purposes:
- To enable stand still mode (robot is not moving but waiting in place),
specify a scorefile on the command line called <directory>/stand_still
- To enable pattern roll mode (robot is changing which move to look first)
specify a scorefile on the command line called <directory>/pattern_roll
 1.16 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.15 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.14 18-Feb-1998  jtc Simply include -lcurses instead of -lcurses -ltermcap
 1.13 05-Feb-1998  christos Use -ltermcap instead of -ltermlib
 1.12 18-Dec-1997  mikel don't clobber /var/games/robots_roll on install; from
NAKAJIMA Yoshihiro in PR bin/4657.
 1.11 29-Nov-1997  veego We need a FILESMODE=660 for dm which is now setgid games.
 1.10 20-Nov-1997  mrg install games that need it setgid.
 1.9 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.8 12-Oct-1997  lukem branches: 1.8.2;
WARNSify
 1.7 24-Mar-1997  christos - Makefile cleanups
 1.6 18-Oct-1996  thorpej Use ${INSTALL}.
 1.5 22-Apr-1995  cgd 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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.2.3 29-Nov-1997  mellon Pull rev 1.11 up from trunk (veego)
 1.8.2.2 20-Nov-1997  mrg pull up from trunk:
- install games files with the correct permissions.
- install games that need it setgid.
 1.8.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.11 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.10 20-Jul-2009  dholland Whitespace.
 1.9 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.8 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.7 27-Aug-2004  christos branches: 1.7.24;
describe the algorithm better.
 1.6 27-Jan-2004  jsm Remove uses of __P.
 1.5 31-Jan-2002  christos Be more verbose about teleports, and fix a minor problem in autobot mode.
 1.4 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.3 16-May-1999  christos Fixi uninit vars warnings.
 1.2 16-May-1999  christos Add missing prototypes
 1.1 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.7.24.1 18-May-2008  yamt sync with head.
 1.10 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.9 20-Jul-2009  dholland Whitespace.
 1.8 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.7 18-Sep-1999  jsm Fix -Wsign-compare warnings.
 1.6 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.5 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.8 20-Jul-2009  dholland Whitespace.
 1.7 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.6 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.5 12-Oct-1997  lukem WARNSify
 1.4 28-Apr-1995  mycroft Use POSIX tty semantics.
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13 05-Jul-2024  andvar fix various typos in comments and log messages, mainly s/hight/high/
s/hight/height/ and removing double m in time(ing).
 1.12 20-Jul-2009  dholland branches: 1.12.58;
Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.11 20-Jul-2009  dholland A bit more whitespace.
 1.10 20-Jul-2009  dholland Whitespace.
 1.9 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.8 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.7 31-Jan-2002  christos Be more verbose about teleports, and fix a minor problem in autobot mode.
 1.6 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.5 12-Oct-1997  lukem WARNSify
 1.4 23-May-1997  jtc Remove calls to flushok(). That function doesn't really do anything in
our curses implementation, and it doesn't even exist in others...
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.58.1 02-Aug-2025  perseant Sync with HEAD
 1.34 27-Jun-2022  christos Enable FANCY mode for debugging purposes:
- To enable stand still mode (robot is not moving but waiting in place),
specify a scorefile on the command line called <directory>/stand_still
- To enable pattern roll mode (robot is changing which move to look first)
specify a scorefile on the command line called <directory>/pattern_roll
 1.33 26-Jul-2020  nia robots: Use arc4random_uniform for better uniform distribution
 1.32 12-Aug-2009  dholland sprinkle static
 1.31 05-Aug-2009  christos don't use char values for functions that can return -1; chars are not always
signed.
 1.30 05-Aug-2009  dholland Use getopt instead of hand-rolled options code. Document all the arguments
and options. Don't allow the previously undocumented method to change the
maximum number of scores kept per user to be used on the system-wide high
score file. Sort options list in the man page. Bump its date.
 1.29 20-Jul-2009  dholland Use random() instead of rand(), and seed with time instead of pid.
 1.28 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.27 20-Jul-2009  dholland A bit more whitespace.
 1.26 20-Jul-2009  dholland Whitespace.
 1.25 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.24 08-Aug-2008  drochner if initscr() fails, exit with a message rather than crash in the
next curses call
 1.23 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.22 15-Dec-2007  perry branches: 1.22.6;
convert __attribute__s to applicable cdefs.h macros
 1.21 05-Nov-2004  dsl branches: 1.21.16;
Add (unsigned char) cast to ctype functions
 1.20 27-Jan-2004  jsm Remove uses of __P.
 1.19 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.18 06-Dec-2001  blymn Change deprecated curses function to new equivalent.
 1.17 05-Feb-2001  christos fix nested externs
 1.16 08-May-2000  mycroft Use setgid(), not setregid().
 1.15 19-Jan-2000  jsm Ensure correct prompt asking about another game is given at the end of
each game.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
 1.14 19-Jan-2000  jsm Typo fix in unknown option message (from Malcolm Parsons
<malcolm@bits.bris.ac.uk>).
 1.13 19-Jan-2000  jsm Remove definition of __cputchar.
 1.12 04-Oct-1999  lukem update after change to return value of tputs() third argument
 1.11 12-Sep-1999  jsm branches: 1.11.2;
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.10 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.9 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.8 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.7 12-Oct-1997  lukem deprecate bzero, rindex, etc. use symbolic constants in open()
 1.6 12-Oct-1997  lukem WARNSify
 1.5 22-Apr-1995  cgd clean up import
 1.4 10-Aug-1993  mycroft Really fix exit code.
 1.3 10-Aug-1993  mycroft Rewrite grody exit code and eliminate use of _putchar().
 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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.21.16.1 09-Jan-2008  matt sync with HEAD
 1.22.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.9 20-Jul-2009  dholland Whitespace.
 1.8 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.7 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.6 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.5 12-Oct-1997  lukem deprecate bzero, rindex, etc. use symbolic constants in open()
 1.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16 12-Aug-2009  dholland sprinkle static
 1.15 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.14 20-Jul-2009  dholland Whitespace.
 1.13 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.12 27-Aug-2004  christos - sleep a little in autobot mode so that we can see what is happening.
- use refresh() instead of wrefresh()
 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 31-Jan-2002  christos Be more verbose about teleports, and fix a minor problem in autobot mode.
 1.9 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.8 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.7 24-Jul-1998  hubertf Fix for compiling with -DFANCY, as per PR 5832 by Joseph Myers <jsm28@cam.ac.uk>
 1.6 12-Oct-1997  lukem WARNSify
 1.5 23-May-1997  jtc Remove calls to flushok(). That function doesn't really do anything in
our curses implementation, and it doesn't even exist in others...
 1.4 22-Apr-1995  cgd clean up import
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 23-Apr-1993  mycroft Make CTRL() ANSI-compliant.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.9 20-Jul-2009  dholland Whitespace.
 1.8 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.7 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.6 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.5 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 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 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.8 20-Jul-2009  dholland Whitespace.
 1.7 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.6 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.5 16-Jan-2001  cgd comment or delete text after CPP directives.
 1.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.8 20-Jul-2009  dholland Whitespace.
 1.7 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.6 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.5 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.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11 26-Jul-2020  nia robots: Use arc4random_uniform for better uniform distribution
 1.10 12-Aug-2009  dholland sprinkle static
 1.9 20-Jul-2009  dholland Use random() instead of rand(), and seed with time instead of pid.
 1.8 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.7 20-Jul-2009  dholland Whitespace.
 1.6 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.5 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.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15 05-Aug-2009  dholland Use getopt instead of hand-rolled options code. Document all the arguments
and options. Don't allow the previously undocumented method to change the
maximum number of scores kept per user to be used on the system-wide high
score file. Sort options list in the man page. Bump its date.
 1.14 09-Apr-2009  joerg \@ is not a valid escape sequence.
 1.13 15-Sep-2005  wiz branches: 1.13.28;
Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.
 1.12 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.11 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.10 26-Sep-2002  wiz New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
 1.9 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.8 02-Apr-2001  wiz Whitespace and/or punctuation fixes.
 1.7 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.6 12-Oct-1997  lukem WARNSify
 1.5 08-Mar-1997  mouse alternate -> alternative, per PR 2643
 1.4 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.22 12-Aug-2009  dholland sprinkle static
 1.21 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.20 20-Jul-2009  dholland Whitespace.
 1.19 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.18 27-Jan-2004  jsm Remove uses of __P.
 1.17 27-Jan-2004  jsm Include <sys/endian.h>.
 1.16 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.15 31-Jan-2002  christos Be more verbose about teleports, and fix a minor problem in autobot mode.
 1.14 30-Sep-1999  jsm Fix uses of namespaces reserved by ISO C or POSIX.1.
 1.13 18-Sep-1999  jsm branches: 1.13.2;
Fix -Wsign-compare warnings.
 1.12 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.11 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.10 16-May-1999  christos Add missing prototypes
 1.9 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.8 13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.7 12-Oct-1997  lukem deprecate bzero, rindex, etc. use symbolic constants in open()
 1.6 12-Oct-1997  lukem WARNSify
 1.5 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.4 22-Apr-1995  cgd clean up import
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 23-Apr-1993  mycroft Make CTRL() ANSI-compliant.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.24 13-Apr-2021  mrg properly terminate after using strncpy().
 1.23 12-Aug-2009  dholland sprinkle static
 1.22 03-Aug-2009  dholland don't ignore errors from read(); found by lint
 1.21 20-Jul-2009  dholland Assorted minor cleanups, no functional change:
- u_int* -> uint*
- don't make private typedefs of system structures
- use curses TRUE and FALSE only with curses booleans, otherwise
true and false;
- includes cleanup
- group globals in extern.c by functionality

Object file diffs inspected.
 1.20 20-Jul-2009  dholland Whitespace.
 1.19 20-Jul-2009  dholland ANSIfy. Use __dead. Object diffs checked.
 1.18 17-Mar-2006  abs If getpwuid() returns null, its not usually a good idea to dereference
that to try to assign a default value. Just copy the default value into
the final destination.
Addresses Coverty CID 925
 1.17 27-Jan-2004  jsm Remove uses of __P.
 1.16 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.15 27-Apr-2000  thorpej Cast pointer diffs to long for printing with %ld.
 1.14 27-Apr-2000  jdc Fix arguments to *printw().
 1.13 09-Apr-2000  mycroft Don't insert leading 0s in the score display. (HI CHRISTOS!)
 1.12 20-Jan-2000  jsm Report scores as auto-bot or not correctly.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
 1.11 18-Sep-1999  jsm Fix -Wsign-compare warnings.
 1.10 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.9 08-Sep-1999  jsm Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
 1.8 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.7 16-May-1999  christos Add missing prototypes
 1.6 15-May-1999  christos Add -A for automatic playing mode.
Make the score file MI
 1.5 12-Oct-1997  lukem deprecate bzero, rindex, etc. use symbolic constants in open()
 1.4 12-Oct-1997  lukem WARNSify
 1.3 22-Apr-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 22-Apr-1995  cgd src/games/robots from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed