include/stdio.h: Add prototypes for popen() and pclose(). Actual implementation is in apps/system/popen()

This commit is contained in:
Gregory Nutt 2018-08-17 10:40:59 -06:00
parent a9b1940c95
commit 4dac881e24

View file

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