Lines Matching refs:argv
29 void (*func)(int argc, const char ** argv);
50 main(int argc, const char ** argv) in main() argument
55 argv++; in main()
64 if (!strcmp(argv[0], hpet_command[i].command)) { in main()
66 argv++; in main()
69 hpet_command[i].func(argc, argv); in main()
73 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
79 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument
88 fd = open(argv[0], O_RDONLY); in hpet_open_close()
98 hpet_info(int argc, const char **argv) in hpet_info() argument
108 fd = open(argv[0], O_RDONLY); in hpet_info()
110 fprintf(stderr, "hpet_info: open of %s failed\n", argv[0]); in hpet_info()
130 hpet_poll(int argc, const char **argv) in hpet_poll() argument
145 freq = atoi(argv[1]); in hpet_poll()
146 iterations = atoi(argv[2]); in hpet_poll()
148 fd = open(argv[0], O_RDONLY); in hpet_poll()
151 fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]); in hpet_poll()
222 hpet_fasync(int argc, const char **argv) in hpet_fasync() argument
242 fd = open(argv[0], O_RDONLY); in hpet_fasync()
245 fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]); in hpet_fasync()
257 freq = atoi(argv[1]); in hpet_fasync()
258 iterations = atoi(argv[2]); in hpet_fasync()