search for: _sys_auxv_h

Displaying 2 results from an estimated 2 matches for "_sys_auxv_h".

2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
...on.h | 2 ++ usr/klibc/libc_init.c | 25 ++++++++++++------------- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/usr/include/sys/auxv.h b/usr/include/sys/auxv.h new file mode 100644 index 0000000..08fcfcf --- /dev/null +++ b/usr/include/sys/auxv.h @@ -0,0 +1,16 @@ +#ifndef _SYS_AUXV_H +#define _SYS_AUXV_H + +#include <klibc/compiler.h> +#include <elf.h> + +#define _AUXVAL_MAX AT_SYSINFO_EHDR + +__extern unsigned long __auxval[_AUXVAL_MAX]; + +__static_inline unsigned long getauxval(unsigned long __t) +{ + return (__t >= _AUXVAL_MAX) ? 0 : __auxval[__t]; +} + +#end...
2014 Apr 09
0
[klibc:master] <sys/auxv.h>: add missing dependency < klibc/extern.h>
...ned-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/include/sys/auxv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/include/sys/auxv.h b/usr/include/sys/auxv.h index 08fcfcf..fc98ed4 100644 --- a/usr/include/sys/auxv.h +++ b/usr/include/sys/auxv.h @@ -2,6 +2,7 @@ #define _SYS_AUXV_H #include <klibc/compiler.h> +#include <klibc/extern.h> #include <elf.h> #define _AUXVAL_MAX AT_SYSINFO_EHDR