internals.h 823 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <sys/cdefs.h>
  8. __BEGIN_DECLS
  9. typedef void (*AtExitFunction)(void*);
  10. extern void __libc_init(void);
  11. extern void __malloc_init(void);
  12. extern void __stdio_init(void);
  13. extern void __begin_atexit_locking(void);
  14. extern void _init(void);
  15. extern bool __environ_is_malloced;
  16. extern bool __stdio_is_initialized;
  17. extern bool __heap_is_stable;
  18. extern void* __auxiliary_vector;
  19. int __cxa_atexit(AtExitFunction exit_function, void* parameter, void* dso_handle);
  20. void __cxa_finalize(void* dso_handle);
  21. __attribute__((noreturn)) void __cxa_pure_virtual(void) __attribute__((weak));
  22. __attribute__((noreturn)) void __stack_chk_fail(void);
  23. __attribute__((noreturn)) void __stack_chk_fail_local(void);
  24. __END_DECLS