1
0

rtlibc.h 714 B

1234567891011121314151617181920212223242526272829303132333435
  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_fcntl.h"
  15. #include "libc/libc_dirent.h"
  16. #include "libc/libc_signal.h"
  17. #include "libc/libc_fdset.h"
  18. #ifndef RT_USING_LIBC
  19. #if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
  20. typedef signed long off_t;
  21. typedef int mode_t;
  22. #endif
  23. #endif
  24. #if defined(__MINGW32__) || defined(_WIN32)
  25. typedef signed long off_t;
  26. typedef int mode_t;
  27. #endif
  28. #endif