diff options
Diffstat (limited to 'src/stdio/pclose.c')
| -rw-r--r-- | src/stdio/pclose.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/stdio/pclose.c b/src/stdio/pclose.c deleted file mode 100644 index b39cfa15..00000000 --- a/src/stdio/pclose.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> -#include <sys/types.h> -#include <sys/wait.h> -#include "_stdio.h" - -int pclose(FILE * stream) -{ - int status; - pid_t child = stream->pipe_pid; - SIGNAL_SAFE(0); - - if (child == 0) { - /* undefined behavior */ - } - - fclose(stream); - - waitpid(child, &status, 0); - return status; -} - -/* -POSIX(2) -*/ |
