mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c
This commit is contained in:
16
libio/pclose.c
Normal file
16
libio/pclose.c
Normal file
@ -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);
|
||||
}
|
Reference in New Issue
Block a user