X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Fpopen.c;h=4f9d6e9ec92a95b85507d2a42dc6187b1809898b;hp=50765daa3f2d899848e69fc78f66f309a96c8de9;hb=9c21f4342c787e04a9e31ad8a1d87a65c89968ca;hpb=f305467aad4659e92fff84be6c89d4767b6f99d4 diff --git a/src/stdio/popen.c b/src/stdio/popen.c index 50765daa..4f9d6e9e 100644 --- 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) {