提交 dc5ee9ad 编写于 作者: mysterywolf's avatar mysterywolf

[libc标准化] 将dfs_select.h功能转移到sys/select.h

上级 160d4486
......@@ -12,15 +12,4 @@
#include <sys/select.h>
#ifdef __cplusplus
extern "C" {
#endif
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
#ifdef __cplusplus
}
#endif
#endif
......@@ -13,6 +13,7 @@
#include <stdint.h>
#include <stddef.h>
#include <time.h>
typedef int32_t clockid_t;
typedef int32_t key_t; /* Used for interprocess communication. */
......
......@@ -12,6 +12,7 @@
#define __SYS_SELECT_H__
#include <rtconfig.h>
#include <sys/time.h>
#include <sys/types.h>
#ifndef FD_SETSIZE
......@@ -46,4 +47,6 @@ typedef struct _types_fd_set {
#define FD_ZERO(p) memset((void*)(p), 0, sizeof(*(p)))
#endif /* _SYS_TYPES_FD_SET */
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
#endif /* __SYS_SELECT_H__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册