nuttx-apps/system/popen
Nightt fa2dd70386 system/popen: Avoid copying FILE
Use fopencookie() to attach the popen fd and shell pid to the returned FILE stream instead of copying FILE into the popen container.

Keep the upstream dpopen()/dpclose() implementation as the process and descriptor backend, and make pclose() close the cookie-backed stream directly.

Fixes #2937.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
2026-06-09 19:35:15 +08:00
..
CMakeLists.txt system/popen: add dpopen/dpclose fd-based interface 2026-06-02 23:35:28 +08:00
dpopen.c system/popen: support no-shell mode via posix_spawnp 2026-06-02 23:35:28 +08:00
Kconfig system/popen: support no-shell mode via posix_spawnp 2026-06-02 23:35:28 +08:00
Make.defs system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile system/popen: add dpopen/dpclose fd-based interface 2026-06-02 23:35:28 +08:00
popen.c system/popen: Avoid copying FILE 2026-06-09 19:35:15 +08:00