diff options
Diffstat (limited to 'gzip.c')
-rw-r--r-- | gzip.c | 41 |
1 files changed, 15 insertions, 26 deletions
@@ -1754,34 +1754,23 @@ DECLARE(ush, tab_prefix1, 1L << (BITS - 1)); | |||
1754 | 1754 | ||
1755 | /* local variables */ | 1755 | /* local variables */ |
1756 | 1756 | ||
1757 | int ascii = 0; /* convert end-of-lines to local OS conventions */ | 1757 | static int foreground; /* set if program run in foreground */ |
1758 | int decompress = 0; /* decompress (-d) */ | ||
1759 | int no_name = -1; /* don't save or restore the original file name */ | ||
1760 | int no_time = -1; /* don't save or restore the original file time */ | ||
1761 | int foreground; /* set if program run in foreground */ | ||
1762 | char *progname; /* program name */ | ||
1763 | static int method = DEFLATED; /* compression method */ | 1758 | static int method = DEFLATED; /* compression method */ |
1764 | static int exit_code = OK; /* program exit code */ | 1759 | static int exit_code = OK; /* program exit code */ |
1765 | int save_orig_name; /* set if original name must be saved */ | 1760 | static int part_nb; /* number of parts in .gz file */ |
1766 | int last_member; /* set for .zip and .Z files */ | 1761 | static long time_stamp; /* original time stamp (modification time) */ |
1767 | int part_nb; /* number of parts in .gz file */ | 1762 | static long ifile_size; /* input file size, -1 for devices (debug only) */ |
1768 | long time_stamp; /* original time stamp (modification time) */ | 1763 | static char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ |
1769 | long ifile_size; /* input file size, -1 for devices (debug only) */ | 1764 | static int z_len; /* strlen(z_suffix) */ |
1770 | char *env; /* contents of GZIP env variable */ | 1765 | |
1771 | char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ | 1766 | static long bytes_in; /* number of input bytes */ |
1772 | int z_len; /* strlen(z_suffix) */ | 1767 | static long bytes_out; /* number of output bytes */ |
1773 | 1768 | static char ifname[MAX_PATH_LEN]; /* input file name */ | |
1774 | long bytes_in; /* number of input bytes */ | 1769 | static char ofname[MAX_PATH_LEN]; /* output file name */ |
1775 | long bytes_out; /* number of output bytes */ | 1770 | static int ifd; /* input file descriptor */ |
1776 | char ifname[MAX_PATH_LEN]; /* input file name */ | 1771 | static int ofd; /* output file descriptor */ |
1777 | char ofname[MAX_PATH_LEN]; /* output file name */ | 1772 | static unsigned insize; /* valid bytes in inbuf */ |
1778 | int remove_ofname = 0; /* remove output file on error */ | 1773 | static unsigned outcnt; /* bytes in output buffer */ |
1779 | struct stat istat; /* status for input file */ | ||
1780 | int ifd; /* input file descriptor */ | ||
1781 | int ofd; /* output file descriptor */ | ||
1782 | unsigned insize; /* valid bytes in inbuf */ | ||
1783 | unsigned inptr; /* index of next byte to be processed in inbuf */ | ||
1784 | unsigned outcnt; /* bytes in output buffer */ | ||
1785 | 1774 | ||
1786 | /* local functions */ | 1775 | /* local functions */ |
1787 | 1776 | ||