|
|
printf(" -k keep existing files\n"); | printf(" -k keep existing files\n"); |
printf(" -P show compression progress\n"); | printf(" -P show compression progress\n"); |
printf(" -L level set compression level\n"); | printf(" -L level set compression level\n"); |
|
printf(" -l nr set higher bits of the expected file length to nr\n"); |
printf(" -V show version\n"); | printf(" -V show version\n"); |
#if 0 | #if 0 |
/* damn, this will be quite hard to do */ | /* damn, this will be quite hard to do */ |
|
|
| |
| |
read_magic(fd_in, fd_out, &expected_size); | read_magic(fd_in, fd_out, &expected_size); |
|
|
|
#ifdef HAVE_LARGE_FILES |
|
if (control->nr) { |
|
expected_size = ( ((off_t)(control->nr))<<32) | (expected_size & 0xFFFFFFFF); |
|
} |
|
#endif |
|
|
runzip_fd(fd_in, fd_out, fd_hist, expected_size); | runzip_fd(fd_in, fd_out, fd_hist, expected_size); |
| |
if ((control->flags & FLAG_TEST_ONLY) == 0) { | if ((control->flags & FLAG_TEST_ONLY) == 0) { |
|
|
control.flags |= FLAG_DECOMPRESS; | control.flags |= FLAG_DECOMPRESS; |
} | } |
| |
while ((c = getopt(argc, argv, "h0123456789dS:tVvkfPo:L:")) != -1) { |
while ((c = getopt(argc, argv, "h0123456789dS:tVvkl:fPo:L:")) != -1) { |
if (isdigit(c)) { | if (isdigit(c)) { |
control.compression_level = c - '0'; | control.compression_level = c - '0'; |
continue; | continue; |
|
|
case 'k': | case 'k': |
control.flags |= FLAG_KEEP_FILES; | control.flags |= FLAG_KEEP_FILES; |
break; | break; |
|
case 'l': |
|
#ifndef HAVE_LARGE_FILES |
|
fatal("You used the -l option, but this rzip doesn't support large files."); |
|
#endif |
|
control.nr = atoi(optarg); |
|
break; |
case 'v': | case 'v': |
control.verbosity++; | control.verbosity++; |
break; | break; |