Lines Matching refs:argc

226 settype(int argc, char *argv[])  in settype()  argument
230 if (argc == 0 || argc > 2) { in settype()
243 if (argc < 2) { in settype()
312 setbinary(int argc, char *argv[]) in setbinary() argument
315 if (argc == 0) { in setbinary()
328 setascii(int argc, char *argv[]) in setascii() argument
331 if (argc == 0) { in setascii()
344 settenex(int argc, char *argv[]) in settenex() argument
347 if (argc == 0) { in settenex()
360 setftmode(int argc, char *argv[]) in setftmode() argument
363 if (argc != 2) { in setftmode()
377 setform(int argc, char *argv[]) in setform() argument
380 if (argc != 2) { in setform()
394 setstruct(int argc, char *argv[]) in setstruct() argument
397 if (argc != 2) { in setstruct()
410 put(int argc, char *argv[]) in put() argument
418 if (argc == 2) { in put()
419 argc++; in put()
423 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "local-file"))) in put()
425 if ((argc < 3 && !another(&argc, &argv, "remote-file")) || argc > 3) { in put()
463 mput(int argc, char *argv[]) in mput() argument
470 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "local-files"))) { in mput()
505 for (i = 1; i < argc && connected; i++) { in mput()
563 reget(int argc, char *argv[]) in reget() argument
566 (void)getit(argc, argv, 1, "r+"); in reget()
570 get(int argc, char *argv[]) in get() argument
573 (void)getit(argc, argv, 0, restart_point ? "r+" : "w" ); in get()
582 getit(int argc, char *argv[], int restartit, const char *gmode) in getit() argument
590 if (argc == 2) { in getit()
591 argc++; in getit()
595 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "remote-file"))) in getit()
597 if ((argc < 3 && !another(&argc, &argv, "local-file")) || argc > 3) { in getit()
685 mget(int argc, char *argv[]) in mget() argument
693 if (argc == 0 || in mget()
694 (argc == 1 && !another(&argc, &argv, "remote-files"))) { in mget()
756 fget(int argc, char *argv[]) in fget() argument
762 if (argc != 2) { in fget()
783 (void)getit(argc, argv, 0, gmode); in fget()
800 status(int argc, char *argv[]) in status() argument
803 if (argc == 0) { in status()
891 togglevar(int argc, char *argv[], int *var, const char *mesg) in togglevar() argument
893 if (argc == 1) { in togglevar()
895 } else if (argc == 2 && strcasecmp(argv[1], "on") == 0) { in togglevar()
897 } else if (argc == 2 && strcasecmp(argv[1], "off") == 0) { in togglevar()
913 setbell(int argc, char *argv[]) in setbell() argument
916 code = togglevar(argc, argv, &bell, "Bell mode"); in setbell()
924 setedit(int argc, char *argv[]) in setedit() argument
928 if (argc == 0) { in setedit()
937 code = togglevar(argc, argv, &editing, "Editing mode"); in setedit()
947 settrace(int argc, char *argv[]) in settrace() argument
950 code = togglevar(argc, argv, &trace, "Packet tracing"); in settrace()
958 sethash(int argc, char *argv[]) in sethash() argument
960 if (argc == 1) in sethash()
962 else if (argc != 2) { in sethash()
998 setverbose(int argc, char *argv[]) in setverbose() argument
1001 code = togglevar(argc, argv, &verbose, "Verbose mode"); in setverbose()
1009 setport(int argc, char *argv[]) in setport() argument
1012 code = togglevar(argc, argv, &sendport, "Use of PORT/LPRT cmds"); in setport()
1020 setprogress(int argc, char *argv[]) in setprogress() argument
1023 code = togglevar(argc, argv, &progress, "Progress bar"); in setprogress()
1033 setprompt(int argc, char *argv[]) in setprompt() argument
1036 code = togglevar(argc, argv, &interactive, "Interactive mode"); in setprompt()
1044 setgate(int argc, char *argv[]) in setgate() argument
1048 if (argc == 0 || argc > 3) { in setgate()
1053 } else if (argc < 2) { in setgate()
1056 if (argc == 2 && strcasecmp(argv[1], "on") == 0) in setgate()
1058 else if (argc == 2 && strcasecmp(argv[1], "off") == 0) in setgate()
1061 if (argc == 3) in setgate()
1085 setglob(int argc, char *argv[]) in setglob() argument
1088 code = togglevar(argc, argv, &doglob, "Globbing"); in setglob()
1096 setpreserve(int argc, char *argv[]) in setpreserve() argument
1099 code = togglevar(argc, argv, &preserve, "Preserve modification times"); in setpreserve()
1107 setdebug(int argc, char *argv[]) in setdebug() argument
1109 if (argc == 0 || argc > 2) { in setdebug()
1113 } else if (argc == 2) { in setdebug()
1144 cd(int argc, char *argv[]) in cd() argument
1148 if (argc == 0 || argc > 2 || in cd()
1149 (argc == 1 && !another(&argc, &argv, "remote-directory"))) { in cd()
1171 lcd(int argc, char *argv[]) in lcd() argument
1176 if (argc == 1) { in lcd()
1177 argc++; in lcd()
1180 if (argc != 2) { in lcd()
1204 delete(int argc, char *argv[]) in delete() argument
1207 if (argc == 0 || argc > 2 || in delete()
1208 (argc == 1 && !another(&argc, &argv, "remote-file"))) { in delete()
1221 mdelete(int argc, char *argv[]) in mdelete() argument
1227 if (argc == 0 || in mdelete()
1228 (argc == 1 && !another(&argc, &argv, "remote-files"))) { in mdelete()
1263 renamefile(int argc, char *argv[]) in renamefile() argument
1266 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "from-name"))) in renamefile()
1268 if ((argc < 3 && !another(&argc, &argv, "to-name")) || argc > 3) { in renamefile()
1291 ls(int argc, char *argv[]) in ls() argument
1316 if (argc == 0) in ls()
1326 if (argc > 1) in ls()
1328 if (argc > 2) in ls()
1330 if (argc > 3 || ((pagecmd | mlsdcmd) && argc > 2)) { in ls()
1371 mls(int argc, char *argv[]) in mls() argument
1379 if (argc == 0) in mls()
1381 if (argc < 2 && !another(&argc, &argv, "remote-files")) in mls()
1383 if (argc < 3 && !another(&argc, &argv, "local-file")) { in mls()
1389 odest = dest = argv[argc - 1]; in mls()
1390 argv[argc - 1] = NULL; in mls()
1402 for (i = 1; mflag && i < argc-1 && connected; i++) { in mls()
1426 shell(int argc, char *argv[]) in shell() argument
1434 if (argc == 0) { in shell()
1456 if (argc > 1) { in shell()
1481 user(int argc, char *argv[]) in user() argument
1487 if (argc == 0) in user()
1489 if (argc < 2) in user()
1490 (void)another(&argc, &argv, "username"); in user()
1491 if (argc < 2 || argc > 4) { in user()
1500 if (argc < 3) { in user()
1512 if (argc < 4) { in user()
1526 if (!aflag && argc == 4) { in user()
1540 pwd(int argc, char *argv[]) in pwd() argument
1544 if (argc != 1) { in pwd()
1562 lpwd(int argc, char *argv[]) in lpwd() argument
1566 if (argc != 1) { in lpwd()
1584 makedir(int argc, char *argv[]) in makedir() argument
1588 if (argc == 0 || argc > 2 || in makedir()
1589 (argc == 1 && !another(&argc, &argv, "directory-name"))) { in makedir()
1609 removedir(int argc, char *argv[]) in removedir() argument
1613 if (argc == 0 || argc > 2 || in removedir()
1614 (argc == 1 && !another(&argc, &argv, "directory-name"))) { in removedir()
1634 quote(int argc, char *argv[]) in quote() argument
1637 if (argc == 0 || in quote()
1638 (argc == 1 && !another(&argc, &argv, "command line to send"))) { in quote()
1643 quote1("", argc, argv); in quote()
1652 site(int argc, char *argv[]) in site() argument
1655 if (argc == 0 || in site()
1656 (argc == 1 && !another(&argc, &argv, "arguments to SITE command"))){ in site()
1661 quote1("SITE ", argc, argv); in site()
1669 quote1(const char *initial, int argc, char *argv[]) in quote1() argument
1675 for (i = 1; i < argc; i++) { in quote1()
1677 if (i < (argc - 1)) in quote1()
1688 do_chmod(int argc, char *argv[]) in do_chmod() argument
1691 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "mode"))) in do_chmod()
1693 if ((argc < 3 && !another(&argc, &argv, "remote-file")) || argc > 3) { in do_chmod()
1702 #define COMMAND_1ARG(argc, argv, cmd) \ argument
1703 if (argc == 1) \
1709 do_umask(int argc, char *argv[]) in do_umask() argument
1713 if (argc == 0) { in do_umask()
1719 COMMAND_1ARG(argc, argv, "SITE UMASK"); in do_umask()
1724 idlecmd(int argc, char *argv[]) in idlecmd() argument
1728 if (argc < 1 || argc > 2) { in idlecmd()
1734 COMMAND_1ARG(argc, argv, "SITE IDLE"); in idlecmd()
1742 rmthelp(int argc, char *argv[]) in rmthelp() argument
1746 if (argc == 0) { in rmthelp()
1752 COMMAND_1ARG(argc, argv, "HELP"); in rmthelp()
1762 quit(int argc, char *argv[]) in quit() argument
1766 if (argc == 0 && argv != NULL) { in quit()
1784 disconnect(int argc, char *argv[]) in disconnect() argument
1788 if (argc == 0 && argv != NULL) { in disconnect()
1800 account(int argc, char *argv[]) in account() argument
1805 if (argc == 0 || argc > 2) { in account()
1810 else if (argc == 2) in account()
1843 doproxy(int argc, char *argv[]) in doproxy() argument
1850 if (argc == 0 || (argc == 1 && !another(&argc, &argv, "command"))) { in doproxy()
1889 (*c->c_handler)(argc-1, argv+1); in doproxy()
1901 setcase(int argc, char *argv[]) in setcase() argument
1904 code = togglevar(argc, argv, &mcase, "Case mapping"); in setcase()
1933 setcr(int argc, char *argv[]) in setcr() argument
1936 code = togglevar(argc, argv, &crflag, "Carriage Return stripping"); in setcr()
1940 setntrans(int argc, char *argv[]) in setntrans() argument
1943 if (argc == 0 || argc > 3) { in setntrans()
1948 if (argc == 1) { in setntrans()
1957 if (argc == 2) { in setntrans()
1996 setnmap(int argc, char *argv[]) in setnmap() argument
2000 if (argc == 1) { in setnmap()
2006 if (argc == 0 || in setnmap()
2007 (argc < 3 && !another(&argc, &argv, "mapout")) || argc > 3) { in setnmap()
2200 setpassive(int argc, char *argv[]) in setpassive() argument
2203 if (argc == 1) { in setpassive()
2206 } else if (argc != 2) { in setpassive()
2229 setepsv4(int argc, char *argv[]) in setepsv4() argument
2231 code = togglevar(argc, argv, &epsv4, in setepsv4()
2237 setepsv6(int argc, char *argv[]) in setepsv6() argument
2239 code = togglevar(argc, argv, &epsv6, in setepsv6()
2245 setepsv(int argc, char*argv[]) in setepsv() argument
2247 setepsv4(argc,argv); in setepsv()
2248 setepsv6(argc,argv); in setepsv()
2252 setsunique(int argc, char *argv[]) in setsunique() argument
2255 code = togglevar(argc, argv, &sunique, "Store unique"); in setsunique()
2259 setrunique(int argc, char *argv[]) in setrunique() argument
2262 code = togglevar(argc, argv, &runique, "Receive unique"); in setrunique()
2266 parserate(int argc, char *argv[], int cmdlineopt) in parserate() argument
2271 if (argc > 4 || (argc < (cmdlineopt ? 3 : 2))) { in parserate()
2297 if (argc >= 3) { in parserate()
2303 if (argc == 4) { in parserate()
2337 setrate(int argc, char *argv[]) in setrate() argument
2340 code = parserate(argc, argv, 0); in setrate()
2345 cdup(int argc, char *argv[]) in cdup() argument
2349 if (argc == 0) { in cdup()
2371 restart(int argc, char *argv[]) in restart() argument
2374 if (argc == 0 || argc > 2) { in restart()
2384 if (argc == 2) { in restart()
2407 syst(int argc, char *argv[]) in syst() argument
2411 if (argc == 0) { in syst()
2422 macdef(int argc, char *argv[]) in macdef() argument
2427 if (argc == 0) in macdef()
2435 if ((argc < 2 && !another(&argc, &argv, "macro name")) || argc > 2) { in macdef()
2489 sizecmd(int argc, char *argv[]) in sizecmd() argument
2493 if (argc == 0 || argc > 2 || in sizecmd()
2494 (argc == 1 && !another(&argc, &argv, "remote-file"))) { in sizecmd()
2510 modtime(int argc, char *argv[]) in modtime() argument
2514 if (argc == 0 || argc > 2 || in modtime()
2515 (argc == 1 && !another(&argc, &argv, "remote-file"))) { in modtime()
2531 rmtstatus(int argc, char *argv[]) in rmtstatus() argument
2534 if (argc == 0) { in rmtstatus()
2539 COMMAND_1ARG(argc, argv, "STAT"); in rmtstatus()
2546 newer(int argc, char *argv[]) in newer() argument
2549 if (getit(argc, argv, -1, "w")) in newer()
2559 lpage(int argc, char *argv[]) in lpage() argument
2565 if (argc == 0 || argc > 2 || in lpage()
2566 (argc == 1 && !another(&argc, &argv, "local-file"))) { in lpage()
2593 page(int argc, char *argv[]) in page() argument
2600 if (argc == 0 || argc > 2 || in page()
2601 (argc == 1 && !another(&argc, &argv, "remote-file"))) { in page()
2629 setxferbuf(int argc, char *argv[]) in setxferbuf() argument
2633 if (argc != 2) { in setxferbuf()
2673 setoption(int argc, char *argv[]) in setoption() argument
2678 if (argc == 0 || (argc != 1 && argc != 3)) { in setoption()
2684 if (argc == 1) { in setoption()
2716 unsetoption(int argc, char *argv[]) in unsetoption() argument
2721 if (argc == 0 || argc != 2) { in unsetoption()
2740 feat(int argc, char *argv[]) in feat() argument
2744 if (argc == 0) { in feat()
2760 mlst(int argc, char *argv[]) in mlst() argument
2764 if (argc < 1 || argc > 2) { in mlst()
2775 COMMAND_1ARG(argc, argv, "MLST"); in mlst()
2780 opts(int argc, char *argv[]) in opts() argument
2784 if (argc < 2 || argc > 3) { in opts()
2795 if (argc == 2) in opts()