This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [Patch] Define secure_getenv
On 7/13/2012 12:14 PM, Andreas Schwab wrote:
> Carlos O'Donell <carlos_odonell@mentor.com> writes:
>
>> You don't need GLIBC_PRIVATE since you have a public interface now and libc hidden takes care of any internal non-plt references.
>
> You can't use the public interface for inter-library calls, though, due
> to namespace violations.
Is this because (a) we now want to discourage __secure_getenv so we
remove it from include/stdlib.h and (b) we want to still use
__secure_getenv for inter-library calls?
So do we need a third name for the symbol and use that for
inter-library calls e.g. __internal_secure_getenv?
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026