Home | History | Annotate | only in /src/games/trek
History log of /src/games/trek
RevisionDateAuthorComments
 1.16 10-Jun-2018  christos use SUBDIR.roff suggested by uwe@
 1.15 05-Jul-2014  dholland branches: 1.15.22;
Rework /usr/share/doc.

Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
- explicit use of soelim
- refer
- tbl
- pic
- eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
 1.14 16-Aug-2011  christos branches: 1.14.8; 1.14.18;
document non-literal string formats
 1.13 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.12 28-Jan-2008  dholland Make the default WARNS for games 4. The only game that needs to set WARNS
to anything else now is rogue, so clear WARNS from the other makefiles.
 1.11 28-Jan-2008  dholland Build with WARNS=4.
 1.10 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.9 12-Oct-1997  lukem enable WARNS?=1 by default, & temporarily disable for the few unclean programs
 1.8 11-Oct-1997  mycroft Use bsd.subdir.mk as appropriate.
 1.7 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.6 22-Dec-1994  cgd specify man pages the new way.
 1.5 24-May-1994  jtc Converted from sgtty to termios api, no longer needs libcompat.
 1.4 23-May-1994  cgd need -lcompat
 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/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.18.1 10-Aug-2014  tls Rebase.
 1.14.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.22.1 25-Jun-2018  pgoyette Sync with HEAD
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.9 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.8 24-May-2009  dholland Don't use literal ^G's in string constants. Use \a.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3 13-Sep-1998  hubertf remove unused files (PR#6083 by Joseph Myers <jsm28@cam.ac.uk>)
 1.2 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12 12-Aug-2009  dholland sprinkle static
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.9 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.8 24-May-2009  dholland KNF. No change to .o file.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.6 27-Jan-2004  jsm Remove uses of __P.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek 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 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.14 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.13 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.12 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.11 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.10 27-Jan-2004  jsm branches: 1.10.22;
Remove uses of __P.
 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 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 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-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.22.1 09-Jan-2008  matt sync with HEAD
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 20-Jul-2002  grant sweep of errx/warnx, remove unnecessary trailing \n
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11 24-May-2022  andvar fix various typos in comments, docs and log messages.
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.8 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.7 07-Aug-2003  agc branches: 1.7.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.5 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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.22.1 09-Jan-2008  matt sync with HEAD
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.15 12-Aug-2009  dholland sprinkle static
 1.14 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.13 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.12 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.11 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.10 19-Mar-2006  christos branches: 1.10.10;
Coverity CID 1197: Don't pass -1 to close.
 1.9 27-Jan-2004  jsm Remove uses of __P.
 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 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 11-Sep-1998  hubertf use symbolic constant for open(), PR#5867
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.10.1 09-Jan-2008  matt sync with HEAD
 1.8 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.8 28-Jan-2008  dholland Build with WARNS=4.
 1.7 07-Aug-2003  agc branches: 1.7.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 12-Jun-2001  wiz receive, not recieve
 1.5 13-Oct-1997  cjs Include string.h for memcpy().
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.22.1 23-Mar-2008  matt sync with HEAD
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 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 05-Feb-2001  christos fix redundant decls and nested externs
 1.6 17-Sep-1999  jsm Use `extern' for header variable declarations in trek(6).
 1.5 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.18 12-Aug-2009  dholland sprinkle static
 1.17 25-May-2009  dholland sprintf -> snprintf.
 1.16 25-May-2009  dholland "abbreviation" has two Bs.
 1.15 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.14 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.13 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 18-Oct-2002  itojun avoid buffer overrun. fix from openbsd.
reported by Niels Heinen <niels.heinen@ubizen.com>
 1.9 26-Feb-2002  wiz branches: 1.9.2;
Correct spelling of "delimiter", and remove from ignored-errors lists.
 1.8 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.7 21-Jul-1999  hubertf branches: 1.7.8;
const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.6 13-Oct-1997  cjs Since we've got an int to store the value, why store it in a function
pointer and cast it?
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.8.1 18-Oct-2002  itojun games/trek/getpar.c 1.10

Avoid buffer overrun.

(itojun)
 1.9.2.1 21-Oct-2002  lukem Pull up revision 1.10 (requested by itojun in ticket #927):
avoid buffer overrun. fix from openbsd.
reported by Niels Heinen <niels.heinen@ubizen.com>
 1.12 25-May-2009  dholland "abbreviation" has two Bs.
 1.11 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.10 15-Feb-2005  jsm Avoid arrays of incomplete types (required to build with GCC 4).

Reviewed by <hubertf>.
 1.9 27-Jan-2004  jsm Remove uses of __P.
 1.8 17-Nov-2003  wiz Various typo fixes from Jonathon Gray via jmc@openbsd.
 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 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 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13 12-Aug-2009  dholland sprinkle static
 1.12 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.11 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.10 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.9 31-Mar-2009  christos Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
 1.8 15-Dec-2007  perry branches: 1.8.10; 1.8.12;
convert __attribute__s to applicable cdefs.h macros
 1.7 07-Aug-2003  agc branches: 1.7.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 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.5 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.22.1 09-Jan-2008  matt sync with HEAD
 1.8.12.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.8.10.1 01-Apr-2009  snj Pull up following revision(s) (requested by christos in ticket #637):
games/trek/help.c: revision 1.9
games/trek/kill.c: revision 1.8
games/trek/schedule.c: revision 1.7
games/trek/setup.c: revision 1.10
games/trek/trek.h: revision 1.12
Avoid hardcoded "too large" constant that caused FPE on the vax.
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.8 31-Mar-2009  christos Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
 1.7 07-Aug-2003  agc branches: 1.7.38; 1.7.40;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.40.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.7.38.1 01-Apr-2009  snj Pull up following revision(s) (requested by christos in ticket #637):
games/trek/help.c: revision 1.9
games/trek/kill.c: revision 1.8
games/trek/schedule.c: revision 1.7
games/trek/setup.c: revision 1.10
games/trek/trek.h: revision 1.12
Avoid hardcoded "too large" constant that caused FPE on the vax.
 1.9 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 12-Aug-2009  dholland sprinkle static
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 05-Feb-2001  christos fix redundant decls and nested externs
 1.5 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.23 29-Aug-2011  joerg Use __dead
 1.22 25-May-2009  dholland Use random() instead of rand(), so we get something like random
numbers out.

This changes the "tournament codes"; that is, the same code will give
you a different game now from what it used to. (This is because the
codes are basically random seeds.) I really really doubt anyone cares
about this, especially since the tournament feature appears to be
undocumented.
 1.21 25-May-2009  dholland Remove obviously botched test for "fast mode" based on terminal speed.
Default to "fast mode" as ~nobody has a 300 baud terminal any more.
("Fast mode" apparently controls whether short-range scans are printed
by default at certain times.)
 1.20 25-May-2009  dholland Use getopt to handle the remaining (all currently undocumented) options.
 1.19 25-May-2009  dholland Remove last traces of undocumented -p option (apparently related to
process priority) and documented -a option, neither of which have
done anything since CSRG days.
 1.18 25-May-2009  dholland Don't give special privileges to uid 13107.
 1.17 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.16 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.15 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.14 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.13 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.12 27-Jan-2004  jsm branches: 1.12.32;
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 22-Jul-2001  wiz seperate -> separate
 1.9 08-May-2000  mycroft Use setgid(), not setregid().
 1.8 18-Sep-1999  jsm Fix -Wsign-compare warnings.
 1.7 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.6 13-Oct-1997  cjs time_t != long, again. *Sigh*.
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.3 24-May-1994  jtc Converted from sgtty to termios api, no longer needs libcompat.
 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/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.32.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.11 03-Jul-2011  mrg use DBL_MIN from <float.h> instead of a hard coded small value (that
becomes zero for vax fp.)
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 13-Oct-1997  cjs Include string.h.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15 12-Aug-2009  dholland sprinkle static
 1.14 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.13 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.12 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.11 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.10 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.9 07-Aug-2003  agc branches: 1.9.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.8 10-Jul-2000  itojun printf() pedant - do not pass variable alone, use %s.
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
 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-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.22.1 09-Jan-2008  matt sync with HEAD
 1.12 12-Aug-2009  dholland sprinkle static
 1.11 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.10 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.9 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.8 07-Aug-2003  agc branches: 1.8.22;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.7 05-Feb-2001  christos fix redundant decls and nested externs
 1.6 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.5 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.22.1 09-Jan-2008  matt sync with HEAD
 1.8 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7 25-May-2009  dholland Use random() instead of rand(), so we get something like random
numbers out.

This changes the "tournament codes"; that is, the same code will give
you a different game now from what it used to. (This is because the
codes are basically random seeds.) I really really doubt anyone cares
about this, especially since the tournament feature appears to be
undocumented.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.12 22-May-2022  andvar fix various small typos, mainly in comments.
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 31-Mar-2009  christos Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
 1.6 19-Mar-2006  christos branches: 1.6.26; 1.6.28;
Coverity CID 1467: Elide static buffer overflow.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.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.6.26.1 01-Apr-2009  snj Pull up following revision(s) (requested by christos in ticket #637):
games/trek/help.c: revision 1.9
games/trek/kill.c: revision 1.8
games/trek/schedule.c: revision 1.7
games/trek/setup.c: revision 1.10
games/trek/trek.h: revision 1.12
Avoid hardcoded "too large" constant that caused FPE on the vax.
 1.11 25-May-2009  dholland "abbreviation" has two Bs.
 1.10 25-May-2009  dholland Fix score printing so columns line up.
 1.9 24-May-2009  dholland Sprinkle some blank lines for readability.
 1.8 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13 25-May-2009  dholland Use random() instead of rand(), so we get something like random
numbers out.

This changes the "tournament codes"; that is, the same code will give
you a different game now from what it used to. (This is because the
codes are basically random seeds.) I really really doubt anyone cares
about this, especially since the tournament feature appears to be
undocumented.
 1.12 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.11 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.10 31-Mar-2009  christos Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
 1.9 14-Nov-2008  christos branches: 1.9.2;
PR/39923: Valery Ushakov: trek(6) can spin, consuming 100% CPU on powerpc
On systems where char is unsigned the number of black holes can end up being
very large (instead of negative).
 1.8 07-Aug-2003  agc branches: 1.8.38;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.7 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.6 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.38.1 01-Apr-2009  snj Pull up following revision(s) (requested by christos in ticket #637):
games/trek/help.c: revision 1.9
games/trek/kill.c: revision 1.8
games/trek/schedule.c: revision 1.7
games/trek/setup.c: revision 1.10
games/trek/trek.h: revision 1.12
Avoid hardcoded "too large" constant that caused FPE on the vax.
 1.9.2.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.9 24-May-2022  andvar fix various typos in comments, docs and log messages.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.13 12-Aug-2009  dholland sprinkle static
 1.12 25-May-2009  dholland sprintf -> snprintf.
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.6 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 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.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 08-Feb-2018  dholland Typos.
 1.9 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.8 24-May-2009  dholland Don't use literal ^G's in string constants. Use \a.
 1.7 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.6 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11 12-Aug-2009  dholland sprinkle static
 1.10 25-May-2009  dholland "abbreviation" has two Bs.
 1.9 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.8 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 25-May-2009  dholland Null for pointers, not 0.
 1.8 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.7 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.13 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.12 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.11 24-May-2009  dholland whitespace
 1.10 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.9 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.8 27-Jan-2004  jsm branches: 1.8.22;
Remove uses of __P.
 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 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.5 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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.22.1 09-Jan-2008  matt sync with HEAD
 1.14 28-Jun-2022  rillig fix references in manual pages to the reference documentation
 1.13 25-May-2009  dholland Remove description of -a option and optional log file name, since
neither has done anything in a long long time. Add previously
undocumented -s/-f (slow vs. fast) options, although I question the
utility thereof and suspect they should just be removed.

Bump date (first time since 1993)
 1.12 15-Sep-2005  wiz Use standard AUTHORS section header. From YOMURA Masanori in private mail
Sort sections if necessary. Use more/better markup.
 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 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.9 26-Sep-2002  wiz New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
 1.8 02-Apr-2001  wiz Whitespace and/or punctuation fixes.
 1.7 02-Mar-2000  enami Fix .Nm usage.
 1.6 01-Mar-2000  hubertf Fix wrong reference to trek documentation
Submitted in PR bin/9514 by Thilo.Manske@HEH.Uni-Oldenburg.DE
 1.5 06-Apr-1999  cgd change:
.Sh "SEE ALSO"
to:
.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
 1.4 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.3 05-Aug-1993  jtc Converted 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/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.19 10-Feb-2024  andvar s/indicies/indices/ in comments.
 1.18 12-Aug-2009  dholland sprinkle static
 1.17 25-May-2009  dholland __attribute__((__noreturn__)) -> __dead
 1.16 24-May-2009  dholland Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
 1.15 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.14 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.13 24-May-2009  dholland KNF: fix formatting of preprocessor directives
 1.12 31-Mar-2009  christos Avoid hardcoded "too large" constant that caused FPE on the vax.
XXX: Should pullup to 5.0
 1.11 15-Feb-2005  jsm branches: 1.11.32; 1.11.34;
Avoid arrays of incomplete types (required to build with GCC 4).

Reviewed by <hubertf>.
 1.10 27-Jan-2004  jsm Remove uses of __P.
 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 17-Sep-1999  jsm Use `extern' for header variable declarations in trek(6).
 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-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.5 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.4 29-Mar-1997  thorpej Make these compile on the PowerPC (an unsigned char system).
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.34.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.11.32.1 01-Apr-2009  snj Pull up following revision(s) (requested by christos in ticket #637):
games/trek/help.c: revision 1.9
games/trek/kill.c: revision 1.8
games/trek/schedule.c: revision 1.7
games/trek/setup.c: revision 1.10
games/trek/trek.h: revision 1.12
Avoid hardcoded "too large" constant that caused FPE on the vax.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 12-Aug-2009  dholland sprinkle static
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 1.7 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.6 07-Aug-2003  agc branches: 1.6.22;
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 `__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.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.22.1 09-Jan-2008  matt sync with HEAD
 1.11 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.10 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.9 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 25-Apr-2001  simonb Spell occurred correctly.
 1.6 11-Sep-1998  hubertf fix prototype, PR#5867
 1.5 13-Oct-1997  cjs Include string.h.
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12 25-May-2009  dholland "abbreviation" has two Bs.
 1.11 24-May-2009  dholland Remove unnecessary initialization that silenced a compiler warning in 1997.
 1.10 24-May-2009  dholland Split up lines > 80 chars. Object files unchanged.
 1.9 24-May-2009  dholland KNF: brace and comment placement. Object files identical.
 1.8 24-May-2009  dholland ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
 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 05-Feb-2001  christos fix redundant decls and nested externs
 1.5 21-Jul-1999  hubertf const poisoning

Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
 1.4 12-Oct-1997  christos Warnsify and remove local implementations of libc functions.
 1.3 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, 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 22-Apr-1995  cgd src/games/trek from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3 22-Jul-2001  wiz seperate -> separate
 1.2 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5 16-Apr-2022  andvar fix various typos in comments and log messages.
 1.4 08-Dec-2021  snj fix typo, pointed out by Andras Farkas
 1.3 12-Jun-2001  wiz receive, not recieve
 1.2 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6 05-Jul-2014  dholland Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
 1.5 05-Jul-2014  dholland Rework /usr/share/doc.

Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
- explicit use of soelim
- refer
- tbl
- pic
- eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
 1.4 10-Jul-2003  lukem branches: 1.4.60; 1.4.72;
Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.3 05-Jan-2003  pooka Add ${MACROS} to ${ROFF} usage to make output readable

from jbernard@mines.edu in misc/19685
 1.2 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.1 22-Apr-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 22-Apr-1995  cgd src/games/trek from Lite
 1.4.72.1 10-Aug-2014  tls Rebase.
 1.4.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 22-Apr-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 22-Apr-1995  cgd src/games/trek from Lite
 1.5 08-Dec-2021  snj fix typo, pointed out by Andras Farkas
 1.4 30-Sep-2014  christos adhere to stricter groff checking:
- don't specify distance separation between this and the next column for
the last column, since there's no next column.
- don't pop environment you did not push
 1.3 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.2 22-Apr-1995  cgd clean up import, NetBSD RCS IDs, etc.
 1.1 22-Apr-1995  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 22-Apr-1995  cgd src/games/trek from Lite

RSS XML Feed