1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/fs/vfs
yinshengkai e4e355d164 fs: Set the poll return value according to the man manual
The man manual describes that poll only has EFAULT, EINTR, EINVAL, and ENOMEM return values.
If a file returns an error, the POLLERR event should be set and OK should be returned
https://man7.org/linux/man-pages/man2/poll.2.html

When using libuv to poll the socket, the socket poll returned an EBUSY error, causing libuv to abort.

The expected logic should be to return OK, allowing libuv to notify the event listener that the POLLERR event occurred.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-11 03:08:05 +08:00
..
CMakeLists.txt fs_lock: fix cmake build error 2024-10-05 13:43:02 +08:00
fs_chstat.c fs/chmod/fchmod/lchmod: only set permissions by mode_t and ignore other bits 2024-09-23 14:57:37 +08:00
fs_close.c fs_close: provide inotify call for close 2024-10-08 08:14:19 +08:00
fs_dir.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_dup.c fs: fix dup not compatible with fdcheck & fdsan 2024-09-30 16:53:51 +08:00
fs_dup2.c fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
fs_epoll.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_eventfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_fchstat.c fs/chmod/fchmod/lchmod: only set permissions by mode_t and ignore other bits 2024-09-23 14:57:37 +08:00
fs_fcntl.c fs_fcntl: fix the ret value not check error 2024-09-27 00:20:53 +08:00
fs_fstat.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_fstatfs.c Fix vfs/fs_fstatfs.c:60:21: warning: variable 'inode' set but not used 2024-09-17 12:01:53 +08:00
fs_fsync.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_ioctl.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_link.c fs: Implment link as a normal function instead macro 2023-02-04 18:31:23 -03:00
fs_lock.c fs_lock:Check the nwaiter when deleting a bucket 2024-10-05 21:09:46 +08:00
fs_lseek.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_mkdir.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_open.c fs_open:Adjust the definition of the open path 2024-10-08 22:21:33 +08:00
fs_poll.c fs: Set the poll return value according to the man manual 2024-10-11 03:08:05 +08:00
fs_pread.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_pseudofile.c fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
fs_pwrite.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_read.c file_read: fix a bogus cast 2024-09-17 20:10:31 +08:00
fs_readlink.c nuttx:Change fs strncpy to strlcpy to avoid losing'\0' 2021-12-30 18:06:00 +08:00
fs_rename.c fs/vfs: Avoid calling stat with oldrelpath twice in mountptrename 2024-10-09 12:38:12 +08:00
fs_rmdir.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_select.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_sendfile.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_signalfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_stat.c fs: fix wrong config for FS_SHMFS 2024-10-09 10:18:15 +08:00
fs_statfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_symlink.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_syncfs.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_timerfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_truncate.c fs_truncate: provide inotify call for truncate 2024-10-08 08:14:19 +08:00
fs_unlink.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_write.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
Kconfig fs: add backtrace to where file opens 2024-06-24 23:53:59 +08:00
lock.h fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Make.defs fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00