misc: Add internal __getauxval2 function
commit562ef5e69eb38230810bd25a4335224a31bfe31b
authorFlorian Weimer <fweimer@redhat.com>
Tue, 27 Oct 2020 09:42:10 +0000 (27 10:42 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 27 Oct 2020 15:34:37 +0000 (27 16:34 +0100)
treef89ee605da223922e9d2920704af109bbf495772
parent0ce51bef34e1edde9f60ccd6d9d70c56020d9d21
misc: Add internal __getauxval2 function

The explicit error return value (without in-band signaling) avoids
complicated steps to detect errors based on whether errno has been
updated.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
include/sys/auxv.h
misc/getauxval.c