OSDN Git Service

libc: add getauxval()
authorNick Kralevich <nnk@google.com>
Fri, 11 Jan 2013 22:43:05 +0000 (14:43 -0800)
committerNick Kralevich <nnk@google.com>
Sat, 12 Jan 2013 00:44:15 +0000 (16:44 -0800)
commit2c5153b043b44e9935a334ae9b2d5a4bc5258b40
treea416a91052c38633d963fb5fc193356ae0c45640
parent69c89942db2ed472c71aa84903d0259cc84aa074
libc: add getauxval()

Add support for getauxval().  This method allows a program an easy way
to retrieve information from the kernel auxiliary vector, and will
hopefully replace other clumsy ways of accessing this same information.

This particular function was also added to glibc in glibc 2.16.
See the following URLs for more details.

  * http://lwn.net/Articles/519085/
  * http://www.gnu.org/software/libc/manual/html_node/Auxiliary-Vector.html

This change is a prerequisite for bug 7959813.

Bug: http://code.google.com/p/android/issues/detail?id=38441
Change-Id: Iba19d899df334bddc6f4899077ece2fc87564ea8
libc/Android.mk
libc/bionic/getauxval.cpp [new file with mode: 0644]
libc/bionic/libc_init_common.c
libc/bionic/libc_init_static.c
libc/include/elf.h
libc/include/sys/auxv.h [new file with mode: 0644]
libc/private/bionic_auxv.h [new file with mode: 0644]
tests/Android.mk
tests/getauxval_test.cpp [new file with mode: 0644]