nuttx-mirror/fs
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
..
aio vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
cromfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
driver fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
event fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
fat fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
hostfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
inode fs/inode: using read-lock to protect inode_find 2024-10-10 16:42:15 +08:00
littlefs Fix to compile parameters not taking effect When cmake version is greater than 3.18 2024-10-09 18:12:50 +08:00
mmap fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mnemofs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mount zipfs:zipfs not need mtd drivers 2024-10-08 19:55:09 +08:00
mqueue mq: correct inode release in mq_inode_release() 2024-10-09 10:17:24 +08:00
nfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
notify fs_close: provide inotify call for close 2024-10-08 08:14:19 +08:00
nxffs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
partition fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
procfs Rename group_argvstr to nxtask_argvstr 2024-10-10 23:13:37 +08:00
romfs Fix to compile parameters not taking effect When cmake version is greater than 3.18 2024-10-09 18:12:50 +08:00
rpmsgfs nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
semaphore fs/semaphore: fix a minor issue with goto label 2024-10-08 23:21:54 +08:00
shm fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
smartfs smartfs: return -ENOTTY if ioctl command is not found 2024-10-05 20:52:31 +08:00
socket fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
spiffs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
tmpfs fs/ioctl:add FIOC_XIPBASE to get file xip address 2024-09-30 18:25:46 +08:00
unionfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
userfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
v9fs virtio_9p.c: fix compile error in OpenAMP upgrade feature reflow to dev 2024-10-09 23:32:58 +08:00
vfs fs: Set the poll return value according to the man manual 2024-10-11 03:08:05 +08:00
zipfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
CMakeLists.txt fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_heap.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_heap.h fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_initialize.c fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
Kconfig fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
Makefile fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00