Home
last modified time | relevance | path

Searched refs:optchar (Results 1 – 24 of 24) sorted by relevance

/netbsd-src/external/bsd/libfido2/dist/openbsd-compat/
H A Dgetopt_long.c289 int optchar, short_too; in getopt_internal() local
408 optchar = parse_long_options(nargv, options, long_options, in getopt_internal()
410 if (optchar != -1) { in getopt_internal()
412 return (optchar); in getopt_internal()
416 if ((optchar = (int)*place++) == (int)':' || in getopt_internal()
417 (optchar == (int)'-' && *place != '\0') || in getopt_internal()
418 (oli = strchr(options, optchar)) == NULL) { in getopt_internal()
424 if (optchar == (int)'-' && *place == '\0') in getopt_internal()
429 warnx(illoptchar, optchar); in getopt_internal()
430 optopt = optchar; in getopt_internal()
[all …]
/netbsd-src/external/bsd/elftosb/dist/common/
H A Doptions.cpp273 isNullOpt(char optchar) { in isNullOpt() argument
274 return ((! optchar) || isspace(optchar) || (! isprint(optchar))); in isNullOpt()
509 char optchar = OptChar(); in Format()
532 ((! isNullOpt(optchar)) || (optctrls & Options::NOGUESSING))) { in Format()
537 optchar = '\0'; in Format()
539 if (isNullOpt(optchar) && (longopt == NULL)) { in Format()
547 if (! isNullOpt(optchar)) { in Format()
549 *(p++) = optchar; in Format()
552 if ((! isNullOpt(optchar)) && (longopt)) *(p++) = '|'; in Format()
653 char optchar = optspec.OptChar(); in match_opt() local
[all …]
/netbsd-src/lib/libc/stdlib/
H A Dgetopt_long.c171 int optchar; in getopt_internal() local
248 if ((optchar = (int)*place++) == (int)':' || in getopt_internal()
249 (oli = strchr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) { in getopt_internal()
254 warnx(illoptchar, optchar); in getopt_internal()
255 optopt = optchar; in getopt_internal()
258 if (optchar == 'W' && oli[1] == ';') { /* -W long-option */ in getopt_internal()
266 warnx(recargchar, optchar); in getopt_internal()
267 optopt = optchar; in getopt_internal()
289 warnx(recargchar, optchar); in getopt_internal()
290 optopt = optchar; in getopt_internal()
[all …]
/netbsd-src/external/bsd/file/dist/src/
H A Dgetopt_long.c189 int optchar; local
266 if ((optchar = (int)*place++) == (int)':' ||
267 (oli = strchr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) {
272 warnx(illoptchar, optchar);
273 optopt = optchar;
276 if (optchar == 'W' && oli[1] == ';') { /* -W long-option */
284 warnx(recargchar, optchar);
285 optopt = optchar;
307 warnx(recargchar, optchar);
308 optopt = optchar;
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/
H A Dtstngettext.c65 int optchar; in main() local
94 while ((optchar = getopt_long (argc, argv, "+d:hV", long_options, NULL)) in main()
96 switch (optchar) in main()
H A Dtstgettext.c77 int optchar; in main() local
106 while ((optchar = getopt_long (argc, argv, "+d:eEhnsV", long_options, NULL)) in main()
108 switch (optchar) in main()
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/src/
H A Dngettext.c66 int optchar; in main() local
95 while ((optchar = getopt_long (argc, argv, "+d:eEhV", long_options, NULL)) in main()
97 switch (optchar) in main()
H A Dgettext.c71 int optchar; in main() local
99 while ((optchar = getopt_long (argc, argv, "+d:eEhnsV", long_options, NULL)) in main()
101 switch (optchar) in main()
/netbsd-src/external/bsd/elftosb/dist/keygen/
H A Dkeygen.cpp120 int optchar; in processOptions() local
122 while (optchar = options(iter, optarg)) in processOptions()
124 switch (optchar) in processOptions()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/
H A Durlget.c86 int optchar; in main() local
111 while ((optchar = getopt_long (argc, argv, "hV", long_options, NULL)) != EOF) in main()
112 switch (optchar) in main()
H A Dmsguniq.c102 int optchar; in main() local
140 while ((optchar = getopt_long (argc, argv, "dD:eEFhino:pPst:uVw:", in main()
142 switch (optchar) in main()
H A Dmsgcat.c106 int optchar; in main() local
144 while ((optchar = getopt_long (argc, argv, "<:>:D:eEf:Fhino:pPst:uVw:", in main()
146 switch (optchar) in main()
H A Dmsgcomm.c109 int optchar; in main() local
143 while ((optchar = getopt_long (argc, argv, "<:>:D:eEf:Fhino:pPst:uVw:", in main()
145 switch (optchar) in main()
H A Dhostname.c123 int optchar; in main() local
149 while ((optchar = getopt_long (argc, argv, "fhisV", long_options, NULL)) in main()
151 switch (optchar) in main()
H A Dmsgunfmt.c118 int optchar; in main() local
143 while ((optchar = getopt_long (argc, argv, "d:eEhijl:o:pr:svVw:", in main()
146 switch (optchar) in main()
H A Dmsgcmp.c89 int optchar; in main() local
114 while ((optchar = getopt_long (argc, argv, "D:hmPV", long_options, NULL)) in main()
116 switch (optchar) in main()
H A Dmsgattrib.c134 int optchar; in main() local
174 while ((optchar = getopt_long (argc, argv, "D:eEFhino:pPsVw:", long_options, in main()
176 switch (optchar) in main()
H A Dxgettext.c271 int optchar; in main() local
326 while ((optchar = getopt_long (argc, argv, in main()
329 switch (optchar) in main()
/netbsd-src/external/bsd/elftosb/dist/encryptgpk/
H A Dencryptgpk.cpp161 int optchar; in processOptions() local
163 while (optchar = options(iter, optarg)) in processOptions()
165 switch (optchar) in processOptions()
/netbsd-src/external/bsd/elftosb/dist/elftosb2/
H A Delftosb.cpp214 int optchar; in processOptions() local
216 while (optchar = options(iter, optarg)) in processOptions()
218 switch (optchar) in processOptions()
/netbsd-src/usr.bin/radioctl/
H A Dradioctl.c115 int optchar; in main() local
130 while ((optchar = getopt(argc, argv, "af:nw:")) != -1) { in main()
131 switch (optchar) { in main()
/netbsd-src/external/bsd/flex/dist/src/
H A Dscanopt.c506 char optchar[2]; in scanopt_err() local
512 optchar[0] = in scanopt_err()
514 optchar[1] = '\0'; in scanopt_err()
515 optname = optchar; in scanopt_err()
/netbsd-src/external/bsd/elftosb/dist/sbtool/
H A Dsbtool.cpp141 int optchar; in processOptions() local
143 while (optchar = options(iter, optarg)) in processOptions()
145 switch (optchar) in processOptions()
/netbsd-src/usr.bin/units/
H A Dunits.c865 int optchar; in main() local
870 while ((optchar = getopt(argc, argv, "lLvqf:")) != -1) { in main()
871 switch (optchar) { in main()