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:
Gregory Nutt 2018-08-17 16:06:01 -06:00
parent 5a23ca37b1
commit 0e5b02552a

View File

@ -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