diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-15 15:35:24 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-15 15:35:24 +0000 |
commit | 701cea96c43d185ebe433df9ecca39ecc9742ef3 (patch) | |
tree | b9b0dcc699f5319f0055d5d29aded690ff37258b /include | |
parent | 7cc082e2370da69c8783812c251190d316ce82b3 (diff) | |
download | busybox-w32-701cea96c43d185ebe433df9ecca39ecc9742ef3.tar.gz busybox-w32-701cea96c43d185ebe433df9ecca39ecc9742ef3.tar.bz2 busybox-w32-701cea96c43d185ebe433df9ecca39ecc9742ef3.zip |
win32: tidy up popen implementation
Make mingw_popen_fd sufficiently general that it can be used to
implement the other two popen routines.
mingw_popen now just creates a command line and passes it to
mingw_popen_fd. The one call to mingw_popen2 has been replaced
by a call to mingw_popen_fd.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index e56e8f03d..386540b37 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -111,7 +111,6 @@ int mingw_rename(const char*, const char*); | |||
111 | 111 | ||
112 | FILE *mingw_popen(const char *cmd, const char *mode); | 112 | FILE *mingw_popen(const char *cmd, const char *mode); |
113 | int mingw_popen_fd(const char *cmd, const char *mode, int fd0, pid_t *pid); | 113 | int mingw_popen_fd(const char *cmd, const char *mode, int fd0, pid_t *pid); |
114 | int mingw_popen2(const char *cmd, pid_t *pid); | ||
115 | int mingw_pclose(FILE *fd); | 114 | int mingw_pclose(FILE *fd); |
116 | #undef popen | 115 | #undef popen |
117 | #undef pclose | 116 | #undef pclose |