mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 21:40:25 +08:00
update
This commit is contained in:
parent
3d2e23ec1c
commit
8213bbd92e
@ -38,9 +38,8 @@
|
|||||||
|
|
||||||
#ifdef RT_USING_POSIX_STDIO
|
#ifdef RT_USING_POSIX_STDIO
|
||||||
#include <dfs_file.h>
|
#include <dfs_file.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
|
|
||||||
#ifdef RT_USING_POSIX_STDIO
|
#ifdef RT_USING_POSIX_STDIO
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <fcntl.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
@ -15,8 +15,7 @@
|
|||||||
|
|
||||||
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE)
|
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <fcntl.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
#ifdef DFS_USING_POSIX
|
#ifdef DFS_USING_POSIX
|
||||||
#include <dfs_file.h>
|
#include <dfs_file.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <fcntl.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
#endif /* DFS_USING_POSIX */
|
#endif /* DFS_USING_POSIX */
|
||||||
#ifdef RT_USING_MODULE
|
#ifdef RT_USING_MODULE
|
||||||
#include <dlmodule.h>
|
#include <dlmodule.h>
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
#include "msh.h"
|
#include "msh.h"
|
||||||
#include <dfs_file.h>
|
#include <dfs_file.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <fcntl.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
|
|
||||||
static int msh_readline(int fd, char *line_buf, int size)
|
static int msh_readline(int fd, char *line_buf, int size)
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
|
|
||||||
#ifdef DFS_USING_POSIX
|
#ifdef DFS_USING_POSIX
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <fcntl.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
#endif /* DFS_USING_POSIX */
|
#endif /* DFS_USING_POSIX */
|
||||||
|
|
||||||
/* finsh thread */
|
/* finsh thread */
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
#define __SYS_IOCTL_H__
|
#define __SYS_IOCTL_H__
|
||||||
|
|
||||||
#include <rtconfig.h>
|
#include <rtconfig.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/statfs.h>
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#ifdef RT_USING_POSIX_DELAY
|
||||||
|
#include <delay.h>
|
||||||
|
#endif
|
||||||
#ifdef RT_USING_RTC
|
#ifdef RT_USING_RTC
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#endif
|
#endif
|
||||||
@ -489,7 +493,6 @@ RTM_EXPORT(difftime);
|
|||||||
RTM_EXPORT(strftime);
|
RTM_EXPORT(strftime);
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_DELAY
|
#ifdef RT_USING_POSIX_DELAY
|
||||||
#include <delay.h>
|
|
||||||
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
||||||
{
|
{
|
||||||
sleep(rqtp->tv_sec);
|
sleep(rqtp->tv_sec);
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
* 2017/12/30 Bernard The first version.
|
* 2017/12/30 Bernard The first version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <rtthread.h>
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dfs_file.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/errno.h>
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include "aio.h"
|
#include "aio.h"
|
||||||
|
|
||||||
struct rt_workqueue* aio_queue = NULL;
|
struct rt_workqueue* aio_queue = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user