nuttx-apps/system/popen
cuiziwei 740fda9630 system/popen: support no-shell mode via posix_spawnp
When NSH_LIBRARY is not available, dpopen()/popen() can still execute
commands by splitting the command string by whitespace and calling
posix_spawnp() directly.  Shell syntax (pipes, redirects, globbing)
is not supported in this mode.

Add CONFIG_SYSTEM_POPEN_MAXARGUMENTS (default 7) to control the
argv array size for the no-shell path.

Remove the hard dependency on NSH_LIBRARY from SYSTEM_POPEN so the
feature can be used in minimal configurations without a shell.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-06-02 23:35:28 +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: add dpopen/dpclose fd-based interface 2026-06-02 23:35:28 +08:00