This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: __* in installed headers
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: __* in installed headers
- From: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Date: Thu, 06 Aug 1998 14:01:26 -0400
- cc: libc-hacker@cygnus.com
On 06 Aug 1998 08:00:14 -0700, Ulrich Drepper wrote:
>Hi,
>
>Does anybody see a reason why we shouldn't get rid of the __*
>prototypes in the official headers? The reason is that I found more
>and more cases where people think they should use these functions
>since they are documented. Of course this will break now that these
>functions are not exported anymore. [And compiling will be faster
>since fewer symbols have to be kept.]
>
>The solution I have in mind is to move over the __* prototypes to the
>headers in include/ and make sure we search while compiling glibc
>always there first.
I agree with the idea but I don't like your proposed implementation. It
seems to me it would cause maintenance headaches; we'd need to keep
prototypes in sync between different headers in different directories. A
tidier way to do it would be to change the wrapper headers in include/ so
they #define the external names to the internal ones before including the
public headers. (This also enforces use of strong symbols inside the
library.)
zw