Home | History | Annotate | only in /src/games/hunt/huntd
History log of /src/games/hunt/huntd
RevisionDateAuthorComments
 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

RSS XML Feed