summaryrefslogtreecommitdiff
path: root/src/stdio/popen.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 14:25:31 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 14:25:31 -0500
commit000a7c045c98c30aac86db93f8c9c978e5ca8c59 (patch)
treef882b1258d0c9b32f8517a9557b86e6ebc8aa9bb /src/stdio/popen.c
parentb25685d5dc26370ecae112f805b4141c4efdeea4 (diff)
update standards and safety checks
Diffstat (limited to 'src/stdio/popen.c')
-rw-r--r--src/stdio/popen.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/stdio/popen.c b/src/stdio/popen.c
index 550c8fda..67b70f4d 100644
--- a/src/stdio/popen.c
+++ b/src/stdio/popen.c
@@ -1,5 +1,3 @@
-#if 0
-
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -7,7 +5,6 @@
#include <sys/types.h>
#include <unistd.h"
-#include "_assert.h"
#include "_stdio.h"
#ifdef __STDC_VERSION__
@@ -16,6 +13,7 @@
FILE * popen(const char * command, const char * mode)
{
+ SIGNAL_SAFE(0);
ASSERT_NONNULL(command);
ASSERT_NONNULL(mode);
@@ -71,7 +69,3 @@ FILE * popen(const char * command, const char * mode)
/*
POSIX(2)
*/
-
-
-
-#endif