]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement the weak aliases for private entry points in the inet_*
authorjdp <jdp@FreeBSD.org>
Wed, 2 Sep 1998 00:53:17 +0000 (00:53 +0000)
committerjdp <jdp@FreeBSD.org>
Wed, 2 Sep 1998 00:53:17 +0000 (00:53 +0000)
commitbf8ea8d3a710dfc5162591b386fb01dc0158ed55
tree4d411d41ad33572e5e52a6db2adf230567f8a2a3
parent7accff6b6d70c80baecfc41ec16a3baa034526d3
Implement the weak aliases for private entry points in the inet_*
and res_* modules in a way that works for ELF.  I moved the aliases
out of res_stubs.c and into the individual modules where the entry
points are defined.  Weak aliases don't work in ELF unless that is
the case.  (Actually, I'm surprised it worked for a.out.)

This should fix the undefined "inet_addr" and related symbols in
various applications that fail to include <arpa/inet.h> or
<resolv.h> as they are supposed to do.
20 files changed:
lib/libc/net/Makefile.inc
lib/libc/net/inet_addr.c
lib/libc/net/inet_lnaof.c
lib/libc/net/inet_makeaddr.c
lib/libc/net/inet_net_ntop.c
lib/libc/net/inet_net_pton.c
lib/libc/net/inet_neta.c
lib/libc/net/inet_netof.c
lib/libc/net/inet_network.c
lib/libc/net/inet_ntoa.c
lib/libc/net/inet_ntop.c
lib/libc/net/inet_pton.c
lib/libc/net/nsap_addr.c
lib/libc/net/res_comp.c
lib/libc/net/res_debug.c
lib/libc/net/res_init.c
lib/libc/net/res_mkquery.c
lib/libc/net/res_query.c
lib/libc/net/res_send.c
lib/libc/net/res_stubs.c [deleted file]