Lines Matching refs:argv
54 main(int argc, char *argv[])
64 if (strcmp(argv[1], "-") == 0)
67 fd = open(argv[1], O_RDONLY|O_NONBLOCK, 0);
69 warn("couldn't open file %s", argv[1]);
94 while (argv[2] != NULL) {
95 if (!strcmp(argv[2],"dtrwait")) {
98 if (argv[3] == NULL || !isdigit(argv[3][0]))
100 dtrwait = atoi(argv[3]);
101 argv += 2;
102 } else if (!strcmp(argv[2],"drainwait")) {
105 if (argv[3] == NULL || !isdigit(argv[3][0]))
107 drainwait = atoi(argv[3]);
108 argv += 2;