glibc/misc
Brooks Moses b9ab448f98 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().
2013-12-18 10:52:37 -08:00
..
bits Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sys Add error reporting (via errno) to getauxval(). 2013-12-18 10:52:37 -08:00
acct.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ar.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
brk.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
bug-hsearch1.c .. 2009-01-23 20:41:36 +00:00
chflags.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
chroot.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
daemon.c Update. 2004-09-25 06:49:33 +00:00
dirname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
efgcvt_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
efgcvt.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
err.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
err.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
error.c Fix error_tail overflow in allocation calculation. 2013-10-14 17:15:48 +02:00
error.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fchflags.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fdatasync.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fgetxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
flistxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fremovexattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fsetxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fstab.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
fstab.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
fsync.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ftruncate64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ftruncate.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
futimes.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
futimesat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getauxval.c Add error reporting (via errno) to getauxval(). 2013-12-18 10:52:37 -08:00
getclktck.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getdomain.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getdtsz.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
gethostid.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
gethostname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getloadavg.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getpagesize.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getpass.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getsysstats.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getttyent.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getusershell.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
gtty.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
hsearch_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
hsearch.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
ifunc-impl-list.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
init-misc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
insremque.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ioctl.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lgetxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
libgen.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
listxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
llistxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lremovexattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lsearch.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lsetxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lutimes.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
madvise.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Makefile Remove libbsd-compat dummy library. 2013-12-17 18:11:48 +00:00
mincore.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkdtemp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkostemp64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkostemp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkostemps64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkostemps.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkstemp64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkstemp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkstemps64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mkstemps.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mktemp.c Hide reference to mktemp in libpthread 2013-01-16 15:57:11 +01:00
mlock.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mlockall.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mmap64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mmap.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mntent_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mntent.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mntent.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mprotect.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
msync.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
munlock.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
munlockall.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
munmap.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
preadv64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
preadv.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pselect.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ptrace.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pwritev64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
pwritev.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
qefgcvt_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
qefgcvt.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
readv.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
reboot.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
regexp.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
regexp.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
remap_file_pages.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
removexattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
revoke.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sbrk.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
search.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
select.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
setdomain.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
setegid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
seteuid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sethostid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sethostname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
setregid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
setreuid.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
setxattr.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sgtty.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sstk.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
stab.h
stty.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
swapoff.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
swapon.c Update generic swapon definition to match prototype. 2013-10-04 12:22:14 -05:00
sync.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
syncfs.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscall.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscall.h
sysexits.h
syslog.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
syslog.h
truncate64.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
truncate.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tsearch.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-dirname.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-efgcvt.c Fix copy'n'pastos. 2013-03-15 19:00:23 +01:00
tst-error1.c * stdio-common/Makefile (aux): Add fxprintf. 2005-07-19 23:46:55 +00:00
tst-fdset.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-hsearch.c
tst-insremque.c [BZ #2766] 2006-06-17 17:01:42 +00:00
tst-mntent2.c * sysdeps/unix/sysv/linux/rtld-lowlevel.h 2006-12-09 22:29:37 +00:00
tst-mntent.c
tst-pselect.c Fix build warnings in some test cases 2013-02-18 18:17:05 +05:30
tst-tsearch.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ttyent.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
ttyslot.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
ualarm.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
usleep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ustat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ustat.h
utimes.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Versions Hide reference to mktemp in libpthread 2013-01-16 15:57:11 +01:00
vhangup.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
writev.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00