This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: libc_hidden_* for public functions
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Ilya Skapenko <aweflea at gmail dot com>, libc-help at sourceware dot org
- Date: Wed, 4 Oct 2017 20:23:58 -0700
- Subject: Re: libc_hidden_* for public functions
- Authentication-results: sourceware.org; auth=none
- References: <CALj6uP=uymTMK8uHp3XLGij-cV6HrP6HO0QCuuvH4xfOtG39ig@mail.gmail.com>
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.