Home | History | Annotate | Download | only in monop
History log of /src/games/monop/monop.c
RevisionDateAuthorComments
 1.27  19-Jun-2012  dholland WARNS=5
 1.26  01-Dec-2011  ahoka handle EOF in input
 1.25  12-Aug-2009  dholland branches: 1.25.6;
sprinkle static
 1.24  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.23  24-Feb-2008  dholland branches: 1.23.4;
Fix some more lint. (There's plenty to go around.)

If we try to load a game and it bombs, keep prompting for another one,
because if we try to continue with a half-loaded game we'll probably
end up in trouble.
 1.22  24-Feb-2008  christos fix some lint
 1.21  24-Feb-2008  dholland Source files should be named *.c or *.h, not random other things.

Fold monop.ext (which was extern data decls) into monop.h and deck.h.
Fold monop.def (which had definitions for the extern data) into monop.c.
Fold brd.dat/mon.dat/prop.dat (which were array initializers for some of
the data) into monop.c.

Rearrange includes accordingly. No functional change.
 1.20  24-Feb-2008  dholland Remove last traces of old save/load code. We no longer need a private
copy of malloc.
 1.19  23-Feb-2008  dholland More fixes from OpenBSD:
- initialize in the proper order
- don't allow 1-player games
- make the check for players named "done" work properly
- a couple other minor things
 1.18  20-Feb-2008  dholland branches: 1.18.2;
Use random() rather than rand(). Suggested by diffing against OpenBSD.
 1.17  19-Feb-2008  dholland KNF/whitespace nits. No functional changes.
 1.16  15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.15  27-Jan-2004  jsm branches: 1.15.22;
Remove uses of __P.
 1.14  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.13  21-Apr-2003  christos PR/8247: Simon Burge: monop(6) save/restore doesn't work.
With the advent of elf and mmaping malloc, assumptions that the code made
before about location and contents of the data segment broke. We supplied
an sbrk() only malloc, and recorded the break point at the beginning of
the program, so now save and restore works, in the traditional monop style.
 1.12  18-Sep-2001  wiz Give initiali[sz]e all the "i"s it deserves.
 1.11  08-May-2000  mycroft Use setgid(), not setregid().
 1.10  09-Jan-2000  jsm Use err(1, NULL) and warn(NULL) for `out of memory' error messages.
 1.9  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.8  09-Sep-1999  jsm Check for failure of malloc() and calloc() at various places in the games.
 1.7  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.6  21-Aug-1999  simonb Convert to something resembling KNF.
 1.5  11-Sep-1998  hubertf use symbolic constants for signals & open(2), as per PR#5867
 1.4  12-Oct-1997  christos WARNSify
 1.3  23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 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.22.2  23-Mar-2008  matt sync with HEAD
 1.15.22.1  09-Jan-2008  matt sync with HEAD
 1.18.2.1  24-Mar-2008  keiichi sync with head.
 1.23.4.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.25.6.2  30-Oct-2012  yamt sync with head
 1.25.6.1  17-Apr-2012  yamt sync with head

RSS XML Feed