Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
92c62a8f
R
rt-thread
项目概览
2345VOR
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
92c62a8f
编写于
9月 11, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
标准化<poll.h> 弱化<dfs_poll.h>
上级
ee55c58c
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
45 addition
and
36 deletion
+45
-36
components/dfs/SConscript
components/dfs/SConscript
+1
-1
components/dfs/include/dfs_poll.h
components/dfs/include/dfs_poll.h
+1
-32
components/dfs/src/dfs_poll.c
components/dfs/src/dfs_poll.c
+0
-0
components/dfs/src/dfs_select.c
components/dfs/src/dfs_select.c
+0
-0
components/libc/compilers/common/poll.h
components/libc/compilers/common/poll.h
+40
-0
components/libc/compilers/common/sys/time.h
components/libc/compilers/common/sys/time.h
+3
-3
未找到文件。
components/dfs/SConscript
浏览文件 @
92c62a8f
...
@@ -11,7 +11,7 @@ cwd = GetCurrentDir()
...
@@ -11,7 +11,7 @@ cwd = GetCurrentDir()
CPPPATH
=
[
cwd
+
"/include"
]
CPPPATH
=
[
cwd
+
"/include"
]
if
GetDepend
(
'RT_USING_POSIX'
):
if
GetDepend
(
'RT_USING_POSIX'
):
src
+=
[
'src/
poll.c'
,
'src/
select.c'
]
src
+=
[
'src/
dfs_poll.c'
,
'src/dfs_
select.c'
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
],
CPPPATH
=
CPPPATH
)
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
],
CPPPATH
=
CPPPATH
)
...
...
components/dfs/include/dfs_poll.h
浏览文件 @
92c62a8f
...
@@ -10,37 +10,6 @@
...
@@ -10,37 +10,6 @@
#ifndef DFS_POLL_H__
#ifndef DFS_POLL_H__
#define DFS_POLL_H__
#define DFS_POLL_H__
#include <rtthread.h>
#include <poll.h>
#ifdef RT_USING_POSIX
#include <sys/time.h>
/* for struct timeval */
#if !defined(POLLIN) && !defined(POLLOUT)
#define POLLIN (0x01)
#define POLLRDNORM (0x01)
#define POLLRDBAND (0x01)
#define POLLPRI (0x01)
#define POLLOUT (0x02)
#define POLLWRNORM (0x02)
#define POLLWRBAND (0x02)
#define POLLERR (0x04)
#define POLLHUP (0x08)
#define POLLNVAL (0x10)
typedef
unsigned
int
nfds_t
;
struct
pollfd
{
int
fd
;
short
events
;
short
revents
;
};
#endif
/* !defined(POLLIN) && !defined(POLLOUT) */
#define POLLMASK_DEFAULT (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
int
poll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
int
timeout
);
#endif
/* RT_USING_POSIX */
#endif
/* DFS_POLL_H__ */
#endif
/* DFS_POLL_H__ */
components/dfs/src/poll.c
→
components/dfs/src/
dfs_
poll.c
浏览文件 @
92c62a8f
文件已移动
components/dfs/src/select.c
→
components/dfs/src/
dfs_
select.c
浏览文件 @
92c62a8f
文件已移动
components/libc/compilers/common/poll.h
0 → 100644
浏览文件 @
92c62a8f
#ifndef __POLL_H__
#define __POLL_H__
#ifdef __cplusplus
extern
"C"
{
#endif
#if !defined(POLLIN) && !defined(POLLOUT)
#define POLLIN (0x01)
#define POLLRDNORM (0x01)
#define POLLRDBAND (0x01)
#define POLLPRI (0x01)
#define POLLOUT (0x02)
#define POLLWRNORM (0x02)
#define POLLWRBAND (0x02)
#define POLLERR (0x04)
#define POLLHUP (0x08)
#define POLLNVAL (0x10)
typedef
unsigned
int
nfds_t
;
struct
pollfd
{
int
fd
;
short
events
;
short
revents
;
};
#endif
/* !defined(POLLIN) && !defined(POLLOUT) */
#define POLLMASK_DEFAULT (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
int
poll
(
struct
pollfd
*
fds
,
nfds_t
nfds
,
int
timeout
);
#ifdef __cplusplus
}
#endif
#endif
/* __POLL_H__ */
components/libc/compilers/common/sys/time.h
浏览文件 @
92c62a8f
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
* 2020-09-07 Meco Man combine gcc armcc iccarm
* 2020-09-07 Meco Man combine gcc armcc iccarm
* 2021-02-12 Meco Man move all definitions located in <clock_time.h> to this file
* 2021-02-12 Meco Man move all definitions located in <clock_time.h> to this file
*/
*/
#ifndef _
SYS_TIME_H
_
#ifndef _
_SYS_TIME_H_
_
#define _
SYS_TIME_H
_
#define _
_SYS_TIME_H_
_
#include <rtconfig.h>
#include <rtconfig.h>
#include <rtdef.h>
#include <rtdef.h>
...
@@ -73,7 +73,7 @@ struct timespec {
...
@@ -73,7 +73,7 @@ struct timespec {
};
};
#endif
#endif
/*
posix
clock and timer */
/*
POSIX
clock and timer */
#define MILLISECOND_PER_SECOND 1000UL
#define MILLISECOND_PER_SECOND 1000UL
#define MICROSECOND_PER_SECOND 1000000UL
#define MICROSECOND_PER_SECOND 1000000UL
#define NANOSECOND_PER_SECOND 1000000000UL
#define NANOSECOND_PER_SECOND 1000000000UL
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录