2017-10-15 22:30:05 +08:00
|
|
|
/*
|
2018-09-14 22:37:43 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2017-10-15 22:30:05 +08:00
|
|
|
*
|
2018-09-14 22:37:43 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* File : rtlibc.h
|
2017-10-15 22:30:05 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-01-21 Bernard the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RTLIBC_H__
|
|
|
|
#define RTLIBC_H__
|
|
|
|
|
|
|
|
/* definitions for libc if toolchain has no these definitions */
|
|
|
|
#include "libc/libc_stat.h"
|
|
|
|
#include "libc/libc_errno.h"
|
|
|
|
|
|
|
|
#include "libc/libc_fcntl.h"
|
|
|
|
#include "libc/libc_ioctl.h"
|
|
|
|
#include "libc/libc_dirent.h"
|
|
|
|
#include "libc/libc_signal.h"
|
2017-10-31 09:52:49 +08:00
|
|
|
#include "libc/libc_fdset.h"
|
2017-10-15 22:30:05 +08:00
|
|
|
|
2018-09-23 12:08:44 +08:00
|
|
|
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
|
2017-10-15 22:30:05 +08:00
|
|
|
typedef signed long off_t;
|
2017-10-25 07:25:24 +08:00
|
|
|
typedef int mode_t;
|
2017-10-15 22:30:05 +08:00
|
|
|
#endif
|
|
|
|
|
2017-11-30 23:56:52 +08:00
|
|
|
#if defined(__MINGW32__) || defined(_WIN32)
|
2017-10-20 13:26:47 +08:00
|
|
|
typedef signed long off_t;
|
|
|
|
typedef int mode_t;
|
|
|
|
#endif
|
|
|
|
|
2017-10-15 22:30:05 +08:00
|
|
|
#endif
|
|
|
|
|