Add the system call epoll (#7893)

This commit is contained in:
zmq810150896
2023-08-01 17:15:41 +08:00
committed by GitHub
parent a98b11747f
commit 3f0a5e76bf
4 changed files with 858 additions and 0 deletions
+7
View File
@@ -31,6 +31,13 @@ if RT_USING_POSIX_FS
select RT_USING_POSIX_POLL
default n
if RT_USING_SMART
config RT_USING_POSIX_EPOLL
bool "Enable I/O Multiplexing epoll <sys/epoll.h>"
select RT_USING_POSIX_POLL
default n
endif
config RT_USING_POSIX_SOCKET
bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
select RT_USING_POSIX_SELECT
+14
View File
@@ -0,0 +1,14 @@
# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]
if GetDepend('RT_USING_POSIX_EPOLL'):
src += ['epoll.c']
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
File diff suppressed because it is too large Load Diff