internals.h 690 B

12345678910111213141516171819202122232425262728
  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();
  11. extern void __malloc_init();
  12. extern void __stdio_init();
  13. extern void _init();
  14. extern bool __environ_is_malloced;
  15. extern bool __stdio_is_initialized;
  16. int __cxa_atexit(AtExitFunction exit_function, void* parameter, void* dso_handle);
  17. void __cxa_finalize(void* dso_handle);
  18. __attribute__((noreturn)) void __cxa_pure_virtual() __attribute__((weak));
  19. __attribute__((noreturn)) void __stack_chk_fail();
  20. __attribute__((noreturn)) void __stack_chk_fail_local();
  21. __END_DECLS