Lines Matching defs:n
210 (void) fputs("?Line too long\n", stderr);
219 if (buffer[strlen(buffer)-1] != '\n') {
220 while (((ch = getchar()) != EOF) && (ch != '\n'))
222 (void) fputs("?Line too long\n", stderr);
234 (void) fprintf(stderr, "%s: Unknown host (try again later).\n",
237 (void) fprintf(stderr, "%s: Unknown host.\n", hostname);
255 (void) fprintf(stderr, "usage: %s host-name [port]\n",
292 (void) fprintf(stderr, "%s: bad port number\n",
321 (void) fprintf(stderr, "Using %s mode to transfer files.\n",
331 (void) fprintf(stderr, "%s: unknown mode\n", argv[1]);
361 (void) printf("mode set to %s\n", mode);
371 int n;
392 for (n = 1; n < argc - 1; n++)
393 if (finddelimiter(argv[n])) {
428 (void) fputs("No target machine specified.\n", stderr);
435 (void) fprintf(stderr, "tftp: %s: %s\n", cp,
440 (void) printf("putting %s to %s:%s [%s]\n",
449 (void) fprintf(stderr, "tftp: filename too long: %s\n", targ);
452 for (n = 1; n < argc - 1; n++) {
453 argtail = tail(argv[n]);
457 "tftp: filename too long: %s/%s\n", targ, argtail);
460 fd = open(argv[n], O_RDONLY);
462 (void) fprintf(stderr, "tftp: %s: %s\n", argv[n],
467 (void) printf("putting %s to %s:%s [%s]\n",
468 argv[n], hostname, buf, mode);
477 (void) fprintf(stderr, "usage: %s file ... host:target, or\n"
478 " %s file ... target (when already connected)\n", s, s);
488 int n;
505 for (n = 1; n < argc; n++)
506 if (finddelimiter(argv[n]) == 0) {
511 for (n = 1; n < argc; n++) {
512 src = finddelimiter(argv[n]);
514 src = argv[n];
520 hostnameinput = removebrackets(argv[n]);
551 (void) fprintf(stderr, "tftp: %s: %s\n", cp,
556 (void) printf("getting from %s:%s to %s [%s]\n",
565 (void) fprintf(stderr, "tftp: %s: %s\n", cp,
570 (void) printf("getting from %s:%s to %s [%s]\n",
580 (void) fprintf(stderr, "usage: %s host:file host:file ... file, or\n"
581 " %s file file ... file if connected\n", s, s);
595 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
600 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
616 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
621 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
631 (void) printf("Connected to %s.\n", hostname);
634 (void) printf("Mode: %s Verbose: %s Tracing: %s\n", mode,
636 (void) printf("Rexmt-interval: %d seconds, Max-timeout: %d seconds\n",
642 (void) printf("%d bytes\n", blksize);
647 (void) printf("%d seconds\n", srexmtval);
648 (void) printf("Transfer size option: %s\n", tsize_opt ? "on" : "off");
685 (void) putchar('\n');
696 if (line[strlen(line)-1] != '\n') {
697 while (((ch = getchar()) != EOF) && (ch != '\n'))
699 (void) fputs("?Line too long\n", stderr);
709 (void) fputs("?Ambiguous command\n",
712 (void) fputs("?Invalid command\n",
848 (void) puts("Commands may be abbreviated. Commands are:\n");
850 (void) printf("%-*s\t%s\n", HELPINDENT, c->name,
859 (void) fprintf(stderr, "?Ambiguous help command %s\n",
862 (void) fprintf(stderr, "?Invalid help command %s\n",
865 (void) fprintf(stderr, "%s\n", c->help);
874 (void) printf("Packet tracing %s.\n", trace ? "on" : "off");
882 (void) printf("Verbose mode %s.\n", verbose ? "on" : "off");
896 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
903 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
919 (void) fprintf(stderr, "usage: %s value\n", argv[0]);
926 (void) fprintf(stderr, "%s: bad value\n", argv[1]);
935 (void) fprintf(stderr, "usage: %s\n", argv[0]);
939 (void) printf("Transfer size option %s.\n", tsize_opt ? "on" : "off");