summaryrefslogtreecommitdiff
path: root/src/stdio/pclose.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 17:07:29 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 17:07:29 -0500
commit40e2986d3d196855bba3836a60a482fd3a0f73a8 (patch)
tree6ce03ea7ddffb7f0001bff12706b21f9bce3c67e /src/stdio/pclose.c
parent421cc9cd7295e5b92cf167a41bd8f55a3b842728 (diff)
remove posix and xopen specific functions
Diffstat (limited to 'src/stdio/pclose.c')
-rw-r--r--src/stdio/pclose.c24
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)
-*/