/Documentation/timers/ |
D | hpet_example.c | 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 [all …]
|
/Documentation/watchdog/src/ |
D | watchdog-test.c | 41 int main(int argc, char *argv[]) in main() argument 55 if (!strncasecmp(argv[1], "-d", 2)) { in main() 61 } else if (!strncasecmp(argv[1], "-e", 2)) { in main() 67 } else if (!strncasecmp(argv[1], "-t", 2) && argv[2]) { in main() 68 flags = atoi(argv[2]); in main() 73 } else if (!strncasecmp(argv[1], "-p", 2) && argv[2]) { in main() 74 ping_rate = strtoul(argv[2], NULL, 0); in main()
|
/Documentation/sound/oss/ |
D | MultiSound | 481 int main(int argc, char *argv[]) 491 X if ((fd = open(argv[1], O_RDWR)) < 0) { 492 X perror(argv[1]); 853 static int cfg_dsp(int argc, char *argv[]) 858 X sscanf(argv[0], "0x%x", &io) != 1 || 859 X sscanf(argv[1], "%d", &irq) != 1 || 860 X sscanf(argv[2], "0x%x", &mem) != 1) 901 static int cfg_mpu(int argc, char *argv[]) 906 X sscanf(argv[0], "0x%x", &io) != 1 || 907 X sscanf(argv[1], "%d", &irq) != 1) [all …]
|
D | Opti | 187 main(int argc, char **argv) { 198 from = atoi(argv[i-1]); 199 to = atoi(argv[i]); 203 argv[0], mixer_names[to]); 206 argv[0], mixer_names[from], mixer_names[to]);
|
/Documentation/pcmcia/ |
D | crc32hash.c | 23 int main(int argc, char **argv) { in main() argument 29 result = crc32((unsigned char const *)argv[1], strlen(argv[1])); in main()
|
/Documentation/spi/ |
D | spidev_fdx.c | 105 int main(int argc, char **argv) in main() argument 113 while ((c = getopt(argc, argv, "hm:r:v")) != EOF) { in main() 133 argv[0]); in main() 140 name = argv[optind]; in main()
|
D | spidev_test.c | 162 static void parse_opts(int argc, char *argv[]) in parse_opts() argument 185 c = getopt_long(argc, argv, "D:s:d:b:lHOLC3NR24p:v", lopts, NULL); in parse_opts() 240 print_usage(argv[0]); in parse_opts() 252 int main(int argc, char *argv[]) in main() argument 260 parse_opts(argc, argv); in main()
|
/Documentation/laptops/ |
D | dslm.c | 132 int main(int argc, char **argv) in main() argument 140 disk = argv[1]; in main() 142 settle_time = atoi(argv[2]); in main() 143 disk = argv[3]; in main()
|
/Documentation/auxdisplay/ |
D | cfag12864b-example.c | 256 int main(int argc, char *argv[]) in main() argument 263 "Usually: /dev/fb0, /dev/fb1...\n", argv[0]); in main() 267 if (cfag12864b_init(argv[1])) { in main() 268 printf("Can't init %s fbdev\n", argv[1]); in main()
|
/Documentation/block/ |
D | ioprio.txt | 116 int main(int argc, char *argv[]) 121 while ((c = getopt(argc, argv, "+n:c:p:")) != EOF) { 153 if (!pid && argv[optind]) 154 pid = strtol(argv[optind], NULL, 10); 173 if (argv[optind]) 174 execvp(argv[optind], &argv[optind]);
|
/Documentation/usb/ |
D | gadget_printer.txt | 436 main(int argc, char *argv[]) 449 if (argv[i][0] != '-') { 453 if (!strcmp(argv[i], "-get_status")) { 458 } else if (!strcmp(argv[i], "-paper_loaded")) { 463 } else if (!strcmp(argv[i], "-paper_out")) { 468 } else if (!strcmp(argv[i], "-selected")) { 473 } else if (!strcmp(argv[i], "-not_selected")) { 478 } else if (!strcmp(argv[i], "-error")) { 483 } else if (!strcmp(argv[i], "-no_error")) { 488 } else if (!strcmp(argv[i], "-read_data")) { [all …]
|
D | gadget_hid.txt | 363 int main(int argc, const char *argv[]) 377 argv[0]); 381 if (argv[2][0] != 'k' && argv[2][0] != 'm' && argv[2][0] != 'j') 384 filename = argv[1]; 391 print_options(argv[2][0]); 426 if (argv[2][0] == 'k') 428 else if (argv[2][0] == 'm')
|
/Documentation/connector/ |
D | ucon.c | 111 int main(int argc, char *argv[]) in main() argument 124 while ((s = getopt(argc, argv, "hs")) != -1) { in main() 142 out = fopen(argv[optind], "a+"); in main() 145 argv[1], strerror(errno)); in main()
|
/Documentation/ptp/ |
D | testptp.c | 144 int main(int argc, char *argv[]) in main() argument 187 progname = strrchr(argv[0], '/'); in main() 188 progname = progname ? 1+progname : argv[0]; in main() 189 while (EOF != (c = getopt(argc, argv, "a:A:cd:e:f:ghi:k:lL:p:P:sSt:T:v"))) { in main()
|
/Documentation/accounting/ |
D | getdelays.c | 255 int main(int argc, char *argv[]) in main() argument 283 c = getopt(argc, argv, "qdiw:r:m:t:p:vlC:c:"); in main() 347 if (execvp(argv[optind - 1], in main() 348 &argv[optind - 1]) < 0) in main()
|
/Documentation/vDSO/ |
D | vdso_test.c | 22 int main(int argc, char **argv) in main() argument
|
/Documentation/ |
D | binfmt_misc.txt | 46 'P' - preserve-argv[0]. Legacy behavior of binfmt_misc is to overwrite 47 the original argv[0] with the full path to the binary. When this 49 vector for this purpose, thus preserving the original argv[0]. 52 argv[] set to ["/bin/foo", "/usr/local/bin/blah", "blah"]. The 54 with argv[] set to ["blah"].
|
D | java.txt | 210 int main(int argc, char **argv); 284 int main(int argc, char **argv) 290 program = argv[0]; 292 if(!argv[1]) 294 classfile = fopen(argv[1], "rb"); 296 error("%s: Error opening %s\n", program, argv[1]);
|
/Documentation/prctl/ |
D | disable-tsc-on-off-stress-test.c | 81 int main(int argc, char **argv) in main() argument
|
D | disable-tsc-ctxt-sw-stress-test.c | 77 int main(int argc, char **argv) in main() argument
|
D | disable-tsc-test.c | 60 int main(int argc, char **argv) in main() argument
|
/Documentation/x86/ |
D | mtrr.txt | 286 int main (int argc, char **argv) 296 sentry.base = strtoul (argv[1], NULL, 0); 297 sentry.size = strtoul (argv[2], NULL, 0); 300 if (strcmp (argv[3], mtrr_strings[sentry.type]) == 0) break; 304 fprintf (stderr, "Illegal type: \"%s\"\n", argv[3]);
|
/Documentation/video4linux/cx2341x/ |
D | README.hm12 | 97 int main(int argc, char **argv) 103 else fin = fopen(argv[1], "r");
|
/Documentation/misc-devices/mei/ |
D | mei-amt-version.c | 438 int main(int argc, char **argv) in main() argument 447 verbose = (argc > 1 && strcmp(argv[1], "-v") == 0); in main()
|
/Documentation/cdrom/ |
D | ide-cd | 368 main (int argc, char **argv) 378 program = argv[0]; 380 ++argv; 390 if (strcmp (argv[0], "-v") == 0) { 392 ++argv; 396 device = argv[0]; 399 slot = atoi (argv[1]) - 1;
|