[PATCH 0/4] Export AT_HWCAP from libc.

Ryan S. Arnold ryan.arnold@gmail.com
Sat Mar 17 16:30:00 GMT 2012


On Fri, Mar 16, 2012 at 9:50 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> Anyways, the closest thing Solaris has to what you mention is a
>> "long __getauxval(int type)" interface.
>
> If that's a general-purpose auxv-scanning interface, then that sounds like
> it might be the really useful thing to export instead.  We could still have
> it special-case AT_HWCAP (and perhaps a few others) to report the cached
> values we already have internally rather than actually scan.

IBM proposed exporting a general interface for the auxv long ago and
was told to make a library.. so we did.

svn co https://powertechprev.svn.sourceforge.net/svnroot/powertechprev/libauxv
libauxv

Information on it's use can be found here:

https://www.ibm.com/developerworks/wikis/display/LinuxP/Optimized+Libraries#OptimizedLibraries-Libauxv

This library allows the auxv to be prefetched prior to first scan.

There's nothing terribly Power specific about the library other than
the fact that the hwcap bits haven't been added for any arches other
than Power.  I can/will accept patches for other arches.

Ryan



More information about the Libc-alpha mailing list