X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fpopen.c;h=4f9d6e9ec92a95b85507d2a42dc6187b1809898b;hb=90f770523f54b2e63a6ad46cba0149c9dc01ddd4;hp=50765daa3f2d899848e69fc78f66f309a96c8de9;hpb=f305467aad4659e92fff84be6c89d4767b6f99d4;p=musl 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) {