/freebsd/contrib/tnftp/src/ |
H A D | progressbar.c | 170 lastsize = restart_point; 174 cursize = bytes + restart_point; 276 ((filesize - restart_point) / (bytes / elapsed) - 363 && bytes + restart_point <= filesize) { 364 remaining = (int)((filesize - restart_point) /
|
H A D | fetch.c | 569 restart_point = 0; in fetch_url() 575 restart_point = sb.st_size; in fetch_url() 588 if (restart_point) { in fetch_url() 589 if (lseek(fileno(fin), restart_point, SEEK_SET) < 0) { in fetch_url() 597 if (restart_point) in fetch_url() 599 (LLT)restart_point); in fetch_url() 658 if (restart_point) { in fetch_url() 798 if (restart_point) { in fetch_url() 801 (LLT)restart_point); in fetch_url() 803 (LLT)restart_point); in fetch_url() [all …]
|
H A D | ftp.c | 741 if (restart_point && in sendrequest() 748 rc = fseeko(fin, restart_point, SEEK_SET); in sendrequest() 752 rc = lseek(fileno(fin), restart_point, SEEK_SET); in sendrequest() 759 if (command("REST " LLF, (LLT)restart_point) != CONTINUE) in sendrequest() 884 restart_point = 0; in sendrequest() 996 if (is_retr && restart_point && in recvrequest() 997 command("REST " LLF, (LLT) restart_point) != CONTINUE) in recvrequest() 1050 if (is_retr && restart_point && in recvrequest() 1051 lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in recvrequest() 1067 if (is_retr && restart_point) { in recvrequest() [all …]
|
H A D | cmds.c | 573 (void)getit(argc, argv, 0, restart_point ? "r+" : "w" ); in get() 625 restart_point = stbuf.st_size; in getit() 643 restart_point = 0; in getit() 700 restart_point = 0; in mget() 733 restart_point = stbuf.st_size; in mget() 737 recvrequest("RETR", tp, cp, restart_point ? "r+" : "w", in mget() 739 restart_point = 0; in mget() 777 gmode = restart_point ? "r+" : "w"; in fget() 2393 restart_point = rp; in restart() 2395 if (restart_point == 0) in restart() [all …]
|
H A D | progressbar.h | 54 GLOBAL off_t restart_point; /* offset to restart transfer */ variable
|
/freebsd/crypto/heimdal/appl/ftp/ftp/ |
H A D | ftp.c | 48 off_t restart_point = 0; variable 754 if (restart_point && in sendrequest() 760 rc = fseek (fin, (long) restart_point, SEEK_SET); in sendrequest() 764 rc = lseek (fileno (fin), restart_point, SEEK_SET); in sendrequest() 771 restart_point = 0; in sendrequest() 776 if (command ("REST %ld", (long) restart_point) in sendrequest() 778 restart_point = 0; in sendrequest() 783 restart_point = 0; in sendrequest() 992 if (is_retr && restart_point && in recvrequest() 993 command ("REST %ld", (long) restart_point) != CONTINUE) in recvrequest() [all …]
|
H A D | extern.h | 163 extern off_t restart_point;
|
H A D | cmds.c | 579 if (restart_point) { in get() 655 restart_point = stbuf.st_size; in getit() 701 restart_point = 0; in getit() 1996 restart_point = atol(argv[1]); in restart() 1997 printf("restarting at %ld. %s\n", (long)restart_point, in restart()
|
/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpd.c | 45 extern off_t restart_point; 1038 if (restart_point) { in retrieve() 1043 n = restart_point; in retrieve() 1053 } else if (lseek(fileno(fin), restart_point, SEEK_SET) < 0) { in retrieve() 1119 if (restart_point) in do_store() 1129 if (restart_point) { in do_store() 1134 n = restart_point; in do_store() 1153 } else if (lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in do_store() 1387 cnt = st.st_size - restart_point; in send_data() 1388 sec_write(fileno(outstr), chunk + restart_point, cnt); in send_data()
|
H A D | ftpcmd.y | 48 off_t restart_point; variable 134 restart_point = (off_t) 0; 655 restart_point = (off_t) 0; 667 restart_point = $3; /* XXX $3 is only "int" */ 669 (long)restart_point,
|
H A D | ftpcmd.c | 247 off_t restart_point; variable 1773 restart_point = (off_t) 0; in yyparse() 2438 restart_point = (off_t) 0; in yyparse() 2453 restart_point = (yyvsp[(3) - (5)].i); /* XXX $3 is only "int" */ in yyparse() 2455 (long)restart_point, in yyparse()
|
/freebsd/libexec/ftpd/ |
H A D | extern.h | 90 extern off_t restart_point;
|
H A D | ftpd.c | 1692 if (restart_point) { in retrieve() 1697 n = restart_point; in retrieve() 1707 } else if (lseek(fileno(fin), restart_point, L_SET) < 0) { in retrieve() 1717 restart_point == 0 && cmd == 0 && S_ISREG(st.st_mode)); in retrieve() 1746 restart_point = 0; /* not affected by preceding REST */ in store() 1749 restart_point = 0; in store() 1751 if (restart_point) { /* guest STOR w/REST */ in store() 1758 if (restart_point) in store() 1772 if (restart_point) { in store() 1777 n = restart_point; in store() [all …]
|
H A D | ftpcmd.y | 68 off_t restart_point; variable 127 restart_point = 0; 751 restart_point = 0; 770 restart_point = $4.o; 772 (intmax_t)restart_point,
|