mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibC+LibELF: Move getauxval and AT_* flags to sys/auxv.h
This commit is contained in:
committed by
Andreas Kling
parent
f22787dd39
commit
f12da0af13
@@ -180,19 +180,6 @@ inline int generate_unique_filename(char* pattern, Callback callback)
|
||||
|
||||
extern "C" {
|
||||
|
||||
long getauxval(long type)
|
||||
{
|
||||
errno = 0;
|
||||
|
||||
auxv_t* auxvp = (auxv_t*)__auxiliary_vector;
|
||||
for (; auxvp->a_type != AT_NULL; ++auxvp) {
|
||||
if (auxvp->a_type == type)
|
||||
return auxvp->a_un.a_val;
|
||||
}
|
||||
errno = ENOENT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void exit(int status)
|
||||
{
|
||||
__cxa_finalize(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user