nuttx/include/sys
Bowen Wang 2f9c082f8f fs_epoll: serveral epoll issues fix
1. fs_epoll: try again when epoll_teardown() return 0
when poll_notify() called larger than twice when epoll_wait() blocked
in the eph->sem, the semcount will be larger than 1 when epoll_wait()
unblocked and will return 0 directly at the next epoll_wait.
So retry to wait the eph->sem again when epoll_teardown return 0.

2. fs_epoll: poll_setup the fd again even this fd got non-expected event
Some poll implementations need call poll_setup again when their internal
states changed (e.g., local socket), so should add the fd to the epoll
teardown list and poll_setup again at the next epoll_wait even this fd
got the user non-expected event.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2023-11-02 00:44:52 +08:00
..
boardctl.h usbadb: add usbadb boardctl 2023-08-07 11:23:36 +08:00
custom_file.h
endian.h endian: Make all endian related functions use the expicit type 2023-10-20 09:46:21 +08:00
epoll.h sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break 2023-01-27 15:30:55 -03:00
eventfd.h
file.h include: Fix nxstyle errors 2023-05-04 02:07:01 +08:00
ioctl.h
ipc.h
mman.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
mount.h fs/ioctl: add BIOC_BLKGETSIZE cmd to get block sector numbers 2023-08-19 01:43:59 +08:00
msg.h
param.h include: Add nitems() definition to sys/param.h 2023-02-09 20:05:44 +08:00
poll.h fs_epoll: serveral epoll issues fix 2023-11-02 00:44:52 +08:00
prctl.h
queue.h sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS 2023-01-30 11:26:04 +08:00
random.h
resource.h getrlimit: add RLIMIT_MEMLOCK define 2023-07-31 07:50:10 -07:00
select.h include/sys: Include string.h to silence implicit memset declration. 2023-06-27 10:36:13 +03:00
sendfile.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
shm.h
signalfd.h
socket.h Support gcc FORTIFY_SOURCE features for nuttx libc 2023-06-22 20:38:45 +08:00
sockio.h
stat.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
statfs.h fs:support zipfs,can mount zipfile 2023-09-27 01:06:04 +08:00
statvfs.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
syscall_lookup.h stdio: Merge fs_fdopen into fdopen to simplify the code logi 2023-10-17 13:34:00 +08:00
syscall.h
sysinfo.h sys/sysinfo: align sysinfo define with linux 2023-02-09 20:11:55 +08:00
sysmacros.h
time.h sched: add support for adjtime() interface 2023-04-25 14:37:50 -03:00
timerfd.h
times.h
tree.h
types.h sys/types: supporting 32-bit IDs for gid_t/uid_t 2023-10-07 18:21:21 +08:00
uio.h fs: Undefine CONFIG_FS_LARGEFILE if compiler doesn't support long long 2023-03-02 09:37:58 +01:00
un.h
utsname.h utsname: Expand the buffer for version information slightly 2023-02-14 22:35:43 +08:00
vfs.h
videoio.h
wait.h