nuttx/libs/libc/stdio
Xiang Xiao 9e141acab3 !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-06-30 13:43:44 +08:00
..
CMakeLists.txt libc: Move stream printf/scanf from libc/stdio to libc/stream 2025-06-18 09:24:38 +08:00
Kconfig !libc/stream: remove CONFIG_LIBC_LONG_LONG and always support long long 2026-05-19 16:21:28 +08:00
lib_asprintf.c libc: add nx_strdup() & nx_strndup() support 2024-10-15 01:16:48 +08:00
lib_clearerr.c
lib_dprintf.c
lib_fclose.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_feof.c
lib_ferror.c
lib_fflush.c
lib_fgetc.c
lib_fgetpos.c
lib_fgets.c
lib_fgetwc.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_fileno.c
lib_fmemopen.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_fopen.c include/fcntl.h: remove O_RDOK/O_WROK aliases 2026-06-28 09:10:11 -03:00
lib_fopencookie.c
lib_fprintf.c
lib_fputc.c
lib_fputs.c
lib_fputwc.c
lib_fputws.c
lib_fread.c
lib_freopen.c freopen: fix fdsan report error 2026-01-15 22:58:17 +08:00
lib_fscanf.c
lib_fseek.c
lib_fseeko.c
lib_fsetpos.c fsetpos: makes the fsetpos function comply with POSIX standard 2026-01-15 02:22:46 +08:00
lib_ftell.c
lib_ftello.c
lib_fwrite.c
lib_getc.c
lib_getchar.c
lib_getdelim.c
lib_gets.c
lib_gets_s.c
lib_getwc.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_libdgets.c
lib_libfflush.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_libfgets.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_libfilelock.c
lib_libflushall.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_libfread_unlocked.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_libfwrite.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_libgetstreams.c
lib_open_memstream.c
lib_perror.c
lib_printf.c
lib_putc.c
lib_putchar.c
lib_puts.c libc/puts: newline was omitted for empty string 2024-12-01 17:58:06 +08:00
lib_putwc.c
lib_putwchar.c
lib_rdflush_unlocked.c
lib_remove.c
lib_renameat.c Use lib_get_pathbuffer instead of stack variables 2024-11-12 17:21:42 +08:00
lib_rewind.c
lib_scanf.c
lib_setbuf.c
lib_setbuffer.c
lib_setvbuf.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_snprintf.c
lib_sprintf.c
lib_sscanf.c
lib_tempnam.c
lib_tmpfile.c
lib_tmpnam.c
lib_ungetc.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_ungetwc.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
lib_vasprintf.c libc: add nx_strdup() & nx_strndup() support 2024-10-15 01:16:48 +08:00
lib_vdprintf.c
lib_vfprintf.c comments: update text typo pre-empted to preempted 2025-05-12 15:01:37 +08:00
lib_vfscanf.c comments: update text typo pre-empted to preempted 2025-05-12 15:01:37 +08:00
lib_vprintf.c
lib_vscanf.c
lib_vsnprintf.c
lib_vsprintf.c
lib_vsscanf.c stream_getc: use lib_stream_eof instead of EOF 2024-11-26 10:25:36 +08:00
lib_wrflush_unlocked.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
Make.defs libc: Move stream printf/scanf from libc/stdio to libc/stream 2025-06-18 09:24:38 +08:00