[dfs][posix] Extend Smart POSIX filesystem and syscall compatibility - #11731
[dfs][posix] Extend Smart POSIX filesystem and syscall compatibility#11731BernardXiong wants to merge 11 commits into
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
|
移除 QEMU BSP 对 libc 和 musl libc 的强制选择,将 musl 配置限制在 Smart 且 libc 已启用的场景。\n让 musl SCons 构建遵循 RT_USING_MUSLLIBC,避免普通工具链误用 musl 头文件。
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: components_libcReviewers: @GorrayLi @mysterywolf Changed Files (Click to expand)
🏷️ Tag: components_lwpReviewers: @xu18838022837 Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-08-22 15:51 CST)
📝 Review Instructions
|
Apply the repository clang-format style to the DFS v2 files changed by this PR.
Keep the tracked QEMU virt64 baselines on the standard kernel configuration. Smart test jobs continue to add rtsmart.cfg, so standard and Smart toolchains no longer share incompatible libc settings.
Only collect MIDR fields when building the AArch64 procfs implementation. This avoids unused-but-set warnings promoted to errors on ARM32 and RISC-V builds.
Compile the AArch64-only MIDR helper only for AArch64 targets so Smart ARM32 builds do not fail on an unused static function.
Declare the procfs uptime loop index only when RT_USING_SMP is enabled, preventing unused-variable errors in non-SMP Smart builds.
为什么提交这份PR (why to submit this PR)
RT-Smart user-space applications require more complete POSIX filesystem, procfs, locking, and syscall behavior. DFS v2 still lacks several interfaces and compatibility details required by Linux-compatible user-space components.
This PR extends Smart POSIX compatibility and updates the QEMU Smart BSP configurations used to build and validate it.
你的解决方案是什么 (what is your solution)
fchmod()support to DFS v2, including lock cleanup on descriptor close and replacement.The branch is based on the current upstream
masterand excludes the AF_UNIX implementation already merged by upstream.请提供验证的bsp和config (provide the config and bsp)
bsp/qemu-virt64-aarch64,bsp/qemu-virt64-riscvRT_USING_SMART,RT_USING_LIBC,RT_USING_MUSLLIBC,RT_USING_DFS_V2,RT_USING_DFS_PROCFS,RT_USING_DFS_TMPFS,RT_USING_POSIX_EPOLL,RT_USING_SAL,SAL_USING_POSIXscons --pyconfig-silentpassed for qemu-vexpress-a9, qemu-virt64-aarch64, and qemu-virt64-riscv; full compilation passed with arm-none-eabi, aarch64-linux-musleabi, and riscv64-linux-musleabi toolchains. The updatedpkgs_testrun is 32547494830 and passed.当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up