Home | History | Annotate | Download | only in robots
History log of /src/games/robots/score.c
RevisionDateAuthorComments
 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