Commit Graph

226112 Commits

Author SHA1 Message Date
dholland
61623de9c7 goto considered harmful 2014-03-30 02:46:57 +00:00
dholland
082c40f53a split off a bunch of the nastier network code into its own file 2014-03-30 02:26:09 +00:00
dholland
38f4986ae9 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.
2014-03-30 02:11:25 +00:00
dholland
9e2af583dd 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.
2014-03-30 01:44:37 +00:00
christos
8443916807 wrap a few lines 2014-03-30 01:19:20 +00:00
christos
070dd9a4c8 catch up with pci_intr_string changes 2014-03-30 01:17:51 +00:00
matt
5ed1574662 Allow for 8KB page size. Add ARM_MMU_EXTENDED support.
Add missing END()
2014-03-30 01:15:03 +00:00
matt
e656070ba6 Update to use new pci_intr_string semantics. 2014-03-30 01:12:18 +00:00
dholland
8c7631b6e4 Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
2014-03-30 00:26:58 +00:00
christos
76a09c416c fix pic_intr_string prototype 2014-03-30 00:18:09 +00:00
christos
ef42b7a6a8 bump for real, not just the comment 2014-03-30 00:13:59 +00:00
joerg
eb94f7430b Fix syntax (hi christos!) 2014-03-29 23:51:02 +00:00
dholland
f0ab07d690 fix non-INTERNET build 2014-03-29 23:44:38 +00:00
matt
6f5ea3d6bd cortex doesn't need xscale_setup
use arm11_setttb for arm11x6.
2014-03-29 23:44:37 +00:00
matt
17dba145cf Add scr inline 2014-03-29 23:33:20 +00:00
matt
a579e160ac OMAP4/OMAP5 changes. 2014-03-29 23:32:41 +00:00
joerg
d101c0e239 Fix syntax (hi apb!) 2014-03-29 22:45:31 +00:00
joerg
b7b04e0e6d Match #if change in task.c. 2014-03-29 22:44:20 +00:00
dholland
ec434f4b81 Er oops, fix previous. 2014-03-29 22:30:27 +00:00
dholland
865e0d6472 Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
2014-03-29 22:29:55 +00:00
dholland
375031264b group external functions by where they come from 2014-03-29 22:15:26 +00:00
dholland
80f7486c03 be consistent about whether functions are static 2014-03-29 22:15:13 +00:00
dholland
98db4e3267 handle compiled-in pathnames the customary way 2014-03-29 22:11:19 +00:00
dholland
af8c06ff02 make some globals static 2014-03-29 22:05:44 +00:00
dholland
ecca92983f Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
2014-03-29 21:55:59 +00:00
dholland
506bf125f4 Group function declarations by which source file they come from, and
delete several that don't actually exist.
2014-03-29 21:43:46 +00:00
dholland
e195993756 be consistent about whether functions are static 2014-03-29 21:38:54 +00:00
dholland
b19465b277 sprinkle static 2014-03-29 21:33:41 +00:00
joerg
0e80d9e124 Before messing with macros from stdio.h, include cstdio. Some parts of
the backend would include it afterwards and the macro changes conflict
with libc++'s version of cstdio.
2014-03-29 21:33:39 +00:00
dholland
f1eb9b5b9c Flush unwanted file. 2014-03-29 21:27:40 +00:00
dholland
39032702fc Move definitions to the file they're used in. 2014-03-29 21:27:08 +00:00
dholland
15b06d8071 move a comment that should have gone with its symbol 2014-03-29 21:25:35 +00:00
dholland
b833a6b3f7 Remove tautological #if DEBUG. 2014-03-29 21:24:56 +00:00
dholland
ff658bd09f 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.
2014-03-29 21:24:26 +00:00
dholland
d07915f9b3 Remove unsafe and unnecessary pointer casts. 2014-03-29 20:53:55 +00:00
dholland
c6e948ac19 catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.
2014-03-29 20:52:13 +00:00
dholland
8f371b472c tsort contents of file 2014-03-29 20:44:20 +00:00
dholland
1b82cc9fb5 const in unused code 2014-03-29 20:41:57 +00:00
dholland
54eb2b3816 remove stubbed-out function 2014-03-29 20:35:30 +00:00
dholland
263e041ca2 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.
2014-03-29 20:32:04 +00:00
adam
22b703c4c2 Fix for /usr/include/g++/bits directory, which is only for MKGCC=yes 2014-03-29 20:22:16 +00:00
dholland
d39951fe62 Remove empty header file. 2014-03-29 20:16:09 +00:00
dholland
7004aab3ca Use setproctitle() instead of handrolled version. 2014-03-29 20:12:12 +00:00
dholland
7b718e7cd8 Make the code for issuing talk requests to find players actually build. 2014-03-29 20:10:10 +00:00
christos
6d15f6a395 fix pci_intr_string 2014-03-29 19:54:46 +00:00
dholland
37a43147ab don't declare own boolean type 2014-03-29 19:41:10 +00:00
christos
2cad6262db add missing #else Takahiro Hayashi 2014-03-29 19:34:23 +00:00
dholland
208bf48e82 use random(), not a handrolled 16-bit generator 2014-03-29 19:33:03 +00:00
christos
568b09c7ee sprintf removal
{pci,eisa}_intr_string signature change
2014-03-29 19:30:49 +00:00
dholland
120fd4cb9a add "move gethostbyname to a compat library" to the list of things to do
on the mythical libc bump
2014-03-29 19:30:12 +00:00