diff options
author | Roland McGrath <roland@gnu.org> | 1995-12-06 00:14:32 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-12-06 00:14:32 +0000 |
commit | 196980f5117c8d38f10d64bf67eeb0924651675f (patch) | |
tree | 4e2a731a1f766ee63e1038d7f38bee3db8c78a2c /libio/pclose.c | |
parent | 77a58cad3fa0a286bd2581187a2463a762d711ba (diff) | |
download | glibc-196980f5117c8d38f10d64bf67eeb0924651675f.zip glibc-196980f5117c8d38f10d64bf67eeb0924651675f.tar.gz glibc-196980f5117c8d38f10d64bf67eeb0924651675f.tar.bz2 |
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c
Diffstat (limited to 'libio/pclose.c')
-rw-r--r-- | libio/pclose.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libio/pclose.c b/libio/pclose.c new file mode 100644 index 0000000..e5d7c0c --- /dev/null +++ b/libio/pclose.c @@ -0,0 +1,16 @@ +#include "libioP.h" +#include "stdio.h" +#include <errno.h> + +int +pclose(fp) + FILE *fp; +{ +#if 0 + /* Does not actually test that stream was created by popen(). Instead, + it depends on the filebuf::sys_close() virtual to Do The Right Thing. */ + if (fp is not a proc_file) + return -1; +#endif + return _IO_fclose(fp); +} |