search for: _auxval_max

Displaying 4 results from an estimated 4 matches for "_auxval_max".

2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
...+), 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]; +} + +#endif /* _SYS_AUXV_H */ diff --git a/usr/include/sys/elfcommon.h b/usr/include/sys/elfcommon.h index 300ff4e...
2014 Apr 09
0
[klibc:master] <sys/auxv.h>: add missing dependency < klibc/extern.h>
...tion(+) 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
2015 Nov 05
0
[klibc:master] Inline __arch_libcinit()
...oid)0) +#endif + /* This file is included from __static_init.c or __shared_init.c */ #ifndef SHARED # error "SHARED should be defined to 0 or 1" @@ -42,7 +48,6 @@ struct auxentry { }; extern void __libc_init_stdio(void); -extern void __libc_archinit(void); unsigned long __auxval[_AUXVAL_MAX];
2014 Apr 09
0
[klibc:master] Move architecture-specific initialization to arch/
...gt; #include "atexit.h" /* This file is included from __static_init.c or __shared_init.c */ @@ -40,7 +41,8 @@ struct auxentry { unsigned long v; }; -extern void __init_stdio(void); +extern void __libc_init_stdio(void); +extern void __libc_archinit(void); unsigned long __auxval[_AUXVAL_MAX]; @@ -90,20 +92,11 @@ __noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void)) __page_size = page_size = __auxval[AT_PAGESZ]; -#ifdef __i386__ - { - extern void (*__syscall_entry)(int, ...); - if (__auxval[AT_SYSINFO]) - __syscall_entry = (void (*)(int, ...)) - __auxval[AT_...