Lines Matching refs:toys

70   if (toys.optflags & FLAG_v) fprintf(stderr, "%s\n", toybuf);
81 if (toys.optflags & FLAG_v) fprintf(stderr, s, cmd, arg); in ftp_line()
98 char *s, *remote = toys.optargs[2]; in ftpget_main()
101 if (!(toys.optflags&(FLAG_v-1))) in ftpget_main()
102 toys.optflags |= (toys.which->name[3]=='g') ? FLAG_g : FLAG_s; in ftpget_main()
107 if (!remote) remote = toys.optargs[1]; in ftpget_main()
110 TT.fd = xconnect(*toys.optargs, TT.port, 0, SOCK_STREAM, 0, AI_ADDRCONFIG); in ftpget_main()
119 if (toys.optflags & FLAG_m) { in ftpget_main()
120 if (toys.optc != 3) error_exit("-m FROM TO"); 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()
127 int get = !(toys.optflags&FLAG_s), cnt = toys.optflags&FLAG_c; in ftpget_main()
156 if (toys.optflags&(FLAG_s|FLAG_g)) { in ftpget_main()
163 if (toys.optflags & (FLAG_g|FLAG_s)) { in ftpget_main()
164 if (strcmp(toys.optargs[1], "-")) in ftpget_main()
165 ii = xcreate(toys.optargs[1], in ftpget_main()
171 if (toys.optflags&FLAG_l) cmd = "LIST"; in ftpget_main()
172 if (toys.optflags&FLAG_L) cmd = "NLST"; in ftpget_main()
183 ftp_line(0, 0, (toys.optflags&FLAG_g) ? 226 : 150); in ftpget_main()
184 } else if (toys.optflags & FLAG_s) { in ftpget_main()
194 if (toys.optflags&(FLAG_g|FLAG_s)) in ftpget_main()