/freebsd-11-stable/usr.sbin/fwcontrol/ |
H A D | fwcontrol.c | 793 priority_budget = strtol(optarg, NULL, 0); 795 errx(EX_USAGE, "%s: priority_budget out of range: %s", __func__, optarg); 801 crom_string = malloc(strlen(optarg)+1); 806 strcpy(crom_string, optarg); 813 crom_string_hex = malloc(strlen(optarg)+1); 816 strcpy(crom_string_hex, optarg); 824 set_root_node = strtol(optarg, NULL, 0); 832 set_gap_count = strtol(optarg, NULL, 0); 841 load_crom(optarg, crom_buf); 850 if (eui64_hostton(optarg, [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 1345 if (strcmp(optarg, "2") != 0) { 1348 argv[0], optarg); 1356 if (strcmp(optarg, "4") != 0) { 1359 argv[0], optarg); 1541 "bufsize", optarg) != 0) 1542 dfatal("failed to set -b %s", optarg); 1554 if (dtrace_setopt(g_dtp, "define", optarg) != 0) 1555 dfatal("failed to set -D %s", optarg); 1562 dcp->dc_arg = optarg; 1579 dcp->dc_arg = optarg; [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/plockstat/ |
H A D | plockstat.c | 807 g_nent = strtoul(optarg, &end, 10); 810 "'%s'\n", g_pname, optarg); 893 if (dtrace_setopt(g_dtp, "ustackframes", optarg) == -1) 898 if ((p = strchr(optarg, '=')) != NULL) 901 if (dtrace_setopt(g_dtp, optarg, p) != 0) 902 dfatal("failed to set -x %s", optarg); 907 (void) strtoul(optarg, &end, 10); 908 if (*optarg == '-' || *end != '\0' || errno != 0) { 910 "'%s'\n", g_pname, optarg); 919 dprog_add(optarg); [all...] |
/freebsd-11-stable/contrib/groff/src/devices/grolbp/ |
H A D | lbp.cpp | 653 font::command_line_font_dir(optarg); 661 if (!font::scan_papersize(optarg, &s, 663 error("invalid paper size `%1' ignored", optarg); 676 if (strcasecmp(optarg, "portrait") == 0) 679 if (strcasecmp(optarg, "landscape") == 0) 682 error("unknown orientation '%1'", optarg); 688 long n = strtol(optarg, &ptr, 10); 689 if ((n <= 0) && (ptr == optarg)) 700 long n = strtol(optarg, &ptr, 10); 701 if (n == 0 && ptr == optarg) [all...] |
/freebsd-11-stable/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 716 pidfile = optarg; 722 test_cmd = strdup(optarg); 733 nap = fetchtimeout(c, NULL, optarg, 0); 739 timeout_sec = atoi(optarg); 740 timeout = parse_timeout_to_pow2ns(c, NULL, optarg); 747 fetchtimeout(c, "NULL", optarg, 0); 753 exit_timeout = parse_timeout_to_pow2ns(c, NULL, optarg); 760 pretimeout = fetchtimeout(0, lopt, optarg, 0); 763 optarg); 766 optarg); [all...] |
/freebsd-11-stable/sbin/tunefs/ |
H A D | tunefs.c | 120 avalue = optarg; 132 evalue = atoi(optarg); 135 name, optarg); 142 fvalue = atoi(optarg); 145 name, optarg); 152 jvalue = optarg; 164 Jvalue = optarg; 176 kvalue = atoi(optarg); 178 errx(10, "bad %s (%s)", name, optarg); 185 Lvalue = optarg; [all...] |
/freebsd-11-stable/usr.bin/join/ |
H A D | join.c | 138 if ((F1->joinf = strtol(optarg, &end, 10)) < 1) 141 errx(1, "illegal field number -- %s", optarg); 145 if ((F2->joinf = strtol(optarg, &end, 10)) < 1) 148 errx(1, "illegal field number -- %s", optarg); 153 switch(strtol(optarg, &end, 10)) { 165 errx(1, "illegal file number -- %s", optarg); 168 empty = optarg; 172 strtol(optarg, &end, 10)) < 1) 175 errx(1, "illegal field number -- %s", optarg); 180 fieldarg(optarg); [all...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | main.c | 208 extern char *optarg; 392 /* Set to 0 to allow -b; need to check optarg before using it! */ 399 j = (optarg == NULL) ? ' ' : *optarg; 449 optarg, SM_IO_APPEND, NULL); 452 syserr("cannot open %s", optarg); 461 tTflag(optarg); 472 if (optarg == NULL) 479 j = SM_MIN(strlen(optarg), 32) + 1; 481 (void) sm_strlcpy(sysloglabel, optarg, [all...] |
/freebsd-11-stable/contrib/binutils/binutils/ |
H A D | strings.c | 215 string_min = integer_arg (optarg); 217 fatal (_("invalid number %s"), optarg); 227 if (optarg[1] != '\0') 229 switch (optarg[0]) 249 target = optarg; 253 if (optarg[1] != '\0') 255 encoding = optarg[0];
|
/freebsd-11-stable/gnu/usr.bin/gdb/kgdb/ |
H A D | main.c | 345 i = strtol(optarg, &p, 0); 346 if (*p != '\0' || p == optarg) 348 optarg); 360 vmcore = strdup(optarg); 363 strlcpy(crashdir, optarg, sizeof(crashdir)); 369 dumpnr = strtol(optarg, &s, 0); 388 remote = strdup(optarg);
|
/freebsd-11-stable/usr.sbin/ancontrol/ |
H A D | ancontrol.c | 1013 strncpy((char *)&cfg->an_nodename, optarg, 16); 1533 iface = optarg; 1586 arg = optarg; 1590 arg = optarg; 1594 arg = optarg; 1597 modifier = atoi(optarg); 1621 arg = optarg; 1625 arg = optarg; 1639 if (!isdigit(*optarg)) { 1640 errx(1, "%s is not numeric", optarg); [all...] |
/freebsd-11-stable/bin/pkill/ |
H A D | pkill.c | 195 pidfile = optarg; 199 makelist(&rgidlist, LT_GROUP, optarg); 211 coref = optarg; 214 execf = optarg; 217 makelist(&ppidlist, LT_GENERIC, optarg); 226 makelist(&ruidlist, LT_USER, optarg); 233 makelist(&classlist, LT_CLASS, optarg); 239 delim = optarg; 245 makelist(&pgrplist, LT_PGRP, optarg); 252 makelist(&jidlist, LT_JAIL, optarg); [all...] |
/freebsd-11-stable/contrib/ofed/librdmacm/examples/ |
H A D | rstream.c | 628 dst_addr = optarg; 631 src_addr = optarg; 634 if (!strncasecmp("ip", optarg, 2)) { 636 } else if (!strncasecmp("gid", optarg, 3)) { 645 buffer_size = atoi(optarg); 648 inline_size = atoi(optarg); 652 iterations = atoi(optarg); 656 transfer_count = atoi(optarg); 659 if (!strncasecmp("all", optarg, 3)) { 663 transfer_size = atoi(optarg); [all...] |
/freebsd-11-stable/contrib/groff/src/devices/grolj4/ |
H A D | lj4.cpp | 633 if (!isdigit(*optarg)) // this ugly hack prevents -d without 635 duplex_flag = atoi(optarg); 643 int n = lookup_paper_size(optarg); 645 error("unknown paper size `%1'", optarg); 655 font::command_line_font_dir(optarg); 660 long n = strtol(optarg, &ptr, 10); 661 if (n == 0 && ptr == optarg) 672 long n = strtol(optarg, &ptr, 10); 673 if (n == 0 && ptr == optarg)
|
/freebsd-11-stable/usr.sbin/zonectl/ |
H A D | zonectl.c | 410 optarg, &entry_num, SCSI_NV_FLAG_IG_CASE); 417 optarg); 424 filename = strdup(optarg); 432 lba = strtoull(optarg, &endptr, 0); 435 optarg); 448 optarg, &entry_num, SCSI_NV_FLAG_IG_CASE); 455 optarg); 467 sizeof(zone_print_opts[0])), optarg, &entry_num, 475 optarg);
|
/freebsd-11-stable/contrib/dma/ |
H A D | dma.c | 481 if (optarg[0] == 'c' || optarg[0] == 'm') { 487 if (optarg[0] == 'p') { 490 } else if (optarg[0] == 'q') { 499 logident_base = optarg; 503 sender = optarg; 512 if (optarg[0] != 'i') 523 if (optarg && *optarg == '-')
|
/freebsd-11-stable/usr.bin/chat/ |
H A D | chat.c | 215 chat_file = copy_of(optarg); 223 report_file = copy_of(optarg); 241 timeout = atoi(optarg); 247 phone_num = copy_of(optarg); 253 phone_num2 = copy_of(optarg);
|
/freebsd-11-stable/usr.bin/etdump/ |
H A D | etdump.c | 237 if (strcmp(optarg, "shell") == 0) 239 else if (strcmp(optarg, "text") == 0) 245 if (strcmp(optarg, "-") == 0) { 247 } else if ((outfile = fopen(optarg, "w")) == NULL) { 248 err(1, "unable to open %s for output", optarg);
|
/freebsd-11-stable/usr.sbin/acpi/acpiconf/ |
H A D | acpiconf.c | 248 acpi_battinfo(atoi(optarg)); 251 acpi_sleep_ack(atoi(optarg)); 254 if (optarg[0] == 'S') 255 sleep_type = optarg[1] - '0'; 257 sleep_type = optarg[0] - '0';
|
/freebsd-11-stable/usr.bin/mail/ |
H A D | main.c | 140 Tflag = optarg; 150 myname = optarg; 187 subject = optarg; 232 cc = cat(cc, nalloc(optarg, GCC)); 238 bcc = cat(bcc, nalloc(optarg, GBCC));
|
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | saquery.c | 1550 static int process_opt(void *context, int ch, char *optarg) argument 1557 src_lid = strdup(optarg); 1568 char *src_addr = strdup(optarg); 1583 node_name_map_file = strdup(optarg); 1586 if (!isxdigit(*optarg) && !(optarg = getpass("SM_Key: "))) { 1590 ibd_sakey = strtoull(optarg, NULL, 0); 1644 p->slid = (uint16_t) strtoul(optarg, NULL, 0); 1647 p->dlid = (uint16_t) strtoul(optarg, NULL, 0); 1650 p->mlid = (uint16_t) strtoul(optarg, NUL [all...] |
/freebsd-11-stable/usr.sbin/vidcontrol/ |
H A D | vidcontrol.c | 1378 set_border_color(optarg); 1384 set_cursor_type(optarg); 1392 optarg = nextarg(argc, argv, &optind, 'f', 0); 1393 if (optarg != NULL) { 1398 font = optarg; 1400 type = optarg; 1411 if (sscanf(optarg, "%dx%d", 1414 warnx("incorrect geometry: %s", optarg); 1419 set_history(optarg); 1425 show_info(optarg); [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_hostent.c | 140 _hf_sethostsfile(optarg); 143 __res_conf_name = optarg; 146 type = optarg;
|
/freebsd-11-stable/contrib/netbsd-tests/net/fdpass/ |
H A D | fdpass.c | 180 s[0] = atoi(optarg); 183 s[1] = atoi(optarg); 186 prog = optarg;
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | bench.c | 156 num_pipes = atoi(optarg); 159 num_active = atoi(optarg); 162 num_writes = atoi(optarg);
|