| /src/tests/lib/libc/stdlib/ |
| h_getopt.c | 45 char *line, *ptr, *optstring = NULL, *result = NULL; local 54 if (optstring) 55 free(optstring); 56 optstring = strtok(&line[6], WS); 57 if (optstring == NULL) 58 errx(1, "missing optstring at line %ld", 60 optstring = strdup(optstring); 62 fprintf(stderr, "optstring = %s\n", optstring); [all...] |
| h_getopt_long.c | 47 char *line, *eptr, *longopt, *ptr, *optstring = NULL, *result = NULL; local 59 if (strncmp(line, "optstring:", 10) == 0) { 60 if (optstring) 61 free(optstring); 62 optstring = strtok(&line[11], WS); 63 if (optstring == NULL) 64 errx(1, "missing optstring at line %ld", 66 optstring = strdup(optstring); 170 if (optstring == NULL [all...] |
| /src/bin/pax/ |
| getoldopt.c | 36 getoldopt(int argc, char **argv, const char *optstring, 65 return getopt_long(argc, argv, optstring, 68 return getopt(argc, argv, optstring); 72 place = strchr(optstring, c);
|
| /src/external/gpl2/mkhybrid/dist/ |
| getopt.c | 293 _getopt_initialize (const char *optstring) 305 if (optstring[0] == '-') 308 ++optstring; 310 else if (optstring[0] == '+') 313 ++optstring; 320 return optstring; 325 given in OPTSTRING. 342 OPTSTRING is a string containing the legitimate option characters. 343 If an option character is seen that is not listed in OPTSTRING, 347 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl2/diffutils/dist/lib/ |
| getopt.c | 401 _getopt_initialize (argc, argv, optstring) 404 const char *optstring; 418 if (optstring[0] == '-') 421 ++optstring; 423 else if (optstring[0] == '+') 426 ++optstring; 463 return optstring; 468 given in OPTSTRING. 485 OPTSTRING is a string containing the legitimate option characters. 486 If an option character is seen that is not listed in OPTSTRING, [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/config/ |
| print-sysroot-suffix.sh | 81 optstring="$2" 86 case $optstring in 91 echo "/$r/) optstring=\"/$l/\" ;;" >> print-sysroot-suffix2.sh 100 echo ' optstring=`echo "/$optstring" | sed '"$pat\`" >> print-sysroot-suffix2.sh 102 case $optstring in 106 echo "$optstring" 124 bit=`"$0" "$padding " "$optstring$x/" "$@"` 137 bit=`"$0" "$padding " "$optstring" "$@"`
|
| /src/external/gpl3/gcc/dist/gcc/config/ |
| print-sysroot-suffix.sh | 81 optstring="$2" 86 case $optstring in 91 echo "/$r/) optstring=\"/$l/\" ;;" >> print-sysroot-suffix2.sh 100 echo ' optstring=`echo "/$optstring" | sed '"$pat\`" >> print-sysroot-suffix2.sh 102 case $optstring in 106 echo "$optstring" 124 bit=`"$0" "$padding " "$optstring$x/" "$@"` 137 bit=`"$0" "$padding " "$optstring" "$@"`
|
| /src/external/gpl2/grep/dist/lib/ |
| getopt.c | 393 _getopt_initialize (argc, argv, optstring) 396 const char *optstring; 410 if (optstring[0] == '-') 413 ++optstring; 415 else if (optstring[0] == '+') 418 ++optstring; 455 return optstring; 460 given in OPTSTRING. 477 OPTSTRING is a string containing the legitimate option characters. 478 If an option character is seen that is not listed in OPTSTRING, [all...] |
| /src/external/gpl2/gmake/dist/ |
| getopt.c | 373 _getopt_initialize (int argc, char *const *argv, const char *optstring) 387 if (optstring[0] == '-') 390 ++optstring; 392 else if (optstring[0] == '+') 395 ++optstring; 432 return optstring; 437 given in OPTSTRING. 454 OPTSTRING is a string containing the legitimate option characters. 455 If an option character is seen that is not listed in OPTSTRING, 459 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/binutils/dist/libiberty/ |
| getopt.c | 399 const char *optstring) 413 if (optstring[0] == '-') 416 ++optstring; 418 else if (optstring[0] == '+') 421 ++optstring; 458 return optstring; 463 given in OPTSTRING. 480 OPTSTRING is a string containing the legitimate option characters. 481 If an option character is seen that is not listed in OPTSTRING, 485 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/binutils.old/dist/libiberty/ |
| getopt.c | 399 const char *optstring) 413 if (optstring[0] == '-') 416 ++optstring; 418 else if (optstring[0] == '+') 421 ++optstring; 458 return optstring; 463 given in OPTSTRING. 480 OPTSTRING is a string containing the legitimate option characters. 481 If an option character is seen that is not listed in OPTSTRING, 485 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/gcc.old/dist/libiberty/ |
| getopt.c | 405 const char *optstring) 419 if (optstring[0] == '-') 422 ++optstring; 424 else if (optstring[0] == '+') 427 ++optstring; 464 return optstring; 469 given in OPTSTRING. 486 OPTSTRING is a string containing the legitimate option characters. 487 If an option character is seen that is not listed in OPTSTRING, 491 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/gcc/dist/libiberty/ |
| getopt.c | 405 const char *optstring) 419 if (optstring[0] == '-') 422 ++optstring; 424 else if (optstring[0] == '+') 427 ++optstring; 464 return optstring; 469 given in OPTSTRING. 486 OPTSTRING is a string containing the legitimate option characters. 487 If an option character is seen that is not listed in OPTSTRING, 491 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/gdb/dist/libiberty/ |
| getopt.c | 405 const char *optstring) 419 if (optstring[0] == '-') 422 ++optstring; 424 else if (optstring[0] == '+') 427 ++optstring; 464 return optstring; 469 given in OPTSTRING. 486 OPTSTRING is a string containing the legitimate option characters. 487 If an option character is seen that is not listed in OPTSTRING, 491 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl3/gdb.old/dist/libiberty/ |
| getopt.c | 405 const char *optstring) 419 if (optstring[0] == '-') 422 ++optstring; 424 else if (optstring[0] == '+') 427 ++optstring; 464 return optstring; 469 given in OPTSTRING. 486 OPTSTRING is a string containing the legitimate option characters. 487 If an option character is seen that is not listed in OPTSTRING, 491 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/bsd/ntp/dist/libntp/ |
| getopt.c | 58 const char *optstring 89 for (place = optstring; place != NULL && *place != '\0'; ++place)
|
| /src/usr.bin/passwd/ |
| passwd.c | 252 char optstring[64]; /* if we ever get more than 64 args, shoot me. */ local 301 optstring[0] = '\0'; 309 if ((oopt = strchr(optstring, *curopt)) == NULL) { 310 optstring[j++] = *curopt; 313 optstring[j++] = *curopt; 315 optstring[j] = '\0'; 326 while ((ch = getopt(argc, argv, optstring)) != -1)
|
| /src/usr.sbin/eeprom/ |
| main.c | 90 const char *optstring = "-cf:iv"; local 92 const char *optstring = "-cf:i"; local 95 while ((ch = getopt(argc, argv, optstring)) != -1)
|
| /src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/ |
| getopt.c | 236 _getopt_initialize (int argc, char **argv, const char *optstring, 251 if (optstring[0] == '-') 254 ++optstring; 256 else if (optstring[0] == '+') 259 ++optstring; 296 return optstring; 301 given in OPTSTRING. 318 OPTSTRING is a string containing the legitimate option characters. 319 If an option character is seen that is not listed in OPTSTRING, 323 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| getopt.c | 236 _getopt_initialize (int argc, char **argv, const char *optstring, 251 if (optstring[0] == '-') 254 ++optstring; 256 else if (optstring[0] == '+') 259 ++optstring; 296 return optstring; 301 given in OPTSTRING. 318 OPTSTRING is a string containing the legitimate option characters. 319 If an option character is seen that is not listed in OPTSTRING, 323 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl2/groff/dist/src/libs/libgroff/ |
| getopt.c | 240 _getopt_initialize (int argc, char **argv, const char *optstring, 255 if (optstring[0] == '-') 258 ++optstring; 260 else if (optstring[0] == '+') 263 ++optstring; 300 return optstring; 305 given in OPTSTRING. 322 OPTSTRING is a string containing the legitimate option characters. 323 If an option character is seen that is not listed in OPTSTRING, 327 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl2/texinfo/dist/lib/ |
| getopt.c | 258 _getopt_initialize (int argc, char *const *argv, const char *optstring, 273 if (optstring[0] == '-') 276 ++optstring; 278 else if (optstring[0] == '+') 281 ++optstring; 318 return optstring; 323 given in OPTSTRING. 340 OPTSTRING is a string containing the legitimate option characters. 341 If an option character is seen that is not listed in OPTSTRING, 345 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/external/gpl2/xcvs/dist/lib/ |
| getopt.c | 259 _getopt_initialize (int argc, char **argv, const char *optstring, 274 if (optstring[0] == '-') 277 ++optstring; 279 else if (optstring[0] == '+') 282 ++optstring; 319 return optstring; 324 given in OPTSTRING. 341 OPTSTRING is a string containing the legitimate option characters. 342 If an option character is seen that is not listed in OPTSTRING, 346 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
| /src/sbin/fsck_lfs/ |
| main.c | 78 const char *optstring = "ab:dfi:m:npPqUy"; local 88 while ((ch = getopt(argc, argv, optstring)) != -1) {
|
| /src/external/bsd/less/dist/ |
| option.c | 28 static char *optstring(char *s, char **p_str, char *printopt, char *validchars); 145 s = optstring(s, &str, propt('+'), NULL); 268 s = optstring(s, &str, printopt, o->odesc[1]); 565 static char * optstring(char *s, char **p_str, char *printopt, char *validchars) function
|