libc_hidden_* for public functions

Carlos O'Donell carlos@redhat.com
Thu Oct 5 03:24:00 GMT 2017


On 10/04/2017 04:21 PM, Ilya Skapenko wrote:
> Hello!
> Please, help me to understand, why and when do you use macroses like
> libc_hidden_(proto, def)?
> As I understood, you use them, when using this symbol by library itself.
> But you could do it without these macroses, what's the purpose of them?
> What for do they create __GI_*function_name* alias for function?
 
https://sourceware.org/glibc/wiki/Style_and_Conventions#Double-underscore_names_for_public_API_functions

-- 
Cheers,
Carlos.



More information about the Libc-help mailing list