diff options
| author | Meco Man <[email protected]> | 2021-09-13 13:07:02 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-09-13 13:08:03 -0400 |
| commit | dc5ee9ade72c5ca8049ee464bde261def0b8f5fc (patch) | |
| tree | fbd06f1db5480d38d6e75f52b104ae33fe65b7d3 /components/libc | |
| parent | 160d448660f183cbc9d1a9936d3dada536ac172b (diff) | |
[libc标准化] 将dfs_select.h功能转移到sys/select.h
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/common/none-gcc/sys/types.h | 1 | ||||
| -rw-r--r-- | components/libc/compilers/common/sys/select.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/compilers/common/none-gcc/sys/types.h b/components/libc/compilers/common/none-gcc/sys/types.h index a7c566f643..2c4c12055f 100644 --- a/components/libc/compilers/common/none-gcc/sys/types.h +++ b/components/libc/compilers/common/none-gcc/sys/types.h @@ -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. */ diff --git a/components/libc/compilers/common/sys/select.h b/components/libc/compilers/common/sys/select.h index db42b6ebcc..08420b0d10 100644 --- a/components/libc/compilers/common/sys/select.h +++ b/components/libc/compilers/common/sys/select.h @@ -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__ */ |
