glibc/include/sys/auxv.h
Florian Weimer 562ef5e69e 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>
2020-10-27 16:34:37 +01:00

14 lines
372 B
C

#include <misc/sys/auxv.h>
#ifndef _ISOMAC
extern __typeof (getauxval) __getauxval;
libc_hidden_proto (__getauxval)
/* Like getauxval, but writes the value to *RESULT and returns true if
found, or returns false. Does not set errno. */
_Bool __getauxval2 (unsigned long int type, unsigned long int *result);
libc_hidden_proto (__getauxval2)
#endif /* !_ISOMAC */