This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15846] getauxval api is broken
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 18 Dec 2013 18:52:56 +0000
- Subject: [Bug libc/15846] getauxval api is broken
- Auto-submitted: auto-generated
- References: <bug-15846-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15846
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b9ab448f980e296eac21ac65f53783967cc6037b (commit)
from f889953b44da50bf8a7824c97d09dbe03fd11b83 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b9ab448f980e296eac21ac65f53783967cc6037b
commit b9ab448f980e296eac21ac65f53783967cc6037b
Author: Brooks Moses <bmoses@google.com>
Date: Wed Dec 11 16:58:12 2013 -0800
Add error reporting (via errno) to getauxval().
[BZ 15846] As discussed in the recent thread on my $EXEC_ORIGIN patch
and in BZ 15846, getauxval() presently has no unambiguous way of
reporting an error condition. It currently returns zero on error, but
this may also be a valid result for some auxv entries. As there is no
clear invalid result for all current and future auxv entries, this patch
sets errno (following a suggestion in the BZ entry).
This version of the patch also adds documentation and tests for the
value-not-found conditions in getauxval().
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
elf/tst-auxv.c | 28 ++++++++++++++++++++++++++--
manual/startup.texi | 3 ++-
misc/getauxval.c | 3 +++
misc/sys/auxv.h | 4 ++--
5 files changed, 44 insertions(+), 5 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.