使用poll.h代替dfs_poll.h

This commit is contained in:
Meco Man 2021-09-11 11:48:14 -04:00
parent 92c62a8fab
commit c360688714
13 changed files with 21 additions and 12 deletions

View File

@ -17,7 +17,7 @@
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#ifdef RT_USING_POSIX

View File

@ -11,7 +11,7 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#include <dfs_select.h>
#ifdef RT_USING_POSIX

View File

@ -38,7 +38,7 @@
#ifdef RT_USING_POSIX
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#include <sys/ioctl.h>
#ifdef RT_USING_POSIX_TERMIOS

View File

@ -18,7 +18,7 @@
#ifdef RT_USING_POSIX
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#include <sys/ioctl.h>
#ifdef getc

View File

@ -16,7 +16,7 @@
#ifdef RT_USING_POSIX
#include <dfs_file.h>
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#include <sys/ioctl.h>
static int pipe_fops_open(struct dfs_fd *fd)

View File

@ -1,3 +1,12 @@
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-09-11 Meco Man First version
*/
#ifndef __POLL_H__
#define __POLL_H__

View File

@ -13,7 +13,7 @@
#include <lwp_mem.h>
#include <lwp_syscall.h>
#include <dfs_poll.h>
#include <poll.h>
#include <dfs_select.h>
#if (defined(RT_USING_SAL) && defined(SAL_USING_POSIX))

View File

@ -19,7 +19,7 @@
#include <at_device.h>
#ifdef SAL_USING_POSIX
#include <dfs_poll.h>
#include <poll.h>
#endif
#include <arpa/inet.h>

View File

@ -19,7 +19,7 @@
#include <netdev.h>
#ifdef SAL_USING_POSIX
#include <dfs_poll.h>
#include <poll.h>
#endif
#ifdef SAL_USING_AT

View File

@ -17,7 +17,7 @@
#include <lwip/netif.h>
#ifdef SAL_USING_POSIX
#include <dfs_poll.h>
#include <poll.h>
#endif
#include <sal.h>

View File

@ -11,7 +11,7 @@
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_poll.h>
#include <poll.h>
#include <dfs_net.h>
#include <sys/errno.h>
#include <sys/socket.h>

View File

@ -21,7 +21,7 @@
#ifdef RT_USING_POSIX
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
int rtlink_fops_open(struct dfs_fd *fd)
{

View File

@ -47,7 +47,7 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
#ifdef RT_USING_POSIX
#include <dfs_posix.h>
#include <dfs_poll.h>
#include <poll.h>
#include <dfs_select.h>
#define RTLINK01_PATH "/dev/rtlink01"