mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 09:15:09 +08:00
inclued/stdio.h: popen()/pclose() are not available in KERNEL mode because they depend on task_spawn() which is not available in KERNEL mode.
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ int remove(FAR const char *path);
|
||||
* apps/system/open for implementation.
|
||||
*/
|
||||
|
||||
#ifndef __KERNEL__
|
||||
#if !defined(CONFIG_BUILD_KERNEL) && !defined(__KERNEL__)
|
||||
FILE *popen(FAR const char *command, FAR const char *mode);
|
||||
int pclose(FILE *stream);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user