Searched refs:optstring (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/cmd/lvm/metassist/controller/
H A Dgetopt_ext.c41 * 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...]
H A Dgetopt_ext.h62 * 1. If "-" is the first character of optstring, each non-option argv
83 * @param optstring
89 * if the option is not found in optstring
95 * if "-" is not the first character in optstring and a
99 * if "-" is the first character in optstring and a
109 extern int getopt_ext(int argc, char * const argv[], const char *optstring);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dgetopt.c47 getopt(int argc, char* const* argv, const char* optstring)
55 switch (n = optget((char**)argv, optstring))
61 if (opterr && (!optstring || *optstring != ':'))
H A Dgetoptl.c42 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/lib/libc/port/gen/
H A Dgetopt.c57 * 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 Dgetopt_long.c97 #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/cmd/dtrace/test/cmd/jdtrace/
H A DGetopt.java48 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/grub/grub-0.97/lib/
H A Dgetopt.c396 _getopt_initialize (argc, argv, optstring)
399 const char *optstring;
413 if (optstring[0] == '-')
416 ++optstring;
418 else if (optstring[0] == '+')
421 ++optstring;
458 return optstring;
519 _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
522 const char *optstring;
533 optstring
[all...]
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dutil.c367 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/hostname/
H A Dhostname.c70 char *optstring = "s"; local
78 while ((optlet = getopt(argc, argv, optstring)) != -1) {
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmbchk.c28 static char *optstring = "hvq"; variable
191 c = getopt_long (argc, argv, optstring, longopts, 0);
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c445 * 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/cmd/uname/
H A Duname.c59 char *optstring = "asnrpvmiS:X"; local
79 while ((optlet = getopt(argc, argv, optstring)) != EOF)
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dcommon.c391 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...]
H A Dcommon.h108 extern int getopt_av(int argc, char * const argv[], const char *optstring);
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c170 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/luxadm/
H A Dadm.c447 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/cmd/ldap/common/
H A Dldaptool.h60 extern int getopt (int argc, char *const *argv, const char *optstring);
H A Dcommon.c293 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/halt/
H A Dhalt.c1268 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/lib/libshell/common/include/
H A Dnval.h104 const char *optstring; member in struct:Namdecl
/illumos-gate/usr/src/lib/libshell/amd64/include/ast/
H A Dnval.h113 const char *optstring; member in struct:Namdecl
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dtypeset.c208 const char *optstring = sh_opttypeset; local
219 optstring = ntp->optstring;
222 while((n = optget(argv,optstring)))
/illumos-gate/usr/src/lib/libshell/i386/include/ast/
H A Dnval.h113 const char *optstring; member in struct:Namdecl
/illumos-gate/usr/src/lib/libshell/sparc/include/ast/
H A Dnval.h113 const char *optstring; member in struct:Namdecl

Completed in 134 milliseconds

12