/illumos-gate/usr/src/cmd/lvm/metassist/controller/ |
H A D | getopt_ext.c | 41 * 1. If "-" is the first character of optstring, each non-option argv 62 * @param optstring 68 * if the option is not found in optstring 74 * if "-" is not the first character in optstring and a 78 * if "-" is the first character in optstring and a 92 const char *optstring) 95 int handle_non_options = (*optstring == '-'); 97 /* Is "-" the first character of optstring? */ 100 optstring++; 103 switch (c = getopt(argc, argv, optstring)) { 89 getopt_ext( int argc, char * const argv[], const char *optstring) argument [all...] |
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | mbchk.c | 28 static char *optstring = "hvq"; variable 191 c = getopt_long (argc, argv, optstring, longopts, 0);
|
/illumos-gate/usr/src/cmd/hostname/ |
H A D | hostname.c | 70 char *optstring = "s"; local 78 while ((optlet = getopt(argc, argv, optstring)) != -1) {
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getopt.c | 57 * that would require moving the 'optstring[0]' test outside of the 60 #define ERR(s, c, i) if (opterr && optstring[0] != ':') { \ 81 * (optstring) as a regular, single character option. If the option is found, 82 * return a pointer into optstring pointing at the short-option character, 86 parseshort(const char *optstring, const char c) argument 88 char *cp = (char *)optstring; 104 * (optstring) as a long-option contained within parenthesis. If the 107 * return a pointer into optstring pointing at the short-option character 110 * optstring The entire optstring passe 129 parselong(const char *optstring, const char *opt, char **longoptarg) argument 179 getopt(int argc, char *const *argv, const char *optstring) argument [all...] |
H A D | getopt_long.c | 97 #define FLAG_W_SEMICOLON 0x40 /* Support for W; in optstring */ 98 #define FLAG_PLUS_DASH_START 0x80 /* leading '+' or '-' in optstring */ 475 * + or - at start of optstring takes precedence 721 const char *optstring, 726 nargc, nargv, optstring, long_options, long_index, 742 const char *optstring, 747 nargc, nargv, optstring, long_options, long_index, 777 * o Leading + or - in optstring is ignored, and opstring is 782 const char *optstring, 786 nargc, nargv, optstring, long_option 720 getopt_long(int nargc, char *const *nargv, const char *optstring, const struct option *long_options, int *long_index) argument 741 getopt_long_only(int nargc, char *const *nargv, const char *optstring, const struct option *long_options, int *long_index) argument 781 getopt_clip(int nargc, char *const *nargv, const char *optstring, const struct option *long_options, int *long_index) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | getoptl.c | 42 golly(int argc, char* const* argv, const char* optstring, const struct option* longopts, int* longindex, int flags) argument 49 if (!up || optstring != lastoptstring || longopts != lastlongopts) 54 t = strdup(optstring); 101 lastoptstring = optstring; 115 if (opterr && (!optstring || *optstring != ':')) 142 getopt_long(int argc, char* const* argv, const char* optstring, const struct option* longopts, int* longindex) argument 144 return golly(argc, argv, optstring, longopts, longindex, 2); 148 getopt_long_only(int argc, char* const* argv, const char* optstring, const struct option* longopts, int* longindex) argument 150 return golly(argc, argv, optstring, longopt [all...] |
/illumos-gate/usr/src/cmd/uname/ |
H A D | uname.c | 59 char *optstring = "asnrpvmiS:X"; local 79 while ((optlet = getopt(argc, argv, optstring)) != EOF)
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 48 private String optstring; field in class:Getopt 74 optstring = optionString; 91 if (optstring == null) { 121 if (opterr && optstring.charAt(0) != ':') { 132 * (optstring) as a regular, single character option. If the option 133 * is found, return an index into optstring where the short-option 138 parseshort(String optstring, char c) argument 145 int len = optstring.length(); 147 ch = optstring.charAt(i); 153 for (++i; i < len && (ch = optstring 185 parselong(String optstring, String opt, StringRef longoptarg) argument [all...] |
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 170 static const char *optstring = "abcdDvVxmpPFf:M:dLuC"; variable 172 static const char *optstring = "abcdDvVxmpPFf:uC"; variable 185 while ((c = getopt(argc, argv, optstring)) != -1) {
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | util.c | 367 populate_opts(char *optstring) argument 373 if (optstring == NULL || *optstring == '\0') 381 for (i = 0; *optstring != '\0'; i++) { 390 marker = optstring; /* may need optstring later */ 403 optstring = marker + opts_av[i].longnm_len + 1; 406 opts_av[i].longnm = optstring; 408 optstring = marker; 423 getopt_av(int argc, char * const *argv, const char *optstring) argument [all...] |
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | adm.c | 447 char *optstring = NULL; local 529 optstring = "Ffrab"; 531 optstring = "pd:"; 533 optstring = "F"; 535 optstring = "f:"; 537 optstring = "Fryszabepcdlvt:f:w:"; 539 while ((c = getopt(argc, argv, optstring)) != EOF) {
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | typeset.c | 208 const char *optstring = sh_opttypeset; local 219 optstring = ntp->optstring; 222 while((n = optget(argv,optstring)))
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 445 * find_or_create_zfs_subgroup(groupname, optstring, *err) 458 char *optstring, int *err) 492 if (strcmp(optstring, "on") == 0) 493 optstring = "rw"; 494 options = strdup(optstring); 1101 char *optstring; local 1144 /* update only when there is an optstring found */ 1147 optstring = sa_proto_legacy_format(proto, 1152 if (optstring != NULL && zfsopts != NULL) { 1153 if (strcmp(optstring, zfsopt 457 find_or_create_zfs_subgroup(sa_handle_t handle, char *groupname, char *proto, char *optstring, int *err) argument [all...] |
/illumos-gate/usr/src/lib/libshell/amd64/include/ast/ |
H A D | nval.h | 113 const char *optstring; member in struct:Namdecl
|
/illumos-gate/usr/src/lib/libshell/common/include/ |
H A D | nval.h | 104 const char *optstring; member in struct:Namdecl
|
/illumos-gate/usr/src/lib/libshell/i386/include/ast/ |
H A D | nval.h | 113 const char *optstring; member in struct:Namdecl
|
/illumos-gate/usr/src/lib/libshell/sparc/include/ast/ |
H A D | nval.h | 113 const char *optstring; member in struct:Namdecl
|
/illumos-gate/usr/src/lib/libshell/sparcv9/include/ast/ |
H A D | nval.h | 113 const char *optstring; member in struct:Namdecl
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 1268 const char *optstring; local 1284 optstring = "dlnqy"; 1290 optstring = "dlnqy"; 1297 optstring = "dlnqpfe:"; 1300 optstring = "dlnqfp"; 1311 while ((c = getopt(argc, argv, optstring)) != EOF) {
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | common.c | 391 populate_opts(char *optstring) argument 397 if (optstring == NULL || *optstring == '\0') 405 for (i = 0; *optstring != '\0'; i++) { 417 marker = optstring; /* may need optstring later */ 430 optstring = marker + opts_av[i].longnm_len + 1; 433 opts_av[i].longnm = optstring; 435 optstring = marker; 452 getopt_av(int argc, char * const *argv, const char *optstring) argument [all...] |
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | common.c | 293 char *optstring, *common_opts; local 408 /* note: optstring must include room for liblcache "C:" option */ 409 if (( optstring = (char *) malloc( strlen( extra_opts ) + strlen( common_opts ) 416 sprintf( optstring, "%s%s", common_opts, extra_opts ); 418 sprintf( optstring, "%s%sC:", common_opts, extra_opts ); 422 while ( (i = getopt( argc, argv, optstring )) != EOF ) { 864 free( optstring );
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 2901 char optstring[4]; local 2904 (void) sprintf(optstring, " -%c", opt); 2906 (void) strcpy(optstring, " "); 2908 if ((strlcat(buf, optstring, bufsize) > bufsize))
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 646 const char *optstring = "a:d:fi:m:no:veFCR:p:P:XZ"; local 648 const char *optstring = "a:d:fi:m:no:veFCMR:p:P:XZ"; local 655 while ((c = getopt(argc, argv, optstring)) != -1) {
|