nuttx/arch/sim/src/sim
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
..
macos sim: adapt macos avfoundation backend for camera indexing and capture 2026-05-08 19:51:39 +08:00
posix !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
win !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
CMakeLists.txt arch/sim: replace macOS C++ constructor runtime hack with post-link patch 2026-05-19 07:08:55 -03:00
sim_ajoystick.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_backtrace.c arch/sim: walk frame-pointer chain for non-running tasks in up_backtrace 2026-06-04 09:54:08 +08:00
sim_blockdevice.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_camera.c sim: support camera framework multi-instance and dynamic mounting 2026-05-08 19:51:39 +08:00
sim_canchar.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_cansock.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_checkhostfstypes.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_checkstack.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_copyfullstate.c Fix Overlap Handling in sim_copyfullstate to Prevent Undefined Behavior 2025-01-06 08:19:04 +08:00
sim_cpuidlestack.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_cpuinfo.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_createstack.c arch: rename STACK_ALIGNMENT to STACKFRAME_ALIGN across all architectures 2026-01-22 15:37:24 +08:00
sim_decoder.c v4l2m2m: modify return value of g_bufsize to uint32_t 2024-12-25 17:06:48 +08:00
sim_deviceimage.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_doirq.c arch: replace all nxsched_suspend/resume_*** with nxsched_switch_context 2025-09-25 16:40:23 +08:00
sim_encoder.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_exit.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_fork.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_fork_arm.S arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_fork_arm64.S arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_fork_x86.S arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_fork_x86_64.S arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_framebuffer.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_gpiochip.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_gpiochip.h sim/gpiochip: add sim gpiochip for gpio autotest 2026-01-05 15:10:41 -03:00
sim_hcisocket.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_head.c arch/sim: add simulated time ratio support 2026-04-25 15:53:42 +08:00
sim_hostcan.h arch/sim/can: add loopback support for CAN character dev 2025-09-08 21:41:18 +08:00
sim_hosthcisocket.h arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_hostusrsock.h arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_hostvideo.h sim: support camera framework multi-instance and dynamic mounting 2026-05-08 19:51:39 +08:00
sim_idle.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_initialize.c sim/usrsock: move g_work_queue init before net_initialize 2026-01-16 09:39:02 +08:00
sim_initialstate.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_internal.h arch/sim: add simulated time ratio support 2026-04-25 15:53:42 +08:00
sim_keyboard.c sim/keyboard: Translate X11 key codes to NuttX codec 2026-05-24 16:01:31 -03:00
sim_lcd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_netdriver.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_offload.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_offload.h style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
sim_oneshot.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_openh264dec.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_openh264dec.h arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_registerdump.c arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
sim_releasestack.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_rpmsg_port_uart.c sim/rpmsg_uart: add sim rpmsg uart support 2025-01-23 10:41:38 +08:00
sim_rpmsg_virtio.c drivers/rptun and rpmsg_virtio: remove cmd initialize 2026-01-19 14:18:27 +08:00
sim_rptun.c sim/sim_rptun: modify sim_rptun to port new rptun framework 2026-01-19 14:18:27 +08:00
sim_rtc.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_saveusercontext.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_schedulesigaction.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_sectionheap.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_sigdeliver.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_smpsignal.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_stackframe.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_switchcontext.c style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
sim_tcbinfo.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_touchscreen.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_uart.c sim_uart: used wd timer to process transmit 2025-12-24 22:50:24 +08:00
sim_ummheap.c arch/sim: Add MM_FILL_ALLOCATIONS support to sim customized heap. 2026-05-27 01:40:18 +08:00
sim_usbdev.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_usbdev.h arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_usbhost.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_usbhost.h arch/sim: Optimize sim usbhost isoc endpoint transmission 2026-01-05 09:59:06 +08:00
sim_usestack.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_usrsock.c arch/sim: Fix OOB read/write in usrsock_ioctl_handler 2026-06-02 00:08:22 +08:00
sim_wifihost.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
sim_wifihost.h simwifi: Refactor the interfaces of simwifi and simnet 2026-01-14 09:22:54 +08:00
sim_x264encoder.c arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
sim_x264encoder.h arch/sim: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00