Only create gcc/configargs.h if gcc build directory is present
[official-gcc.git] / libio / stdio / popen.c
blob9f9f3f72f58ee88bd694603b20b861fef77f9f6e
1 #include "libioP.h"
2 #include "stdio.h"
3 #include <errno.h>
5 FILE *
6 popen(command, mode)
7 const char *command; const char *mode;
9 return _IO_popen(command, mode);
12 int
13 pclose(fp)
14 FILE *fp;
16 #if 0
17 /* Does not actually test that stream was created by popen(). Instead,
18 it depends on the filebuf::sys_close() virtual to Do The Right Thing. */
19 if (fp is not a proc_file)
20 return -1;
21 #endif
22 return _IO_fclose(fp);