nuttx/fs
Fotis Panagiotopoulos 880d78f903 sendfile: Fixed behavior of sendfile when count is set to zero.
If sendfile() is called with a zero count, it will nevertheless
try to send the data. This is mostly meaningless, it causes
waste of resources, and in some cases delays.

This commit adds special handling for this case, allowing
sendfile to return immediately zero. The new behavior is
in line with the Linux variant of sendfile.
2023-06-22 16:10:58 +08:00
..
aio sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
binfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
cromfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
driver semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fat fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
hostfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
inode libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
littlefs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
mmap semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
mount fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
mqueue fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
nfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
nxffs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
partition fs/partition: register partition device if caller doesn't provide handler 2023-05-27 20:23:17 -03:00
procfs sched: Remove the unnecessary cast from pid_t to int 2023-06-19 11:37:34 +03:00
romfs fs_romfs: avoid the romfs ERROR log when enable FDSAN 2023-06-17 19:31:17 +08:00
rpmsgfs rpmsg: support the fdsan feature for rpmsg dev/mtd/blk 2023-06-17 19:34:39 +08:00
semaphore sem_unlink: return ENOENT when the named semaphore does not exist. 2023-01-09 22:46:30 +08:00
shm fs/vfs: Zero file struct field with memset 2023-05-08 17:56:07 +03:00
smartfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
socket vfs/fs_truncate.c:Add socket judgment to return correct errno. 2023-01-17 10:29:41 +08:00
spiffs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
tmpfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
unionfs fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
userfs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
vfs sendfile: Fixed behavior of sendfile when count is set to zero. 2023-06-22 16:10:58 +08:00
fs_initialize.c fs: Flush the file system cache in BOARDIOC_POWEROFF too 2023-04-21 20:37:59 +03:00
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Makefile Minor style clean up 2023-01-28 19:53:20 +02:00