Only in rzip64-3.1: .DS_Store
Only in rzip64-3.1: CHANGELOG
diff -ru rzip64-3-0/Makefile rzip64-3.1/Makefile
old
|
new
|
|
11 | 11 | CC=gcc |
12 | 12 | CFLAGS=-g -O2 |
13 | 13 | |
14 | | INSTALLCMD=/usr/bin/install -c |
| 14 | INSTALLCMD=/opt/local/bin/ginstall -c |
15 | 15 | |
16 | 16 | srcdir=. |
17 | 17 | SHELL=/bin/sh |
… |
… |
|
42 | 42 | rzip64.1: rzip64.yo |
43 | 43 | yodl2man -o rzip64.1 rzip64.yo |
44 | 44 | |
45 | | man/rzip64-man.html: rzip64.yo |
| 45 | web/rzip64-man.html: rzip64.yo |
46 | 46 | mkdir -p man |
47 | | yodl2html -o man/rzip64-man.html rzip64.yo |
| 47 | yodl2html -o web/rzip64-man.html rzip64.yo |
48 | 48 | |
49 | | docs: rzip64.1 man/rzip64-man.html |
50 | | cp rzip64.1 man/rzip64.1 |
| 49 | docs: rzip64.1 web/rzip64-man.html |
51 | 50 | |
52 | 51 | clean: |
53 | 52 | rm -f *~ $(OBJS) rzip64 config.cache config.log config.status |
Only in rzip64-3-0: crc32.o
diff -ru rzip64-3-0/main.c rzip64-3.1/main.c
old
|
new
|
|
32 | 32 | printf(" -9 slowest (best) compression\n"); |
33 | 33 | printf(" -d decompress\n"); |
34 | 34 | printf(" -f force overwrite of any existing files\n"); |
35 | | printf(" -G use slices (stop-and-go mode)\n"); |
36 | | printf(" -j n use n cores in parallel\n"); |
| 35 | printf(" -G use slices (stop-and-go mode, automatically sets -9)\n"); |
| 36 | printf(" -j n use n cores in parallel (automatically sets -G)\n"); |
37 | 37 | printf(" -k keep existing files\n"); |
38 | 38 | printf(" -L level set compression level\n"); |
39 | 39 | printf(" -o filename specify the output file name\n"); |
40 | 40 | printf(" -P show compression progress\n"); |
41 | 41 | printf(" -S suffix specify compressed suffix (default '.rz')\n"); |
| 42 | printf(" -v -vv add additional verbosity.\n"); |
42 | 43 | printf(" -V show version\n\n"); |
43 | 44 | printf(" Note that rzip64 cannot operate on stdin/stdout\n"); |
44 | 45 | } |
Only in rzip64-3-0: main.o
Only in rzip64-3-0/man: rzip64-man.html
diff -ru rzip64-3-0/runzip.c rzip64-3.1/runzip.c
old
|
new
|
|
181 | 181 | { |
182 | 182 | off_t total = 0; |
183 | 183 | |
184 | | control->infile = 0; |
185 | 184 | while (total < expected_size) { |
186 | 185 | total += runzip_chunk(fd_in, fd_out, fd_hist); |
187 | 186 | } |
Only in rzip64-3-0: runzip.o
Only in rzip64-3-0: rzip64
diff -ru rzip64-3-0/rzip64.c rzip64-3.1/rzip64.c
old
|
new
|
|
1 | 1 | /* |
2 | 2 | Copyright (C) Kay Gorontzi, 2010 |
3 | 3 | based on the work of Andrew Tridgell, 1998 |
| 4 | modified to run on OS X by Gabe Stocco, 2013. |
4 | 5 | |
5 | 6 | Modified to use flat hash, memory limit and variable hash culling |
6 | 7 | by Rusty Russell copyright (C) 2003. |
… |
… |
|
95 | 96 | }; |
96 | 97 | |
97 | 98 | static int cores_in_use = 1; |
| 99 | static int verbosity=0; |
98 | 100 | |
99 | 101 | void *DeathOfChild(int dummy) { |
100 | 102 | int w; |
… |
… |
|
573 | 575 | { |
574 | 576 | uchar *buf; |
575 | 577 | |
576 | | printf("Mapping %d bytes from offset=%lx\n", st->chunk_size, offset); |
| 578 | if( verbosity > 0 ) printf("Mapping %d bytes from offset=%lx\n", st->chunk_size, offset); |
577 | 579 | buf = (uchar *)mmap(NULL,st->chunk_size,PROT_READ,MAP_SHARED,fd_in,offset); |
578 | 580 | if (buf == (uchar *)-1) { |
579 | 581 | fatal("Failed to map buffer in rzip_fd\n"); |
… |
… |
|
597 | 599 | struct stat s, s2; |
598 | 600 | struct rzip_state *rstate; |
599 | 601 | struct MergeState MergeState; |
600 | | char *TmpName=""; |
| 602 | char *TmpName=""; |
601 | 603 | char *MergeStateName=""; |
602 | 604 | char *FName; |
603 | 605 | off_t len; |
604 | 606 | int64 i, LastSlice; |
605 | 607 | int M; |
606 | 608 | int64 chunk; |
| 609 | verbosity=control->verbosity; |
607 | 610 | |
608 | 611 | rstate = calloc(sizeof(*rstate), 1); |
609 | 612 | if (!rstate) fatal("Failed to allocate control state in rzip_fd\n"); |
… |
… |
|
670 | 673 | struct stat st; |
671 | 674 | int f; |
672 | 675 | int isChild = FALSE; |
| 676 | unsigned long children=0; |
673 | 677 | |
674 | 678 | // If we reached the merge phase during the last run, we do no longer need |
675 | 679 | // slices that are already successfully written to the output file. |
… |
… |
|
695 | 699 | // operation is selected by -j <n>. |
696 | 700 | // ------------------------------------------------------------- |
697 | 701 | while (cores_in_use > control->cores) sleep(1); // Wait for an available core |
698 | | |
| 702 | children++; |
699 | 703 | cores_in_use++; // Allocate available core |
700 | 704 | signal(SIGCHLD, (__sighandler_t)DeathOfChild); // Ensure to be informed when done |
701 | 705 | if (fork()) continue; |
… |
… |
|
711 | 715 | close(f); // This prevents data corruption by |
712 | 716 | rename(TmpName, FName); // incomplete segments on a later resume |
713 | 717 | |
714 | | if (isChild) { printf("Child %d completed.\n", cores_in_use); cores_in_use--; exit(69); } |
| 718 | if (isChild) { |
| 719 | if(control->verbosity > 0) printf("Child %d completed.\n", children); |
| 720 | cores_in_use--; |
| 721 | exit(69); |
| 722 | } |
715 | 723 | } |
716 | 724 | else { |
717 | 725 | rzip_chunk(rstate, fd_in, fd_out, s.st_size - len, pct_base, pct_multiple); |
diff -ru rzip64-3-0/rzip64.h rzip64-3.1/rzip64.h
old
|
new
|
|
1 | 1 | /* |
2 | 2 | Copyright (C) Kay Gorontzi, 2010 |
3 | 3 | based on the work of Andrew Tridgell, 1998 |
| 4 | modified by to run on OS X by Gabe Stocco, 2013 |
4 | 5 | |
5 | 6 | This program is free software; you can redistribute it and/or modify |
6 | 7 | it under the terms of the GNU General Public License as published by |
… |
… |
|
18 | 19 | */ |
19 | 20 | |
20 | 21 | #define RZIP_MAJOR_VERSION 3 |
21 | | #define RZIP_MINOR_VERSION 0 |
| 22 | #define RZIP_MINOR_VERSION 1 |
22 | 23 | |
23 | 24 | #define NUM_STREAMS 2 |
24 | 25 | |
… |
… |
|
120 | 121 | #define TRUE 1 |
121 | 122 | #endif |
122 | 123 | |
| 124 | // define __sighandler_t on MacOSX |
| 125 | #ifndef __sighandler_t |
| 126 | #define __sighandler_t sig_t |
| 127 | #endif |
123 | 128 | |
124 | 129 | #if !HAVE_STRERROR |
125 | 130 | extern char *sys_errlist[]; |