CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2009/11/18 00:43:22
Modified files: lib/libc/gen : readdir.c syslog.c Makefile.inc lib/libc/net : Makefile.inc getaddrinfo.c gethostnamadr.c rcmd.c distrib/special/libstubs: Makefile Added files: lib/libc/gen : readdir_r.c syslog_r.c lib/libc/net : ruserok.c Log message: More shrinkage, a bit for ramdisks but mostly for static binaries: - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@