Merge pull request #5092 from mysterywolf/removeselect

[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
This commit is contained in:
Bernard Xiong 2021-09-27 17:54:28 +08:00 committed by GitHub
commit 7b6aff0696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 23 deletions

View File

@ -12,7 +12,7 @@
#include <dfs_posix.h>
#include <poll.h>
#include <dfs_select.h>
#include <sys/select.h>
#ifdef RT_USING_POSIX

View File

@ -14,7 +14,7 @@
#include <lwp_syscall.h>
#include <poll.h>
#include <dfs_select.h>
#include <sys/select.h>
#if (defined(RT_USING_SAL) && defined(SAL_USING_POSIX))
#include <sys/socket.h>

View File

@ -26,9 +26,6 @@ if GetDepend('SAL_USING_POSIX'):
CPPPATH += [cwd + '/include/dfs_net']
src += Glob('socket/net_sockets.c')
src += Glob('dfs_net/*.c')
if not GetDepend('HAVE_SYS_SELECT_H'):
CPPPATH += [cwd + '/include/dfs_net/sys_select']
if not GetDepend('HAVE_SYS_SOCKET_H'):
CPPPATH += [cwd + '/include/socket/sys_socket']

View File

@ -1,16 +0,0 @@
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2015-05-02 Bernard First version
*/
#ifndef SELECT_H__
#define SELECT_H__
#include <dfs_select.h>
#endif

View File

@ -16,7 +16,7 @@
#if defined (RT_USING_POSIX)
#include <dfs_posix.h>
#include <dfs_select.h>
#include <sys/select.h>
#if defined (RT_USING_POSIX_TERMIOS)
#include <termios.h>
#else

View File

@ -48,7 +48,7 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
#ifdef RT_USING_POSIX
#include <dfs_posix.h>
#include <poll.h>
#include <dfs_select.h>
#include <sys/select.h>
#define RTLINK01_PATH "/dev/rtlink01"
int fd = -1;