Lines Matching refs:argv
164 main(int argc, char **argv)
192 setpeer(argc, argv);
241 setpeer(int argc, char **argv)
252 makeargv(&argc, &argv);
256 argv[0]);
259 hostnameinput = removebrackets(argv[1]);
290 port = atoi(argv[2]);
293 argv[2]);
316 modecmd(int argc, char **argv)
327 if (strcmp(argv[1], p->m_name) == 0) {
331 (void) fprintf(stderr, "%s: unknown mode\n", argv[1]);
336 (void) fprintf(stderr, "usage: %s [ %s", argv[0], p->m_name);
344 setbinary(int argc, char **argv)
351 setascii(int argc, char **argv)
368 put(int argc, char **argv)
380 makeargv(&argc, &argv);
383 putusage(argv[0]);
386 targ = argv[argc - 1];
387 if (finddelimiter(argv[argc - 1])) {
393 if (finddelimiter(argv[n])) {
394 putusage(argv[0]);
397 cp = argv[argc - 1];
432 cp = argc == 2 ? tail(targ) : argv[1];
453 argtail = tail(argv[n]);
460 fd = open(argv[n], O_RDONLY);
462 (void) fprintf(stderr, "tftp: %s: %s\n", argv[n],
468 argv[n], hostname, buf, mode);
485 get(int argc, char **argv)
498 makeargv(&argc, &argv);
501 getusage(argv[0]);
506 if (finddelimiter(argv[n]) == 0) {
507 getusage(argv[0]);
512 src = finddelimiter(argv[n]);
514 src = argv[n];
520 hostnameinput = removebrackets(argv[n]);
548 cp = argc == 3 ? argv[2] : tail(src);
585 setrexmt(int argc, char **argv)
592 makeargv(&argc, &argv);
595 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
598 t = atoi(argv[1]);
600 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
606 settimeout(int argc, char **argv)
613 makeargv(&argc, &argv);
616 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
619 t = atoi(argv[1]);
621 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
628 status(int argc, char **argv)
704 char **argv;
706 makeargv(&argc, &argv);
707 c = getcmd(argv[0]);
715 (*c->handler)(argc, argv);
784 * Slice a string up into argc/argv.
792 static char **argv;
795 if (argv == NULL) {
797 if ((argv = malloc(argv_size * sizeof (char *))) == NULL) {
803 argp = argv;
813 if ((argv = realloc(argv,
818 argp = argv + argc;
829 *argvp = argv;
834 quit(int argc, char **argv)
843 help(int argc, char **argv)
856 arg = *++argv;
871 settrace(int argc, char **argv)
879 setverbose(int argc, char **argv)
886 setblksize(int argc, char **argv)
893 makeargv(&argc, &argv);
896 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
899 b = atoi(argv[1]);
903 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
909 setsrexmt(int argc, char **argv)
916 makeargv(&argc, &argv);
919 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
922 t = atoi(argv[1]);
926 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
932 settsize(int argc, char **argv)
935 (void) fprintf(stderr, "usage: %s\n", argv[0]);