nuttx/fs/nxffs
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
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
nxffs.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
nxffs_block.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_blockstats.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_cache.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_dirent.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_dump.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_initialize.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_inode.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_ioctl.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_open.c !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
nxffs_pack.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_read.c !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
nxffs_reformat.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_stat.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_truncate.c !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00
nxffs_unlink.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs_util.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
nxffs_write.c !include/fcntl.h: align open flags with Linux values 2026-07-03 10:33:47 +08:00