9 extern FILE *gz_open(FILE *compressed_file, int *pid)
13 if (pipe(unzip_pipe)!=0) {
14 error_msg("pipe error");
17 if ((*pid = fork()) == -1) {
18 error_msg("fork failed");
24 unzip(compressed_file, fdopen(unzip_pipe[1], "w"));
26 fclose(compressed_file);
31 if (unzip_pipe[0] == -1) {
32 error_msg("gzip stream init failed");
34 return(fdopen(unzip_pipe[0], "r"));