rtlibc.h 768 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /*
  7. * File : rtlibc.h
  8. *
  9. * Change Logs:
  10. * Date Author Notes
  11. * 2017-01-21 Bernard the first version
  12. */
  13. #ifndef RTLIBC_H__
  14. #define RTLIBC_H__
  15. /* definitions for libc if toolchain has no these definitions */
  16. #include "libc/libc_stat.h"
  17. #include "libc/libc_errno.h"
  18. #include "libc/libc_fcntl.h"
  19. #include "libc/libc_ioctl.h"
  20. #include "libc/libc_dirent.h"
  21. #include "libc/libc_signal.h"
  22. #include "libc/libc_fdset.h"
  23. #if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
  24. typedef signed long off_t;
  25. typedef int mode_t;
  26. #endif
  27. #if defined(__MINGW32__) || defined(_WIN32)
  28. typedef signed long off_t;
  29. typedef int mode_t;
  30. #endif
  31. #endif