Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/openbsd/src/gnu/usr.bin/binutils-2.17/gprof/
Dgprof.c213 if (optarg) in main()
215 sym_id_add (optarg, INCL_ANNO); in main()
231 if (optarg) in main()
233 sym_id_add (optarg, INCL_EXEC); in main()
239 if (optarg) in main()
241 debug_level |= atoi (optarg); in main()
257 sym_id_add (optarg, EXCL_TIME); in main()
259 sym_id_add (optarg, EXCL_GRAPH); in main()
262 sym_id_add (optarg, INCL_TIME); in main()
264 sym_id_add (optarg, INCL_GRAPH); in main()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gprof/
Dgprof.c218 if (optarg)
220 sym_id_add (optarg, INCL_ANNO);
236 if (optarg)
238 sym_id_add (optarg, INCL_EXEC);
244 if (optarg)
246 debug_level |= atoi (optarg);
262 sym_id_add (optarg, EXCL_TIME);
264 sym_id_add (optarg, EXCL_GRAPH);
267 sym_id_add (optarg, INCL_TIME);
269 sym_id_add (optarg, INCL_GRAPH);
[all …]
/openbsd/src/usr.sbin/tcpdump/
Dtcpdump.c249 if (strcasecmp(optarg, "pass") == 0) in main()
251 else if (strcasecmp(optarg, "capture") == 0) in main()
253 else if (strcasecmp(optarg, "drop") == 0) in main()
257 optarg); in main()
262 cnt = strtonum(optarg, 1, INT_MAX, &errstr); in main()
265 optarg, errstr); in main()
269 if (strcasecmp(optarg, "in") == 0) in main()
271 else if (strcasecmp(optarg, "out") == 0) in main()
274 error("invalid traffic direction %s", optarg); in main()
292 device = optarg; in main()
[all …]
/openbsd/src/usr.bin/nl/
Dnl.c130 parse_numbering(optarg, BODY); in main()
133 clen = mbrlen(optarg, MB_CUR_MAX, NULL); in main()
137 memcpy(delim1, optarg, delim1len = clen); in main()
138 clen = mbrlen(optarg + delim1len, in main()
143 memcpy(delim2, optarg + delim1len, in main()
145 if (optarg[delim1len + clen] != '\0') { in main()
148 optarg); in main()
154 parse_numbering(optarg, FOOTER); in main()
157 parse_numbering(optarg, HEADER); in main()
160 incr = strtonum(optarg, INT_MIN, INT_MAX, &errstr); in main()
[all …]
/openbsd/src/gnu/usr.bin/binutils/ld/
Dlexsup.c606 lang_add_input_file (optarg, lang_input_file_is_file_enum, NULL); in parse_args()
615 if (strcmp (optarg, "archive") == 0) in parse_args()
617 else if (strcmp (optarg, "shared") == 0 in parse_args()
618 || strcmp (optarg, "default") == 0) in parse_args()
621 einfo (_("%P%F: unrecognized -a option `%s'\n"), optarg); in parse_args()
625 if (strcmp (optarg, "definitions") == 0) in parse_args()
627 else if (strcmp (optarg, "nodefinitions") == 0) in parse_args()
629 else if (strcmp (optarg, "nosymbolic") == 0) in parse_args()
631 else if (strcmp (optarg, "pure-text") == 0) in parse_args()
634 einfo (_("%P%F: unrecognized -assert option `%s'\n"), optarg); in parse_args()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/ld/
Dlexsup.c685 lang_add_input_file (optarg, lang_input_file_is_file_enum, NULL); in parse_args()
694 if (strcmp (optarg, "archive") == 0) in parse_args()
696 else if (strcmp (optarg, "shared") == 0 in parse_args()
697 || strcmp (optarg, "default") == 0) in parse_args()
700 einfo (_("%P%F: unrecognized -a option `%s'\n"), optarg); in parse_args()
704 if (strcmp (optarg, "definitions") == 0) in parse_args()
706 else if (strcmp (optarg, "nodefinitions") == 0) in parse_args()
708 else if (strcmp (optarg, "nosymbolic") == 0) in parse_args()
710 else if (strcmp (optarg, "pure-text") == 0) in parse_args()
713 einfo (_("%P%F: unrecognized -assert option `%s'\n"), optarg); in parse_args()
[all …]
/openbsd/src/usr.sbin/amd/amd/
Dget_args.c103 if (*optarg != '/') { in get_args()
108 auto_dir = optarg; in get_args()
112 am_timeo = atoi(optarg); in get_args()
118 sub_domain = optarg; in get_args()
123 host_helper = optarg; in get_args()
130 karch = optarg; in get_args()
134 logfile = optarg; in get_args()
156 { char *dot = strchr(optarg, '.'); in get_args()
158 if (*optarg) { in get_args()
159 afs_timeo = atoi(optarg); in get_args()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/gas/
Das.c532 if (md_parse_option (optc, optarg) != 0) in parse_args()
543 if (optarg && *optarg) in parse_args()
544 new_argv[new_argc++] = optarg, new_argv[new_argc] = NULL; in parse_args()
555 as_bad (_("unrecognized option -%c%s"), optc, optarg ? optarg : ""); in parse_args()
562 if (!strcmp (optarg, "-")) in parse_args()
563 optarg = ""; in parse_args()
564 new_argv[new_argc++] = optarg; in parse_args()
604 if (strcmp (optarg, this_emulation->name)) in parse_args()
629 for (s = optarg; *s != '\0' && *s != '='; s++) in parse_args()
637 n->name = optarg; in parse_args()
[all …]
/openbsd/src/usr.bin/rdist/
Drdist.c126 if ((cp = msgparseopts(optarg, TRUE)) != NULL) { in main()
127 error("Bad log option \"%s\": %s.", optarg,cp); in main()
133 remotemsglist = xstrdup(optarg); in main()
140 if (!isdigit((unsigned char)*optarg)) { in main()
141 error("\"%s\" is not a number.", optarg); in main()
145 min_freespace = (int64_t)strtonum(optarg, in main()
149 "'%s'", errstr, optarg); in main()
152 min_freefiles = (int64_t)strtonum(optarg, in main()
156 "'%s'", errstr, optarg); in main()
159 maxchildren = atoi(optarg); in main()
[all …]
/openbsd/src/usr.sbin/makefs/
Dmakefs.c109 len = strlen(optarg) - 1; in main()
110 if (optarg[len] == '%') { in main()
111 optarg[len] = '\0'; in main()
114 optarg, 0, 99); in main()
118 optarg, 0, LLONG_MAX); in main()
123 len = strlen(optarg) - 1; in main()
124 if (optarg[len] == '%') { in main()
125 optarg[len] = '\0'; in main()
128 optarg, 0, 99); in main()
132 optarg, 0, LLONG_MAX); in main()
[all …]
/openbsd/src/regress/lib/libc/asr/bin/
Dgetaddrinfo.c66 parseresopt(optarg); in main()
75 if (!strcmp(optarg, "inet")) in main()
77 else if (!strcmp(optarg, "inet6")) in main()
83 if (!strcmp(optarg, "udp")) in main()
85 else if (!strcmp(optarg, "tcp")) in main()
87 else if (!strcmp(optarg, "icmp")) in main()
89 else if (!strcmp(optarg, "icmpv6")) in main()
95 servname = optarg; in main()
98 if (!strcmp(optarg, "stream")) in main()
100 else if (!strcmp(optarg, "dgram")) in main()
[all …]
/openbsd/src/gnu/share/
Dconfigure195 optarg=`echo $option | sed -e 's/^[^=]*=//'`
201 optarg=$1
203 arguments="$arguments $option=$optarg"
217 bindir=$optarg
218 diroptions="$diroptions --bindir=$optarg"
222 "") build_alias=$optarg ;;
229 cache_file=$optarg
232 datadir=$optarg
233 diroptions="$diroptions --datadir=$optarg"
243 *) optarg=yes ;;
[all …]
/openbsd/src/gnu/llvm/lldb/tools/darwin-debug/
Ddarwin-debug.cpp196 if (optarg) { in main()
197 if (streq(optarg, "i386")) in main()
199 else if (streq(optarg, "x86_64")) in main()
201 else if (streq(optarg, "x86_64h")) in main()
203 else if (strstr(optarg, "arm") == optarg) in main()
206 ::fprintf(stderr, "error: unsupported cpu type '%s'\n", optarg); in main()
226 const char *equal_pos = strchr(optarg, '='); in main()
228 name.assign(optarg, equal_pos - optarg); in main()
231 name = optarg; in main()
243 unix_socket_name.assign(optarg); in main()
[all …]
/openbsd/src/gnu/llvm/lldb/tools/debugserver/source/
Ddebugserver.cpp1035 optarg ? optarg : ""); in main()
1041 if (optarg && optarg[0]) in main()
1042 arch_name.assign(optarg); in main()
1046 if (optarg && optarg[0]) { in main()
1047 if (isdigit(optarg[0])) { in main()
1049 attach_pid = static_cast<int>(strtoul(optarg, &end, 0)); in main()
1051 RNBLogSTDERR("error: invalid pid option '%s'\n", optarg); in main()
1055 attach_pid_name = optarg; in main()
1063 if (optarg && optarg[0]) { in main()
1064 waitfor_pid_name = optarg; in main()
[all …]
/openbsd/src/usr.bin/netstat/
Dmain.c140 extern char *optarg; in main()
173 repeatcount = strtonum(optarg, 1, INT_MAX, &errstr); in main()
187 if (strcmp(optarg, "inet") == 0) in main()
189 else if (strcmp(optarg, "inet6") == 0) in main()
191 else if (strcmp(optarg, "local") == 0) in main()
193 else if (strcmp(optarg, "unix") == 0) in main()
195 else if (strcmp(optarg, "mpls") == 0) in main()
200 __progname, optarg); in main()
212 interface = optarg; in main()
221 memf = optarg; in main()
[all …]
/openbsd/src/usr.sbin/fdformat/
Dfdformat.c175 cyls = strtonum(optarg, 1, INT_MAX, &errstr); in main()
177 errx(1, "-c %s: %s", optarg, errstr); in main()
181 secs = strtonum(optarg, 1, INT_MAX, &errstr); in main()
183 errx(1, "-s %s: %s", optarg, errstr); in main()
187 heads = strtonum(optarg, 1, INT_MAX, &errstr); in main()
189 errx(1, "-h %s: %s", optarg, errstr); in main()
193 rate = strtonum(optarg, 1, INT_MAX, &errstr); in main()
195 errx(1, "-r %s: %s", optarg, errstr); in main()
199 gaplen = strtonum(optarg, 1, INT_MAX, &errstr); in main()
201 errx(1, "-g %s: %s", optarg, errstr); in main()
[all …]
/openbsd/src/usr.bin/sndiod/
Dsndiod.c168 cmin = strtol(optarg, &next, 10); in opt_ch()
169 if (next == optarg || *next != ':') in opt_ch()
180 errx(1, "%s: bad channel range", optarg); in opt_ch()
188 len = aparams_strtoenc(par, optarg); in opt_enc()
189 if (len == 0 || optarg[len] != '\0') in opt_enc()
190 errx(1, "%s: bad encoding", optarg); in opt_enc()
196 if (strcmp("off", optarg) == 0) in opt_mmc()
198 if (strcmp("slave", optarg) == 0) in opt_mmc()
200 errx(1, "%s: off/slave expected", optarg); in opt_mmc()
206 if (strcmp("off", optarg) == 0) in opt_onoff()
[all …]
/openbsd/src/regress/lib/libsndio/play/
Dplay.c59 if (sscanf(optarg, "%u", &par.rate) != 1) { in main()
60 fprintf(stderr, "%s: bad rate\n", optarg); in main()
65 if (sscanf(optarg, "%u", &par.pchan) != 1) { in main()
66 fprintf(stderr, "%s: bad channels\n", optarg); in main()
71 if (!sio_strtoenc(&par, optarg)) { in main()
72 fprintf(stderr, "%s: bad encoding\n", optarg); in main()
77 if (sscanf(optarg, "%u", &par.appbufsz) != 1) { in main()
78 fprintf(stderr, "%s: bad buf size\n", optarg); in main()
86 "%s: bad xrun mode\n", optarg); in main()
89 if (strcmp(xstr[par.xrun], optarg) == 0) in main()
/openbsd/src/regress/sys/netinet/mcast/
Dmcsend.c67 file = optarg; in main()
70 group = optarg; in main()
73 ifaddr = optarg; in main()
76 loop = strtonum(optarg, 0, 1, &errstr); in main()
78 errx(1, "loop is %s: %s", errstr, optarg); in main()
81 msg = optarg; in main()
84 port = strtonum(optarg, 1, 0xffff, &errstr); in main()
86 errx(1, "port is %s: %s", errstr, optarg); in main()
89 ttl = strtonum(optarg, 0, 255, &errstr); in main()
91 errx(1, "ttl is %s: %s", errstr, optarg); in main()
/openbsd/src/sbin/newfs/
Dnewfs.c214 Oflag = strtonum(optarg, 1, 2, &errstr); in main()
216 fatal("%s: invalid ffs version", optarg); in main()
220 if (scan_scaled(optarg, &sectorsize) == -1 || in main()
222 fatal("sector size invalid: %s", optarg); in main()
225 disktype = optarg; in main()
228 bsize = strtonum(optarg, MINBSIZE, MAXBSIZE, &errstr); in main()
230 fatal("block size is %s: %s", errstr, optarg); in main()
233 maxfrgspercg = strtonum(optarg, 1, INT_MAX, &errstr); in main()
236 errstr, optarg); in main()
239 maxbpg = strtonum(optarg, 1, INT_MAX, &errstr); in main()
[all …]
/openbsd/src/regress/sys/netinet6/mcast6/
Dmc6send.c69 file = optarg; in main()
72 group = optarg; in main()
75 ifname = optarg; in main()
78 loop = strtonum(optarg, 0, 1, &errstr); in main()
80 errx(1, "loop is %s: %s", errstr, optarg); in main()
83 msg = optarg; in main()
86 port = strtonum(optarg, 1, 0xffff, &errstr); in main()
88 errx(1, "port is %s: %s", errstr, optarg); in main()
91 ttl = strtonum(optarg, 0, 255, &errstr); in main()
93 errx(1, "ttl is %s: %s", errstr, optarg); in main()
/openbsd/src/usr.sbin/memconfig/
Dmemconfig.c167 if (!(owner = strdup(optarg))) in listfunc()
216 mrd.mr_base = strtoull(optarg, &ep, 0); in setfunc()
217 if ((ep == optarg) || (*ep != 0)) in setfunc()
221 mrd.mr_len = strtoull(optarg, &ep, 0); in setfunc()
222 if ((ep == optarg) || (*ep != 0)) in setfunc()
226 if (*optarg == 0 || in setfunc()
227 strlen(optarg) > sizeof(mrd.mr_owner)-1) in setfunc()
229 strlcpy(mrd.mr_owner, optarg, sizeof mrd.mr_owner); in setfunc()
275 mrd.mr_base = strtoull(optarg, &ep, 0); in clearfunc()
276 if ((ep == optarg) || (*ep != 0)) in clearfunc()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gdb/mi/
Dmi-getopt.c30 int *optind, char **optarg) in mi_getopt() argument
45 *optarg = NULL; in mi_getopt()
51 *optarg = NULL; in mi_getopt()
64 *optarg = argv[(*optind) + 1]; in mi_getopt()
70 *optarg = NULL; in mi_getopt()
82 char *optarg; in mi_valid_noargs() local
88 if (mi_getopt (prefix, argc, argv, opts, &optind, &optarg) == -1) in mi_valid_noargs()
/openbsd/src/gnu/usr.bin/binutils/gas/
Das.c501 if (md_parse_option (optc, optarg) != 0) in parse_args()
512 if (optarg && *optarg) in parse_args()
513 new_argv[new_argc++] = optarg, new_argv[new_argc] = NULL; in parse_args()
529 if (!strcmp (optarg, "-")) in parse_args()
530 optarg = ""; in parse_args()
531 new_argv[new_argc++] = optarg; in parse_args()
575 if (strcmp (optarg, this_emulation->name)) in parse_args()
600 for (s = optarg; *s != '\0' && *s != '='; s++) in parse_args()
612 n->name = optarg; in parse_args()
625 if (optarg == NULL) in parse_args()
[all …]
/openbsd/src/usr.bin/getcap/
Dgetcap.c53 if (*optarg == '\0') in main()
55 cap = optarg; in main()
59 if (*optarg == '\0') in main()
61 cap = optarg; in main()
65 if (*optarg == '\0') in main()
67 cap = optarg; in main()
71 if (*optarg == '\0') in main()
73 cap = optarg; in main()
79 for (n = 1, cp = optarg; (cp = strchr(cp, ':')); n++) in main()
82 for (n = 0; (pathvec[n] = strsep(&optarg, ":"));) { in main()

12345678910>>...26