CLEANUP: Remove obsolete OS/arch code, assume modern POSIX, fix linker errors
authorRemco Rijnders <remmy@serenity-irc.net>
Sat, 7 Mar 2026 17:17:36 +0000 (12:17 -0500)
committerRemco Rijnders <remmy@serenity-irc.net>
Sat, 7 Mar 2026 17:17:36 +0000 (12:17 -0500)
commit789a72358da9c168e2476a2b9a3bc17eeec2a016
tree9019a849bdbe010a79f27db34bf50879c329e62e
parent1efb78dad618943d3e4ed7a17d809b11b046bfaf
CLEANUP: Remove obsolete OS/arch code, assume modern POSIX, fix linker errors

Remove support for dead platforms (Apollo, ISC202, OSF/1, PCS/MUNIX,
Windows NT/95, DEC Alpha) and obsolete compatibility shims (K&R prototypes,
VOIDSIG, OPT_TYPE, valloc, sys_errlist, custom strtok/strerror/inet_netof).

Assume POSIX throughout: signals via sigaction, non-blocking via O_NONBLOCK,
standard headers (errno.h, unistd.h, stdlib.h, string.h, stdarg.h),
getrusage for resource stats, lrand48 for random numbers.

Fix pre-existing multiple-definition linker errors by changing bare global
declarations in headers (h.h, common.h) to extern and placing the actual
definitions in ircd.c.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 files changed:
include/class.h
include/common.h
include/config.h
include/dbuf.h
include/h.h
include/res.h
include/sock.h
include/sys.h
include/whowas.h
src/bsd.c
src/dbuf.c
src/ircd.c
src/res.c
src/s_bsd.c
src/s_debug.c
src/s_ping.c
src/s_serv.c
src/support.c