version 1.42.10.1, 2012/02/24 06:59:43 |
version 1.43, 2009/02/14 07:13:40 |
Line 86 u_int files_cnt = 1; /* # of files to |
|
Line 86 u_int files_cnt = 1; /* # of files to |
|
uint64_t progress = 0; /* display sign of life */ |
uint64_t progress = 0; /* display sign of life */ |
const u_char *ctab; /* conversion table */ |
const u_char *ctab; /* conversion table */ |
sigset_t infoset; /* a set blocking SIGINFO */ |
sigset_t infoset; /* a set blocking SIGINFO */ |
const char *msgfmt = "posix"; /* default summary() message format */ |
|
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
|
|
* record oriented I/O, only need a single buffer. |
* record oriented I/O, only need a single buffer. |
*/ |
*/ |
if (!(ddflags & (C_BLOCK|C_UNBLOCK))) { |
if (!(ddflags & (C_BLOCK|C_UNBLOCK))) { |
size_t dbsz = out.dbsz; |
if ((in.db = malloc(out.dbsz + in.dbsz - 1)) == NULL) { |
if (!(ddflags & C_BS)) |
|
dbsz += in.dbsz - 1; |
|
if ((in.db = malloc(dbsz)) == NULL) { |
|
err(EXIT_FAILURE, NULL); |
err(EXIT_FAILURE, NULL); |
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
|
++st.in_full; |
++st.in_full; |
|
|
/* Handle full input blocks. */ |
/* Handle full input blocks. */ |
} else if (n == in.dbsz) { |
} else if ((uint64_t)n == in.dbsz) { |
in.dbcnt += in.dbrcnt = n; |
in.dbcnt += in.dbrcnt = n; |
++st.in_full; |
++st.in_full; |
|
|
Line 513 dd_out(int force) |
|
Line 509 dd_out(int force) |
|
outp += nw; |
outp += nw; |
st.bytes += nw; |
st.bytes += nw; |
if (nw == n) { |
if (nw == n) { |
if (n != out.dbsz) |
if ((uint64_t)n != out.dbsz) |
++st.out_part; |
++st.out_part; |
else |
else |
++st.out_full; |
++st.out_full; |