priv-vars.h 551 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __GBLIBC_PRIV_VARS_H_
  2. #define __GBLIBC_PRIV_VARS_H_
  3. #include <list.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define FILE_READ (1 << 0)
  8. #define FILE_WRITE (1 << 1)
  9. #define FILE_ERROR (1 << 2)
  10. #define FILE_EOF (1 << 3)
  11. void** __start_brk_location(void);
  12. void** __curr_brk_location(void);
  13. list_head* __io_files_location(void);
  14. #undef start_brk
  15. #define start_brk (*__start_brk_location())
  16. #undef curr_brk
  17. #define curr_brk (*__curr_brk_location())
  18. #undef iofiles
  19. #define iofiles (*__io_files_location())
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif