Skip to content

include/unistd: add dpopen/dpclose declarations#19008

Merged
lupyuen merged 1 commit into
apache:masterfrom
cuiziweizw:dpopen
Jun 1, 2026
Merged

include/unistd: add dpopen/dpclose declarations#19008
lupyuen merged 1 commit into
apache:masterfrom
cuiziweizw:dpopen

Conversation

@cuiziweizw
Copy link
Copy Markdown
Contributor

@cuiziweizw cuiziweizw commented Jun 1, 2026

Summary

Add declarations for dpopen() and dpclose() to unistd.h. These are
the descriptor-based counterparts of popen()/pclose() declared in
stdio.h. The implementation lives in apps/system/popen/dpopen.c.

This is the header-side change. The implementation, no-shell mode support,
and tests are in the companion apps PR: apache/nuttx-apps#3515

Impact

Header-only change; declares two new public interfaces.

Testing

Built and tested together with the apps-side changes (see companion PR).

Add declarations for dpopen() and dpclose() to unistd.h.  These are
the descriptor-based counterparts of popen()/pclose() declared in
stdio.h.  The implementation lives in apps/system/popen/dpopen.c.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
@github-actions github-actions Bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Jun 1, 2026
@lupyuen lupyuen merged commit f106e07 into apache:master Jun 1, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants