priv-vars.h 497 B

1234567891011121314151617181920212223242526272829
  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. void** __start_brk_location(void);
  10. void** __curr_brk_location(void);
  11. list_head* __io_files_location(void);
  12. #undef start_brk
  13. #define start_brk (*__start_brk_location())
  14. #undef curr_brk
  15. #define curr_brk (*__curr_brk_location())
  16. #undef iofiles
  17. #define iofiles (*__io_files_location())
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif