projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
changes to kernel sigaction struct handling in preparation for mips port
[musl]
/
src
/
stdio
/
popen.c
diff --git
a/src/stdio/popen.c
b/src/stdio/popen.c
index
50765da
..
4f9d6e9
100644
(file)
--- a/
src/stdio/popen.c
+++ b/
src/stdio/popen.c
@@
-1,4
+1,11
@@
#include "stdio_impl.h"
+#include "syscall.h"
+
+static inline void nc_close(int fd)
+{
+ __syscall(SYS_close, fd);
+}
+#define close(x) nc_close(x)
FILE *popen(const char *cmd, const char *mode)
{