Lines Matching refs:ftp_line
75 static int ftp_line(char *cmd, char *arg, int must) in ftp_line() function
114 ftp_line(0, 0, 220); in ftpget_main()
115 rc = ftp_line("USER", TT.user, 0); in ftpget_main()
116 if (rc == 331) rc = ftp_line("PASS", TT.password, 0); in ftpget_main()
121 ftp_line("RNFR", toys.optargs[1], 350); in ftpget_main()
122 ftp_line("RNTO", toys.optargs[2], 250); in ftpget_main()
123 } else if (toys.optflags & FLAG_M) ftp_line("MKD", toys.optargs[1], 257); in ftpget_main()
124 else if (toys.optflags & FLAG_d) ftp_line("DELE", toys.optargs[1], 250); in ftpget_main()
125 else if (toys.optflags & FLAG_D) ftp_line("RMD", toys.optargs[1], 250); in ftpget_main()
131 ftp_line("TYPE", "I", 0); in ftpget_main()
132 rc = ftp_line("PASV", 0, 0); in ftpget_main()
157 if (ftp_line("SIZE", remote, 0) == 213) in ftpget_main()
178 ftp_line("REST", buf, 350); in ftpget_main()
181 ftp_line(cmd, remote, -1); in ftpget_main()
183 ftp_line(0, 0, (toys.optflags&FLAG_g) ? 226 : 150); in ftpget_main()
190 ftp_line(cmd, remote, 150); in ftpget_main()
197 ftp_line("QUIT", 0, 0); in ftpget_main()