Lines Matching refs:argv
30 void (*func)(int argc, const char ** argv);
51 main(int argc, const char ** argv) in main() argument
56 argv++; in main()
65 if (!strcmp(argv[0], hpet_command[i].command)) { in main()
67 argv++; in main()
70 hpet_command[i].func(argc, argv); in main()
74 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
80 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument
89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
99 hpet_info(int argc, const char **argv) in hpet_info() argument
109 fd = open(argv[0], O_RDONLY); in hpet_info()
111 fprintf(stderr, "hpet_info: open of %s failed\n", argv[0]); in hpet_info()
131 hpet_poll(int argc, const char **argv) in hpet_poll() argument
146 freq = atoi(argv[1]); in hpet_poll()
147 iterations = atoi(argv[2]); in hpet_poll()
149 fd = open(argv[0], O_RDONLY); in hpet_poll()
152 fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]); in hpet_poll()
223 hpet_fasync(int argc, const char **argv) in hpet_fasync() argument
243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
246 fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]); in hpet_fasync()
258 freq = atoi(argv[1]); in hpet_fasync()
259 iterations = atoi(argv[2]); in hpet_fasync()