diff options
author | Ron Yorston <rmy@pobox.com> | 2020-08-05 15:33:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-08-05 15:33:12 +0100 |
commit | 4319228f3dcf3a5f941140482c30cca227c6ed0b (patch) | |
tree | 6d1203b9607d2f60ef503555872391d881da6163 /include | |
parent | b5fb54b4ac78c801dc4fa7a5b12dd6e296e52f3f (diff) | |
download | busybox-w32-4319228f3dcf3a5f941140482c30cca227c6ed0b.tar.gz busybox-w32-4319228f3dcf3a5f941140482c30cca227c6ed0b.tar.bz2 busybox-w32-4319228f3dcf3a5f941140482c30cca227c6ed0b.zip |
win32: move code to fork (de)compressor to a function
Use a new common function, mingw_fork_compressor(), to implement
fork_transformer() in open_transformer.c and vfork_compressor()
in tar.c.
Saves 160 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index a67b161c7..16f0396db 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -133,6 +133,7 @@ int mingw_rename(const char*, const char*); | |||
133 | FILE *mingw_popen(const char *cmd, const char *mode); | 133 | FILE *mingw_popen(const char *cmd, const char *mode); |
134 | int mingw_popen_fd(const char *cmd, const char *mode, int fd0, pid_t *pid); | 134 | int mingw_popen_fd(const char *cmd, const char *mode, int fd0, pid_t *pid); |
135 | int mingw_pclose(FILE *fd); | 135 | int mingw_pclose(FILE *fd); |
136 | pid_t mingw_fork_compressor(int fd, const char *compressor, const char *mode); | ||
136 | #undef popen | 137 | #undef popen |
137 | #undef pclose | 138 | #undef pclose |
138 | #define popen mingw_popen | 139 | #define popen mingw_popen |