nuttx/fs
Xiang Xiao a0357b3a65 !include/fcntl.h: align open flags with Linux values
Align the NuttX open(2) flag constants with the Linux asm-generic
values so that the FUSE wire protocol and other cross-platform
interfaces work without conversion.

All code that used '(flags & O_RDONLY)' as a bitmask check (always 0
now that O_RDONLY=0) has been updated to use '(flags & O_ACCMODE)'
comparisons.

The NUTTX_O_* constants in include/nuttx/fs/hostfs.h are updated to
match, and the sim hostfs open flag mapping is fixed.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-07-03 10:33:47 +08:00
..
aio !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
binfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
cromfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
driver style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
event
fat !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
hostfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
inode !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
littlefs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
mmap !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
mnemofs fs/mnemofs: Add mnemofs version 1 support. 2026-05-19 10:29:11 +08:00
mount !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
mqueue include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
nxffs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
partition include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
procfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
romfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
rpmsgfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
semaphore
shm !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
smartfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
socket include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spiffs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
tmpfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
unionfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
userfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
v9fs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
vfs !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
zipfs
CMakeLists.txt
fs_heap.c
fs_heap.h
fs_initialize.c
Kconfig fs/Kconfig: add CONFIG_FS_PERMISSION option 2026-05-14 09:35:36 -03:00
Makefile