rtlibc.h 848 B

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