Commit Graph

226081 Commits

Author SHA1 Message Date
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
christos
e58a356cba make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
2014-03-29 19:28:24 +00:00
dholland
329b34a67e Use getaddrinfo() instead of gethostbyname(). 2014-03-29 19:26:28 +00:00
christos
1f02a58d08 make this compile (missing header file) 2014-03-29 19:20:29 +00:00
christos
e70bf8c346 fix misplaced line 2014-03-29 19:20:14 +00:00
dholland
d509fb9f42 typo in error message 2014-03-29 19:03:21 +00:00
dholland
267ec317ae const 2014-03-29 19:02:12 +00:00
dholland
8a64b7f83c simplify silly logic 2014-03-29 19:01:00 +00:00
apb
34bb1ddc72 Add a statuslen argument to get_pr_status(), and use it
as the length in a call to strlcpy().  The previous code would
have used the size of a pointer as the length.
2014-03-29 18:54:36 +00:00
apb
a88920f53c sizeof(pointer) is not a good buffer length to pass to strlcat.
Introduce a new variable, clntpathmaxlen, to hold the correct
buffer length, and pass that to strlcat.

The incorrect buffer length would have caused <filename>.<hostname>
lookups to fail.
2014-03-29 18:23:00 +00:00
tsutsui
114c4a90f7 Make sure to acquire proc_lock mutex on calling psignal(9) in EV_WAKEUP().
Without this, Xserver could cause panic on the DIAGNOSTIC kernel as x68k:
http://mail-index.netbsd.org/source-changes/2012/08/15/msg036632.html
2014-03-29 16:46:19 +00:00
gson
de089ddb26 Use daemon(3) instead of the experimental daemon2_fork() and
daemon2_detach().  Now that newer versions of daemon2_fork() and
daemon2_detach() are used in nfsd, where two-stage daemonization is
actually needed, there is no longer any reason for h_dns_server to
serve as a test case and example of their use.
2014-03-29 16:10:54 +00:00
skrll
6e791cbd37 Trailing whitespace 2014-03-29 15:48:01 +00:00
skrll
c0559412e4 Allow crash(8) to compile this. 2014-03-29 15:47:40 +00:00
matt
611d2a533f Change KERNEL_EXT_BASE to 0x80000000 and KERNEL_BASE_VIRT correspondingly. 2014-03-29 15:02:00 +00:00
matt
6e241b49ec support mapping all of memory.
Map memory starting at 0x80000000 and leave 1GB until kernel VM
Make kernel VM size 320MB (avoid loading kernel and i/o section into same
tlb index).
2014-03-29 15:00:07 +00:00
matt
acba38a72c Use armv7 instructions. Add ARM_MMU_EXTENDED support. 2014-03-29 14:53:57 +00:00
matt
d70e9a297a OMAP5/OMAP4 MP Changes + better OMAP5 support. 2014-03-29 14:47:30 +00:00
jakllsch
edd6a404ba Obtain and/or use ETHER_ADDR_LEN. 2014-03-29 14:30:16 +00:00
jakllsch
836038fc64 Use ETHER_ADDR_LEN more. 2014-03-29 14:25:10 +00:00
jakllsch
2f39df062c Obtain and use ETHER_ADDR_LEN where appropriate.
Drop unnecessary includes.

XXX libsa ether_sprintf() should maybe be ether_snprintf.
2014-03-29 14:20:14 +00:00
matt
820d40c2f8 remove trailing blank line 2014-03-29 14:13:17 +00:00
matt
1154906a85 enable cortex-a15 for omap5 boards 2014-03-29 14:11:24 +00:00
matt
5658fa86da Add install config for PANDABOARD 2014-03-29 14:07:51 +00:00
matt
7c35ec50f2 Remove OMAP5432_EVM to OMAP5EVM. Add install kernel. 2014-03-29 14:05:58 +00:00
matt
4f4d60ee67 Define KERNEL_BASES_EQUAL is KERNEL_BASE_VIRT == KERNEL_BASE_PHYS 2014-03-29 14:04:31 +00:00
matt
8ec5ba97dc adjust arm_cpu_max by 1 to be number of cpus 2014-03-29 14:02:46 +00:00
matt
6740164378 Properly powerup the 2nd CPU. Other MP changes. 2014-03-29 14:00:30 +00:00
gson
da700ef1b2 When daemonizing, delay the parent exit until the daemon is
ready to provide service.  Fixes one of the race conditions
of PR misc/48282.
2014-03-29 13:50:53 +00:00
mlelstv
86affea727 Mark variables only used in KASSET to appease compiler. 2014-03-29 12:55:11 +00:00
mlelstv
6a72627faa Appease compiler. 2014-03-29 12:54:27 +00:00
mlelstv
fe0f5b41c6 Use different option (-mcpu=68030) to select target cpu for the assembler.
The old option (-m68030) causes it to complain about features used that
are not provided by the target cpu.
2014-03-29 12:52:56 +00:00