Home | History | Annotate | only in /src/games/hunt
History log of /src/games/hunt
RevisionDateAuthorComments
 1.1 04-Oct-1997  mrg branches: 1.1.1;
build hunt.
 1.1.1.1 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.12 29-Mar-2014  dholland handle compiled-in pathnames the customary way
 1.11 04-Jul-2009  dholland branches: 1.11.6; 1.11.12;
Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.10 04-Jul-2009  dholland Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)
 1.9 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.8 04-Jul-2009  dholland Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.
 1.7 11-Jun-2003  wiz Sync with v20030416 of Makefile.
 1.6 20-Sep-2002  mycroft Minor rearrangement.
 1.5 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.4 13-Apr-2000  simonb Curses works - define USE_CURSES for BSD44 and don't try to do our own
thing (using curses internal data structures anyway!).
 1.3 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.2 10-Oct-1997  lukem branches: 1.2.2;
Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg build hunt.
 1.2.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.11.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.1 04-Jul-2009  dholland Notes on the protocol used by hunt, from OpenBSD.
 1.11 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.10 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.9 30-Mar-2014  dholland branches: 1.9.26;
split off a bunch of the nastier network code into its own file
 1.8 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.7 06-Feb-2010  he branches: 1.7.6; 1.7.12;
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.6 03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.5 18-Feb-1998  jtc Simply include -lcurses instead of -lcurses -ltermcap
 1.4 19-Nov-1997  mrg move hunt under dm(6)
 1.3 05-Nov-1997  ragge Must have the correct library link order to be able to link
the binaries static.
 1.2 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.1 04-Oct-1997  mrg branches: 1.1.2;
build hunt.
 1.1.2.3 27-Nov-1997  veego Sync with the trunk: revision 1.4: move hunt under dm(6)
 1.1.2.2 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.1.2.1 06-Nov-1997  mellon Pull rev 1.3 up from trunk (ragge)
 1.7.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.26.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11 30-Mar-2014  dholland Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.10 30-Mar-2014  dholland Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
 1.9 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.8 04-Jul-2009  dholland branches: 1.8.6; 1.8.12;
Whitespace.
 1.7 04-Jul-2009  dholland ANSIfy function declarations.
 1.6 04-Jul-2009  dholland Remove bogus casts. Two object file diffs inspected and found to be harmless.
 1.5 11-Jun-2003  wiz Merge with v20030416.
 1.4 11-Jun-2003  martin Make this work on 64 bit big endian platforms.
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14 04-Jul-2009  dholland Various minor fixes, mostly from OpenBSD.
 1.13 11-Mar-2009  joerg Fix markup
 1.12 15-Sep-2005  wiz branches: 1.12.28;
Drop trailing whitespace.
 1.11 11-Jun-2003  wiz Merge with v20030416.
 1.10 14-May-2003  wiz setup -> set up.
 1.9 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.8 23-Feb-2003  wiz .Nm still needs "".
 1.7 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.6 26-Sep-2002  wiz New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
 1.5 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.4 04-Apr-2001  wiz mdoc'ify.
 1.3 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.2 04-Oct-1997  mrg note that huntd lives in /usr/games.
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.12.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.58 30-Mar-2014  skrll Remove unused.
 1.57 30-Mar-2014  dholland curses has printw, use it.
 1.56 30-Mar-2014  dholland don't use the preprocessor to rename curses functions, just call them
 1.55 30-Mar-2014  dholland Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.54 30-Mar-2014  dholland Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
 1.53 30-Mar-2014  dholland I wish the socket API didn't require casts. Easy to mess them up.
 1.52 30-Mar-2014  dholland fix obvious mistake (seems to have been there since 4.4)
 1.51 30-Mar-2014  dholland Clean up the handling of the list of hunt daemons.
 1.50 30-Mar-2014  dholland use fewer globals
 1.49 30-Mar-2014  dholland unexpose some globals that server.c previously required
 1.48 30-Mar-2014  dholland split off a bunch of the nastier network code into its own file
 1.47 29-Mar-2014  dholland be consistent about whether functions are static
 1.46 29-Mar-2014  dholland handle compiled-in pathnames the customary way
 1.45 29-Mar-2014  dholland make some globals static
 1.44 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.43 29-Mar-2014  dholland Remove unsafe and unnecessary pointer casts.
 1.42 29-Mar-2014  dholland catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.
 1.41 01-Sep-2011  plunky branches: 1.41.2; 1.41.8;
reinstate NULL cast by request, where the NULL was being passed as a vararg
 1.40 31-Aug-2011  plunky NULL does not need a cast
 1.39 23-May-2011  joerg Don't use variables as format string.
 1.38 05-Jan-2011  dholland avoid unnecessary cast (hi wiz)
 1.37 05-Jan-2011  wiz Fix realloc error. Found by cppcheck.
 1.36 12-Aug-2009  dholland sprinkle static and prune some dead code
 1.35 04-Jul-2009  dholland Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.34 04-Jul-2009  dholland Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)
 1.33 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.32 04-Jul-2009  dholland Whitespace.
 1.31 04-Jul-2009  dholland ANSIfy function declarations.
 1.30 04-Jul-2009  dholland Remove two more bogus casts. These *do* create object diffs on amd64,
for no clear reason, but it looks like the diffs are harmless.
 1.29 04-Jul-2009  dholland Remove bogus casts. Two object file diffs inspected and found to be harmless.
 1.28 28-Jun-2009  dholland sprintf -> snprintf
 1.27 08-Aug-2008  drochner if initscr() fails, exit with a message rather than crash in the
next curses call
 1.26 28-Jan-2008  dholland branches: 1.26.6;
clean for WARNS=4
 1.25 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.24 09-May-2006  mrg branches: 1.24.10;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.23 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.22 08-Feb-2004  jsm Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
 1.21 27-Jan-2004  jsm Remove uses of __P.
 1.20 11-Jun-2003  wiz Make build.
 1.19 11-Jun-2003  wiz Merge with v20030416.
 1.18 03-May-2003  christos don't print error messages using warn, because we clear the screen immediately
afterwards and they vanish.
 1.17 01-Apr-2003  drochner Rewrite broken broadcast interface detection code using getifaddrs(3).
"hunt -q" works now.
 1.16 06-Dec-2002  thorpej Avoid strict alias warning.
 1.15 20-Sep-2002  mycroft Remove an unused declaration.
 1.14 20-Sep-2002  mycroft If we're searching for a huntd, probe local_address along with broadcast
addresses.
 1.13 20-Sep-2002  mycroft select() -> poll()
 1.12 05-Feb-2001  christos eliminate nested externs
 1.11 14-Apr-2000  simonb Don't declare 'extern opt*' getopt variables.
 1.10 02-Mar-2000  kleink Include <sys/param.h> for MAXHOSTNAMELEN.
 1.9 21-Jan-2000  mycroft Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
 1.8 13-Sep-1998  hubertf branches: 1.8.2;
mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.7 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.6 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.5 29-Mar-1998  mrg change static to static int
 1.4 20-Oct-1997  lukem FD_ZERO select mask before FD_SET-ing it
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.2.1 23-Jan-2000  he Pull up revision 1.9 (requested by mycroft):
Always do the errno indirection hack, so that non-threaded
libraries get the right errno value when linked with -lpthread.
This means "always include <errno.h> and never declare errno
yourself".
 1.24.10.2 23-Mar-2008  matt sync with HEAD
 1.24.10.1 09-Jan-2008  matt sync with HEAD
 1.26.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.41.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.41.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.9 30-Mar-2014  dholland branches: 1.9.4; 1.9.8;
Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.8 30-Mar-2014  dholland Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
 1.7 30-Mar-2014  dholland Clean up the handling of the list of hunt daemons.
 1.6 30-Mar-2014  dholland use fewer globals
 1.5 30-Mar-2014  dholland unexpose some globals that server.c previously required
 1.4 30-Mar-2014  dholland split off a bunch of the nastier network code into its own file
 1.3 29-Mar-2014  dholland group external functions by where they come from
 1.2 29-Mar-2014  dholland make some globals static
 1.1 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.9.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.8.1 30-Mar-2014  tls file hunt_private.h was added on branch tls-maxphys on 2014-08-20 00:00:23 +0000
 1.9.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.4.1 30-Mar-2014  yamt file hunt_private.h was added on branch yamt-pagecache on 2014-05-22 11:36:23 +0000
 1.18 30-Mar-2014  dholland Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
 1.17 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.16 29-Mar-2014  dholland catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.
 1.15 04-Jul-2009  dholland branches: 1.15.6; 1.15.12;
Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)
 1.14 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.13 04-Jul-2009  dholland Whitespace.
 1.12 04-Jul-2009  dholland ANSIfy function declarations.
 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 1443: Prevent static overrun.
 1.9 17-Mar-2006  abs add more "ifdef notdef" around unused sections - addresses Coverity CID 564
 1.8 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.7 08-Feb-2004  jsm Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
 1.6 27-Jan-2004  jsm Remove uses of __P.
 1.5 11-Jun-2003  wiz Merge with v20030416.
 1.4 05-Feb-2001  christos eliminate nested externs
 1.3 18-Apr-1999  simonb Don't frob the interals of a WINDOW*, use the mvinch() macro.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.10.10.1 09-Jan-2008  matt sync with HEAD
 1.15.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.25 30-Mar-2014  dholland Use the curses beep function instead of writing a beep to stdout.
 1.24 30-Mar-2014  dholland don't use the preprocessor to rename curses functions, just call them
 1.23 30-Mar-2014  dholland fix off-by-one
 1.22 30-Mar-2014  dholland Instead of #define STDIN 0, use STDIN_FILENO.
 1.21 30-Mar-2014  dholland Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.20 30-Mar-2014  dholland Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
 1.19 30-Mar-2014  dholland When indexing an array with a char, cast it to unsigned char, not int,
to not only silence the compiler warning but also get the correct
behavior.
 1.18 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.17 29-Mar-2014  dholland catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.
 1.16 27-Aug-2009  dholland branches: 1.16.6; 1.16.12;
u_int32_t -> uint32_t
 1.15 12-Aug-2009  dholland sprinkle static and prune some dead code
 1.14 04-Jul-2009  dholland Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.13 04-Jul-2009  dholland Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)
 1.12 04-Jul-2009  dholland Whitespace.
 1.11 04-Jul-2009  dholland ANSIfy function declarations.
 1.10 04-Jul-2009  dholland Remove bogus casts. Two object file diffs inspected and found to be harmless.
 1.9 28-Jan-2008  dholland clean for WARNS=4
 1.8 27-Jan-2004  jsm branches: 1.8.22;
Remove uses of __P.
 1.7 11-Jun-2003  wiz Merge with v20030416.
 1.6 26-Feb-2003  jdc Make this work on sparc64 (don't use long and assume sizeof(long) = 4).
Tested against a LE32 system (arm).
 1.5 20-Sep-2002  mycroft select() -> poll()
 1.4 20-Oct-1997  lukem FD_ZERO select mask before FD_SET-ing it
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.22.1 23-Mar-2008  matt sync with HEAD
 1.16.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9 29-Oct-2021  nia huntd(6): convert malloc(x * y) and realloc(x * y) to reallocarr
 1.8 30-Mar-2014  dholland branches: 1.8.4; 1.8.8;
I wish the socket API didn't require casts. Easy to mess them up.
 1.7 30-Mar-2014  dholland Tidy up list of broadcast addresses.
 1.6 30-Mar-2014  dholland Clean up the handling of the list of hunt daemons.
 1.5 30-Mar-2014  dholland more cleanup
 1.4 30-Mar-2014  dholland unexpose some globals that server.c previously required
 1.3 30-Mar-2014  dholland name reform, fewer file statics
 1.2 30-Mar-2014  dholland goto considered harmful
 1.1 30-Mar-2014  dholland split off a bunch of the nastier network code into its own file
 1.8.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.8.1 30-Mar-2014  tls file server.c was added on branch tls-maxphys on 2014-08-20 00:00:23 +0000
 1.8.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.4.1 30-Mar-2014  yamt file server.c was added on branch yamt-pagecache on 2014-05-22 11:36:23 +0000
 1.11 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.10 15-Apr-2021  mrg one port complains about string overflow here that i can't see.
 1.9 12-Apr-2021  mrg add some new uses of existing GCC_NO_* variables for warning issues.
remove an no longer relevant for gcc7 workaround (works fine in both
gcc9 and gcc 10.)
 1.8 29-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.7 04-Feb-2019  mrg apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
 1.6 29-Mar-2014  dholland branches: 1.6.26;
Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
 1.5 29-Mar-2014  dholland Flush unwanted file.
 1.4 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.3 29-Mar-2014  dholland remove stubbed-out function
 1.2 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.1 04-Oct-1997  mrg branches: 1.1.68; 1.1.74;
build hunt.
 1.1.74.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.68.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.26.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.26.1 10-Jun-2019  christos Sync with HEAD
 1.24 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.23 30-Mar-2014  dholland Use bool (not int) for a boolean return type.
 1.22 30-Mar-2014  dholland Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.21 30-Mar-2014  dholland Remove all the conditional compilation for INTERNET. Now you can run
this on either a local or internet socket (including via inetd on
either) and it will, or is supposed to, DTRT.

Does not really support ipv6 yet, but in a number of places will no
longer vomit or exhibit UB if it encounters an ipv6 address.
 1.20 30-Mar-2014  dholland Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
 1.19 29-Mar-2014  dholland fix non-INTERNET build
 1.18 29-Mar-2014  dholland Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
 1.17 29-Mar-2014  dholland don't declare own boolean type
 1.16 27-Aug-2009  dholland branches: 1.16.6; 1.16.12;
u_int32_t -> uint32_t
 1.15 12-Aug-2009  dholland sprinkle static and prune some dead code
 1.14 04-Jul-2009  dholland Whitespace.
 1.13 04-Jul-2009  dholland ANSIfy function declarations.
 1.12 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.11 28-Jun-2009  dholland sprintf -> snprintf
 1.10 28-Jun-2009  dholland Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
 1.9 28-Jan-2008  dholland branches: 1.9.10; 1.9.14;
clean for WARNS=4
 1.8 09-May-2006  mrg branches: 1.8.4; 1.8.10; 1.8.14;
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.7 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.6 11-Jun-2003  wiz Merge with v20030416.
 1.5 26-Feb-2003  jdc Make this work on sparc64 (don't use long and assume sizeof(long) = 4).
Tested against a LE32 system (arm).
 1.4 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.3 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.2 04-Oct-1997  mrg fix compiler warnings on the alpha.
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.14.1 28-Jun-2009  snj Pull up following revision(s) (requested by dholland in ticket #1330):
games/hunt/huntd/answer.c: revision 1.10
Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
 1.8.10.1 23-Mar-2008  matt sync with HEAD
 1.8.4.1 28-Jun-2009  snj Pull up following revision(s) (requested by dholland in ticket #1330):
games/hunt/huntd/answer.c: revision 1.10
Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
 1.9.14.1 28-Jun-2009  snj branches: 1.9.14.1.2;
Pull up following revision(s) (requested by dholland in ticket #834):
games/hunt/huntd/answer.c: revision 1.10
Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
 1.9.14.1.2.1 21-Apr-2010  matt sync to netbsd-5
 1.9.10.1 28-Jun-2009  snj Pull up following revision(s) (requested by dholland in ticket #834):
games/hunt/huntd/answer.c: revision 1.10
Fix possible remote DoS of a running hunt game, and prevent a possible
theoretical attack involving >= 1 billion ammo.
 1.16.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8 29-Mar-2014  dholland Remove empty header file.
 1.7 04-Jul-2009  dholland branches: 1.7.6; 1.7.12;
Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.6 04-Jul-2009  dholland Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.
 1.5 04-Jul-2009  dholland Whitespace.
 1.4 11-Jun-2003  wiz Merge with v20030416.
 1.3 20-Sep-2002  mycroft Minor rearrangement.
 1.2 09-Jan-1998  perry RCS Id Police.
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.7.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.7 29-Mar-2014  dholland Remove empty header file.
 1.6 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.5 04-Jul-2009  dholland branches: 1.5.6; 1.5.12;
Whitespace.
 1.4 04-Jul-2009  dholland ANSIfy function declarations.
 1.3 11-Jun-2003  wiz Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.5.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.11 29-Mar-2014  dholland Remove empty header file.
 1.10 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.9 04-Jul-2009  dholland branches: 1.9.6; 1.9.12;
Whitespace.
 1.8 04-Jul-2009  dholland ANSIfy function declarations.
 1.7 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.6 11-Jun-2003  wiz Merge with v20030416.
 1.5 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.4 12-Jun-2001  wiz receive, not recieve
 1.3 20-Oct-1997  lukem FD_ZERO select mask before FD_SET-ing it
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.9.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.9 29-Mar-2014  dholland don't declare own boolean type
 1.8 12-Aug-2009  dholland branches: 1.8.6; 1.8.12;
sprinkle static and prune some dead code
 1.7 04-Jul-2009  dholland Whitespace.
 1.6 04-Jul-2009  dholland ANSIfy function declarations.
 1.5 28-Jun-2009  dholland sprintf -> snprintf
 1.4 28-Jan-2008  dholland clean for WARNS=4
 1.3 11-Jun-2003  wiz branches: 1.3.22;
Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.3.22.1 23-Mar-2008  matt sync with HEAD
 1.8.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.36 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.35 30-Mar-2014  dholland Remove all the conditional compilation for INTERNET. Now you can run
this on either a local or internet socket (including via inetd on
either) and it will, or is supposed to, DTRT.

Does not really support ipv6 yet, but in a number of places will no
longer vomit or exhibit UB if it encounters an ipv6 address.
 1.34 30-Mar-2014  dholland Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
 1.33 29-Mar-2014  dholland fix non-INTERNET build
 1.32 29-Mar-2014  dholland Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
 1.31 29-Mar-2014  dholland handle compiled-in pathnames the customary way
 1.30 29-Mar-2014  dholland Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
 1.29 29-Mar-2014  dholland sprinkle static
 1.28 29-Mar-2014  dholland Move definitions to the file they're used in.
 1.27 29-Mar-2014  dholland remove stubbed-out function
 1.26 29-Mar-2014  dholland Use setproctitle() instead of handrolled version.
 1.25 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.24 29-Mar-2014  dholland don't declare own boolean type
 1.23 29-Mar-2014  dholland use random(), not a handrolled 16-bit generator
 1.22 19-Oct-2013  christos fix unused variable warnings
 1.21 31-Aug-2011  plunky branches: 1.21.2; 1.21.8;
NULL does not need a cast
 1.20 12-Aug-2009  dholland sprinkle static and prune some dead code
 1.19 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.18 04-Jul-2009  dholland Remove references to config #defines for the thoroughly obsolete
4.2BSD syslog API.
 1.17 04-Jul-2009  dholland Whitespace.
 1.16 04-Jul-2009  dholland ANSIfy function declarations.
 1.15 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.14 28-Jun-2009  dholland sprintf -> snprintf
 1.13 28-Jan-2008  dholland clean for WARNS=4
 1.12 07-Oct-2006  elad branches: 1.12.8;
PR/18906: roskens at elfin dot net: misc. select() to poll() updates.

Adapted to -current by myself, thanks for the patch!
 1.11 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.10 27-Jan-2004  jsm Remove uses of __P.
 1.9 11-Jun-2003  wiz Merge with v20030416.
 1.8 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.7 09-Jan-2001  lukem - openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR
- consistently use positive numbers for exit() and _exit()
- one warning was using printf() instead of syslog()
 1.6 14-Apr-2000  simonb Don't declare 'extern opt*' getopt variables.
 1.5 20-Oct-1997  lukem FD_ZERO select mask before FD_SET-ing it
 1.4 15-Oct-1997  mrg drop core in /var/tmp (from linux).
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.12.8.1 23-Mar-2008  matt sync with HEAD
 1.21.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.13 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.12 29-Mar-2014  dholland be consistent about whether functions are static
 1.11 29-Mar-2014  dholland don't declare own boolean type
 1.10 31-Aug-2011  plunky branches: 1.10.2; 1.10.8;
NULL does not need a cast
 1.9 04-Jul-2009  dholland Whitespace.
 1.8 04-Jul-2009  dholland ANSIfy function declarations.
 1.7 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.6 28-Jun-2009  dholland sprintf -> snprintf
 1.5 28-Jan-2008  dholland clean for WARNS=4
 1.4 27-Jan-2004  jsm branches: 1.4.22;
Remove uses of __P.
 1.3 11-Jun-2003  wiz Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.4.22.1 23-Mar-2008  matt sync with HEAD
 1.10.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.8 29-Mar-2014  dholland sprinkle static
 1.7 04-Jul-2009  dholland branches: 1.7.6; 1.7.12;
Whitespace.
 1.6 04-Jul-2009  dholland ANSIfy function declarations.
 1.5 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.4 27-Jan-2004  jsm Remove uses of __P.
 1.3 11-Jun-2003  wiz Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.7.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.10 30-Mar-2014  dholland Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
 1.9 29-Mar-2014  dholland Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
 1.8 29-Mar-2014  dholland sprinkle static
 1.7 29-Mar-2014  dholland don't declare own boolean type
 1.6 12-Aug-2009  dholland branches: 1.6.6; 1.6.12;
sprinkle static and prune some dead code
 1.5 04-Jul-2009  dholland Whitespace.
 1.4 11-Jun-2003  wiz Merge with v20030416.
 1.3 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.6.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.25 29-Mar-2014  dholland remove stubbed-out function
 1.24 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.23 29-Mar-2014  dholland Remove empty header file.
 1.22 29-Mar-2014  dholland Use setproctitle() instead of handrolled version.
 1.21 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.20 29-Mar-2014  dholland don't declare own boolean type
 1.19 29-Mar-2014  dholland typo in error message
 1.18 27-Aug-2009  dholland branches: 1.18.6; 1.18.12;
u_int32_t -> uint32_t
 1.17 04-Jul-2009  dholland Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.16 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.15 04-Jul-2009  dholland Whitespace.
 1.14 04-Jul-2009  dholland ANSIfy function declarations.
 1.13 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.12 28-Jun-2009  dholland sprintf -> snprintf
 1.11 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.10 08-Feb-2004  jsm branches: 1.10.22;
Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
 1.9 27-Jan-2004  jsm Remove uses of __P.
 1.8 11-Jun-2003  wiz Merge with v20030416.
 1.7 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.6 05-Feb-2001  christos remove redundant decls
 1.5 09-Jan-2001  lukem - openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR
- consistently use positive numbers for exit() and _exit()
- one warning was using printf() instead of syslog()
 1.4 11-Oct-1997  lukem use err/warn instead of perror
 1.3 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.2 04-Oct-1997  mrg fix compiler warnings on the alpha.
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.10.22.1 09-Jan-2008  matt sync with HEAD
 1.18.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.16 29-Mar-2014  dholland Remove empty header file.
 1.15 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.14 29-Mar-2014  dholland Use getaddrinfo() instead of gethostbyname().
 1.13 29-Mar-2014  dholland const
 1.12 29-Mar-2014  dholland simplify silly logic
 1.11 28-Mar-2014  apb If you are going to use memcpy instead of struct assignment, then at
least use sizeof(the correct variable). The use of memcmp to test
two pointers for equality, one line earlier, is also weird but may be
correct.
 1.10 04-Jul-2009  dholland branches: 1.10.6; 1.10.12;
Whitespace.
 1.9 04-Jul-2009  dholland ANSIfy function declarations.
 1.8 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.7 11-Jun-2003  wiz Merge with v20030416.
 1.6 05-Feb-2001  christos remove redundant decls
 1.5 09-Jan-2001  lukem - openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR
- consistently use positive numbers for exit() and _exit()
- one warning was using printf() instead of syslog()
 1.4 03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.3 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.10.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.32 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.31 30-Mar-2014  dholland Use bool (not int) for a boolean return type.
 1.30 30-Mar-2014  dholland Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.29 30-Mar-2014  dholland Remove all the conditional compilation for INTERNET. Now you can run
this on either a local or internet socket (including via inetd on
either) and it will, or is supposed to, DTRT.

Does not really support ipv6 yet, but in a number of places will no
longer vomit or exhibit UB if it encounters an ipv6 address.
 1.28 30-Mar-2014  dholland Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
 1.27 29-Mar-2014  dholland Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
 1.26 29-Mar-2014  dholland Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
 1.25 29-Mar-2014  dholland Group function declarations by which source file they come from, and
delete several that don't actually exist.
 1.24 29-Mar-2014  dholland sprinkle static
 1.23 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.22 29-Mar-2014  dholland Remove empty header file.
 1.21 29-Mar-2014  dholland Make the code for issuing talk requests to find players actually build.
 1.20 29-Mar-2014  dholland don't declare own boolean type
 1.19 12-Aug-2009  dholland branches: 1.19.6; 1.19.12;
sprinkle static and prune some dead code
 1.18 04-Jul-2009  dholland Remove config options for 4.2BSD and 4.3BSD, and associated code. Highly
obsolete, and I doubt most of it still worked anyway.
 1.17 04-Jul-2009  dholland Remove the non-curses screen handling, since it relies on knowing
about various internals of SVR4 curses, old BSD curses, and/or other
unclean things. (Yes, the non-curses handling still used bits of
curses. Fie.)
 1.16 04-Jul-2009  dholland Remove config for the return type of signal handlers, which is also a
long-dead issue.
 1.15 04-Jul-2009  dholland Whitespace.
 1.14 04-Jul-2009  dholland Sigh, more of the same (missed two)
 1.13 04-Jul-2009  dholland __attribute__((__noreturn__)) -> __dead
 1.12 28-Jan-2008  dholland clean for WARNS=4
 1.11 08-Feb-2004  jsm branches: 1.11.22;
Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
 1.10 27-Jan-2004  jsm Remove uses of __P.
 1.9 11-Jun-2003  wiz Make build.
 1.8 11-Jun-2003  wiz Merge with v20030416.
 1.7 20-Sep-2002  mycroft select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
 1.6 21-Jan-2000  mycroft Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
 1.5 13-Sep-1998  hubertf branches: 1.5.2;
mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.4 11-Sep-1998  hubertf remove unneeded typedef for TTYB, as per PR#5867
 1.3 09-Jan-1998  perry RCS Id Police.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.5.2.1 23-Jan-2000  he Pull up revision 1.6 (requested by mycroft):
Always do the errno indirection hack, so that non-threaded
libraries get the right errno value when linked with -lpthread.
This means "always include <errno.h> and never declare errno
yourself".
 1.11.22.1 23-Mar-2008  matt sync with HEAD
 1.19.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12 30-Mar-2014  dholland Remove all the conditional compilation for INTERNET. Now you can run
this on either a local or internet socket (including via inetd on
either) and it will, or is supposed to, DTRT.

Does not really support ipv6 yet, but in a number of places will no
longer vomit or exhibit UB if it encounters an ipv6 address.
 1.11 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.10 09-Jul-2013  njoly Fix sendmail section (8 -> 1) in xrefs.
 1.9 11-Mar-2009  joerg branches: 1.9.6; 1.9.12;
Fix preamble
 1.8 15-Sep-2005  wiz branches: 1.8.28;
Drop trailing whitespace.
 1.7 11-Jun-2003  wiz Merge with v20030416.
 1.6 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.5 26-Sep-2002  wiz Ispell.
 1.4 04-Apr-2001  wiz mdoc'ify.
 1.3 09-Jan-1998  perry RCS Id Police.
 1.2 04-Oct-1997  mrg note that huntd lives in /usr/games.
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.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.9.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.11 29-Mar-2014  dholland tsort contents of file
 1.10 29-Mar-2014  dholland const in unused code
 1.9 29-Mar-2014  dholland don't declare own boolean type
 1.8 23-May-2011  joerg branches: 1.8.4; 1.8.10;
#if 0 some unused code.
 1.7 12-Aug-2009  dholland sprinkle static and prune some dead code
 1.6 04-Jul-2009  dholland Whitespace.
 1.5 04-Jul-2009  dholland ANSIfy function declarations.
 1.4 27-Jan-2004  jsm Remove uses of __P.
 1.3 11-Jun-2003  wiz Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.8.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.4.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10 29-Mar-2014  dholland Flush unwanted file.
 1.9 29-Mar-2014  dholland Move definitions to the file they're used in.
 1.8 29-Mar-2014  dholland move a comment that should have gone with its symbol
 1.7 29-Mar-2014  dholland Remove tautological #if DEBUG.
 1.6 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.5 04-Jul-2009  dholland branches: 1.5.6; 1.5.12;
Whitespace.
 1.4 28-Jan-2008  dholland clean for WARNS=4
 1.3 11-Jun-2003  wiz branches: 1.3.22;
Merge with v20030416.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.3.22.1 23-Mar-2008  matt sync with HEAD
 1.5.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.15 13-Oct-2019  mrg adjust a fallthru comment and add a missing break.
 1.14 29-Mar-2014  dholland branches: 1.14.26;
be consistent about whether functions are static
 1.13 29-Mar-2014  dholland don't declare own boolean type
 1.12 31-Aug-2011  plunky branches: 1.12.2; 1.12.8;
NULL does not need a cast
 1.11 04-Jul-2009  dholland more whitespace
 1.10 04-Jul-2009  dholland Whitespace.
 1.9 04-Jul-2009  dholland ANSIfy function declarations.
 1.8 04-Jul-2009  dholland Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
 1.7 28-Jun-2009  dholland sprintf -> snprintf
 1.6 17-Mar-2006  abs Add a missing bp->b_score not null check - addresses Coverity CID 1003
 1.5 27-Jan-2004  jsm Remove uses of __P.
 1.4 11-Jun-2003  wiz Merge with v20030416.
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.12.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.26.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2 29-Mar-2014  dholland branches: 1.2.4; 1.2.8;
Er oops, fix previous.
 1.1 29-Mar-2014  dholland Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 29-Mar-2014  tls file support.c was added on branch tls-maxphys on 2014-08-20 00:00:23 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 29-Mar-2014  yamt file support.c was added on branch yamt-pagecache on 2014-05-22 11:36:23 +0000
 1.8 29-Mar-2014  dholland Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.
 1.7 04-Jul-2009  dholland branches: 1.7.6; 1.7.12;
Whitespace.
 1.6 27-Jan-2004  jsm Remove uses of __P.
 1.5 11-Jun-2003  wiz Merge with v20030416.
 1.4 09-Jan-1998  perry RCS Id Police.
 1.3 11-Oct-1997  lukem use err/warn instead of perror
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.7.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.6.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.7 04-Jul-2009  dholland Whitespace.
 1.6 04-Jul-2009  dholland ANSIfy function declarations.
 1.5 28-Jan-2008  dholland clean for WARNS=4
 1.4 11-Jun-2003  wiz branches: 1.4.22;
Merge with v20030416.
 1.3 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.2 10-Oct-1997  lukem Yet Another Monster Commit:
- WARNSify
- getopt returns -1 not EOF
- select() uses an fd_set, not int/long; modify code to use FD_* et al
instead of direct bitwise operations
- in otto.c::look (renamed to ottolook() to prevent name clash), the
case WEST section had a 'goto cont_east', instead of 'goto cont_west'.
(picked up by WARNS=1, because cont_west was an unused label because
of this typo). probably meant that otto got lost in the maze :-/
- deprecate register, convert bcmp() -> memcmp()
 1.1 04-Oct-1997  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 11-Jun-2003  wiz Import of hunt as of 2003-04-16 from ftp://ftp.cgl.ucsf.edu/pub/hunt.shar.Z,
with files moved to proper subdirs.
Changes since 19930717: BSD licensed, and minimal fixes.
 1.1.1.1 04-Oct-1997  mrg hunt version 1993-07-17
 1.4.22.1 23-Mar-2008  matt sync with HEAD
 1.5 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.4 30-Mar-2014  dholland branches: 1.4.4; 1.4.8;
Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
 1.3 29-Mar-2014  dholland Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
 1.2 29-Mar-2014  dholland move a comment that should have gone with its symbol
 1.1 29-Mar-2014  dholland Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.
 1.4.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.8.1 30-Mar-2014  tls file hunt_common.h was added on branch tls-maxphys on 2014-08-20 00:00:23 +0000
 1.4.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.4.1 30-Mar-2014  yamt file hunt_common.h was added on branch yamt-pagecache on 2014-05-22 11:36:23 +0000
 1.2 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.1 29-Mar-2014  dholland branches: 1.1.4; 1.1.8;
handle compiled-in pathnames the customary way
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 29-Mar-2014  tls file pathnames.h was added on branch tls-maxphys on 2014-08-20 00:00:23 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 29-Mar-2014  yamt file pathnames.h was added on branch yamt-pagecache on 2014-05-22 11:36:23 +0000

RSS XML Feed