Subject: Re: CVS commit: basesrc
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/20/1999 22:54:15
>Module Name: basesrc
>Committed By: tron
>Date: Tue Jul 20 08:59:15 UTC 1999
> basesrc/usr.sbin/bind/include: namespace.h
>Remap "_res" to "bind_res" to fix link warnings on ELF systems.
I believe the above is to avoid the difference in size of _res.
Is it really safe to rename it? lib/libc/net/gethnamaddr.c (which
is used from, for example, "dig") refers to _res, and gethostbyname()
will be dynamically linked from libc. Therefore, now gethostbyname()
and functions compiled in usr.sbin/bind will touch different
structures. That is, I believe, not be the desired behavior.
The desired fix is to sync src/include/resolv.h and
src/usr.sbin/bind/include/resolv.h into one (or remove one of them
and refer to only one). I sent question to tech-net last week about
which one is the right one (or latest one), to get no reply.