2020-08-12 01:58:50 +02:00
|
|
|
/*
|
2023-07-05 23:58:24 +02:00
|
|
|
* Copyright (c) 2020-2023, the SerenityOS developers.
|
2020-08-12 01:58:50 +02:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-12 01:58:50 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2023-07-05 23:58:24 +02:00
|
|
|
#include <sys/types.h>
|
2020-08-12 01:58:50 +02:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2020-08-12 02:11:07 +02:00
|
|
|
typedef void (*AtExitFunction)(void*);
|
|
|
|
|
|
2022-01-08 15:32:59 +01:00
|
|
|
extern void __libc_init(void);
|
|
|
|
|
extern void __malloc_init(void);
|
|
|
|
|
extern void __stdio_init(void);
|
|
|
|
|
extern void __begin_atexit_locking(void);
|
|
|
|
|
extern void _init(void);
|
2020-08-12 01:58:50 +02:00
|
|
|
extern bool __environ_is_malloced;
|
2020-10-10 17:47:21 +03:00
|
|
|
extern bool __stdio_is_initialized;
|
2021-09-17 18:13:50 +02:00
|
|
|
extern bool __heap_is_stable;
|
2021-09-20 12:13:05 +03:00
|
|
|
extern void* __auxiliary_vector;
|
2020-08-12 01:58:50 +02:00
|
|
|
|
2020-08-12 02:11:07 +02:00
|
|
|
int __cxa_atexit(AtExitFunction exit_function, void* parameter, void* dso_handle);
|
|
|
|
|
void __cxa_finalize(void* dso_handle);
|
2022-01-08 15:32:59 +01:00
|
|
|
__attribute__((noreturn)) void __cxa_pure_virtual(void) __attribute__((weak));
|
|
|
|
|
__attribute__((noreturn)) void __stack_chk_fail(void);
|
|
|
|
|
__attribute__((noreturn)) void __stack_chk_fail_local(void);
|
2020-08-12 02:11:07 +02:00
|
|
|
|
2023-07-05 23:58:24 +02:00
|
|
|
struct __tls_index {
|
|
|
|
|
size_t ti_module;
|
|
|
|
|
size_t ti_offset;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void* __tls_get_addr(__tls_index*);
|
|
|
|
|
|
2020-08-12 01:58:50 +02:00
|
|
|
__END_DECLS
|