Lines Matching defs:of

9  * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer
13 * notice, this list of conditions and the following disclaimer in the
15 * 3. The name of the author may not be used to endorse or promote products
66 static char *i_filename; /* name of input file */
73 static char *o_filename; /* name of output file */
190 struct timeval start; /* start of transfer */
191 struct timeval last; /* time of last update */
192 struct timeval last2; /* time of previous last update */
193 off_t size; /* size of file per HTTP hdr */
289 setproctitle("%s [%d%% of %s]", xs->name,
292 fprintf(stderr, "%3d%% of %s",
405 FILE *f, *of;
415 f = of = NULL;
514 * first, but I know of at least one HTTP server that only
516 * leaves it out of replies to HEAD requests. Also, in the
521 * file was a truncated copy of the remote file; we can drop
576 /* symlink instead of copy */
586 warnx("%s: size of remote file is not known", URL);
599 of = stdout;
614 fclose(of);
615 of = NULL;
629 if ((of = fopen(path, "r+")) == NULL) {
634 if (fstat(fileno(of), &nsb) == -1) {
643 fclose(of);
644 of = NULL;
650 if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) {
652 fclose(of);
653 of = NULL;
662 if (of == NULL) {
697 of = fopen(tmppath, "w");
702 if (of == NULL)
703 of = fopen(path, "w");
704 if (of == NULL) {
742 if ((wr = fwrite(ptr, 1, readcnt, of)) < readcnt) {
743 if (ferror(of) && errno == EINTR && !sigint)
744 clearerr(of);
763 /* set mtime of local file */
764 if (!n_flag && us.mtime && !o_stdout && of != NULL &&
768 fflush(of);
789 /* check the status of our files */
792 if (ferror(of))
794 if (ferror(f) || ferror(of))
807 * expect, assume the worst (i.e. we didn't get all of it)
822 if (of && of != stdout && !R_flag && !r_flag)
833 if (of && of != stdout)
834 fclose(of);