mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
include/stdio.h: Add prototypes for popen() and pclose(). Actual implementation is in apps/system/popen()
This commit is contained in:
parent
a9b1940c95
commit
4dac881e24
1 changed files with 11 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
/****************************************************************************
|
||||
* include/stdio.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011, 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011, 2013-2015, 2018 Gregory Nutt. All rights
|
||||
* reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -206,6 +207,15 @@ FAR char *tmpnam(FAR char *s);
|
|||
FAR char *tempnam(FAR const char *dir, FAR const char *pfx);
|
||||
int remove(FAR const char *path);
|
||||
|
||||
/* Shell operations. These are not actually implemented in the OS. See
|
||||
* apps/system/open for implementation.
|
||||
*/
|
||||
|
||||
#ifndef __KERNEL__
|
||||
FILE *popen(FAR const char *command, FAR const char *mode);
|
||||
int pclose(FILE *stream);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue