This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/4] Export AT_HWCAP from libc.


On 03/16/12 16:40, Roland McGrath wrote:
>> Bike-shedding on the name __libc_hwcap, anyone?
> 
> That's certainly not a very proper name for a public API.
> Do you need to use this in a library that is part of the
> implementation of a standard with name space constraints
> such as ISO C or POSIX?

It's not inconceivable that it might get used in libgcc.so
itself at some point.  We have all sorts of code in there
that's conditionally compiled based on isa which might
benefit from conversion to ifuncs.

> I think AT_HWCAP may have originated in Solaris.
> Does it have any public interface for getting the bits?

Not that my googling skills can find.  The main "interface"
seems to be via ld + ld.so and mapfiles adjusting elf headers.
The headers they use are <sys/auxv_386.h> and <sys/auxv_SPARC.h>

Perhaps Dave knows more?

Would you prefer just gethwcap(), maybe also exported with
leading double-underscore as with some other functions?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]