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,7 +1,8 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* include/stdio.h
|
* 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>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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);
|
FAR char *tempnam(FAR const char *dir, FAR const char *pfx);
|
||||||
int remove(FAR const char *path);
|
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
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user