1 /* 2 * Copyright (c) 2006-2018, 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 11 #ifndef RTLIBC_H__ 12 #define RTLIBC_H__ 13 14 /* definitions for libc if toolchain has no these definitions */ 15 #include "libc/libc_stat.h" 16 #include "libc/libc_errno.h" 17 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 24 #if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__) 25 typedef signed long off_t; 26 typedef int mode_t; 27 #endif 28 29 #if defined(__MINGW32__) || defined(_WIN32) 30 typedef signed long off_t; 31 typedef int mode_t; 32 #endif 33 34 #endif 35 36