-- Don't save/restore vi readonly flag if vi is compiled read-only.
-- Reworked rdate option handling (is now smaller).
-- Size reduction in ping
+ -- Always write dd counts to stderr
* Aaron Lehmann
-- slimmed down md5sum
-- contributed a nice new (hand written, not lex/yacc) Posix math
size_t bs = 512, count = -1;
ssize_t n;
off_t seek = 0, skip = 0;
- FILE *statusfp;
char *infile = NULL, *outfile = NULL, *buf;
for (i = 1; i < argc; i++) {
if (ftruncate(ofd, seek * bs) < 0)
perror_msg_and_die("%s", outfile);
}
-
- statusfp = stdout;
} else {
ofd = STDOUT_FILENO;
outfile = "standard output";
- statusfp = stderr;
}
if (skip) {
out_part++;
}
- fprintf(statusfp, "%ld+%ld records in\n", (long)in_full, (long)in_part);
- fprintf(statusfp, "%ld+%ld records out\n", (long)out_full, (long)out_part);
+ fprintf(stderr, "%ld+%ld records in\n", (long)in_full, (long)in_part);
+ fprintf(stderr, "%ld+%ld records out\n", (long)out_full, (long)out_part);
return EXIT_SUCCESS;
}
size_t bs = 512, count = -1;
ssize_t n;
off_t seek = 0, skip = 0;
- FILE *statusfp;
char *infile = NULL, *outfile = NULL, *buf;
for (i = 1; i < argc; i++) {
if (ftruncate(ofd, seek * bs) < 0)
perror_msg_and_die("%s", outfile);
}
-
- statusfp = stdout;
} else {
ofd = STDOUT_FILENO;
outfile = "standard output";
- statusfp = stderr;
}
if (skip) {
out_part++;
}
- fprintf(statusfp, "%ld+%ld records in\n", (long)in_full, (long)in_part);
- fprintf(statusfp, "%ld+%ld records out\n", (long)out_full, (long)out_part);
+ fprintf(stderr, "%ld+%ld records in\n", (long)in_full, (long)in_part);
+ fprintf(stderr, "%ld+%ld records out\n", (long)out_full, (long)out_part);
return EXIT_SUCCESS;
}