From 46190922e0fb42d27bc7c8ed85d9fd44664f50ef Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 28 Jun 2025 20:11:49 -0400 Subject: usr: libc: Store auxiliary vector tag/value pairs This commit introduces the global libc '__libc_auxv' containing auxiliary vector entries as per the System V Application Binary Interface Signed-off-by: Ian Moffett --- sys/include/sys/exec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/include') diff --git a/sys/include/sys/exec.h b/sys/include/sys/exec.h index 7e720fc..aa2a729 100644 --- a/sys/include/sys/exec.h +++ b/sys/include/sys/exec.h @@ -32,7 +32,6 @@ #include -#if defined(_KERNEL) /* Danger: Do not change these !! */ #define AT_NULL 0 @@ -45,7 +44,9 @@ #define AT_RANDOM 7 #define AT_EXECFN 8 #define AT_PAGESIZE 9 +#define _AT_MAX 16 +#if defined(_KERNEL) #define MAX_PHDRS 32 #define STACK_PUSH(PTR, VAL) *(--(PTR)) = VAL #define AUXVAL(PTR, TAG, VAL) \ -- cgit v1.2.3