mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
include/unistd: add dpopen/dpclose declarations
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>
This commit is contained in:
parent
34e0663e2d
commit
f106e07f00
1 changed files with 9 additions and 0 deletions
|
|
@ -397,6 +397,15 @@ FAR void *sbrk(intptr_t incr);
|
|||
int pipe(int pipefd[2]);
|
||||
int pipe2(int pipefd[2], int flags);
|
||||
|
||||
/* Pipe-based process I/O. These are not actually implemented in the OS.
|
||||
* See apps/system/popen for implementation.
|
||||
*/
|
||||
|
||||
#ifndef __KERNEL__
|
||||
int dpopen(FAR const char *, int, FAR pid_t *);
|
||||
int dpclose(int, pid_t);
|
||||
#endif
|
||||
|
||||
/* Schedule an alarm */
|
||||
|
||||
unsigned int alarm(unsigned int seconds);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue