/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | option.c | 447 proc_type(char *optstr) in proc_type() argument 461 if (a_isnum(optstr, TRUE)) { in proc_type() 462 if ((aep = getauevnam(optstr)) != NULL) in proc_type() 465 if ((aep = getauevnum((au_event_t)atoi(optstr))) != in proc_type() 470 (void) sprintf(errbuf, gettext("invalid event (%s)"), optstr); in proc_type() 522 proc_id(char *optstr, int opt) in proc_id() argument 532 return (proc_user(optstr, &m_usere)); in proc_id() 540 return (proc_group(optstr, &m_groupe)); in proc_id() 548 return (proc_user(optstr, &m_userr)); in proc_id() 556 return (proc_user(optstr, &m_usera)); in proc_id() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfzone.c | 34 getzonearg(int argc, char *argv[], const char *optstr) in getzonearg() argument 49 while ((c = getopt(argc, argv, optstr)) != -1) { in getzonearg() 69 getzoneopt(int argc, char *argv[], const char *optstr) in getzoneopt() argument 79 while ((c = getopt(argc, argv, optstr)) != -1) { in getzoneopt()
|
H A D | ipf.c | 80 const char *optstr = "6Ac:dDEf:F:GIl:noPrRsT:vVyzZ"; local 92 getzonearg(argc, argv, optstr); 94 while ((c = getopt(argc, argv, optstr)) != -1) {
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 326 cvt_metal_option(char *optstr) in cvt_metal_option() argument 331 if (strcmp(optstr, ZFS_BOOTSTR) == 0) { in cvt_metal_option() 336 if ((value = strchr(optstr, '=')) == NULL) in cvt_metal_option() 339 namlen = value - optstr; in cvt_metal_option() 344 if (strncmp(optstr, "console", namlen) == 0) { in cvt_metal_option() 349 if ((strncmp(optstr, "ttya-mode", namlen) == 0) || in cvt_metal_option() 350 (strncmp(optstr, "ttyb-mode", namlen) == 0)) { in cvt_metal_option() 351 char *port = strndupa(optstr, namlen); in cvt_metal_option() 371 cvt_hyper_option(char *optstr) in cvt_hyper_option() argument 383 if (strcmp(optstr, ZFS_BOOTSTR) == 0) { in cvt_hyper_option() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/amd64/ |
H A D | bhyverun_machdep.c | 140 const char *optstr; in bhyve_optparse() local 144 optstr = "aehuwxACDHIPSWYk:f:o:p:G:c:s:m:l:K:U:"; in bhyve_optparse() 147 optstr = "adehuwxACDHIPSWYk:f:o:G:c:s:m:l:B:K:U:"; in bhyve_optparse() 149 while ((c = getopt(argc, argv, optstr)) != -1) { in bhyve_optparse()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | misc.c | 400 register const char *optstr = sh_optbg; in b_bg() local 402 optstr = sh_optfg; in b_bg() 404 optstr = sh_optdisown; in b_bg() 405 while((n = optget(argv,optstr))) switch(n) in b_bg() 514 register const char *optstr; in b_vpath() local 519 optstr = sh_optvpath; in b_vpath() 524 optstr = sh_optvmap; in b_vpath() 527 while(n = optget(argv, optstr)) switch(n) in b_vpath()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/roll_log/ |
H A D | roll_log.c | 378 char *optstr; in rlmount() local 393 optstr = MNTOPT_RO; in rlmount() 397 optstr = MNTOPT_RW; in rlmount() 404 optstr, MNTOPT_NOSUID, MNTOPT_LARGEFILES); in rlmount()
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t3.c | 19 struct optstr {char *optnam; int *optadd;} options [] = { struct 48 struct optstr *lp; in getcomm()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_main.c | 240 const char optstr[] = "f:o:R:V"; in main() local 251 while ((c = getopt(argc, argv, optstr)) != EOF) { in main() 290 for (optind = 1; (c = getopt(argc, argv, optstr)) != EOF; ) { in main()
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 1629 char optstr[MAX_MNTOPT_STR]; in loopback_mount_shared_fs() local 1667 (void) strlcpy(optstr, MNTOPT_NOSUB, sizeof (optstr)); in loopback_mount_shared_fs() 1671 NULL, 0, optstr, sizeof (optstr)) != 0) { in loopback_mount_shared_fs() 1710 char optstr[MAX_MNTOPT_STR]; in loopback_mount_zonepath() local 1806 (void) strlcpy(optstr, MNTOPT_NOSUB, sizeof (optstr)); in loopback_mount_zonepath() 1810 NULL, 0, optstr, sizeof (optstr)) != 0) { in loopback_mount_zonepath() 2707 char optstr[MAX_MNTOPT_STR]; in mount_zfs() local 2711 optstr[0] = '\0'; in mount_zfs() 2752 MNTTYPE_ZFS, NULL, 0, optstr, sizeof (optstr))) { in mount_zfs()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 483 blksize_handler(char *optstr) in blksize_handler() argument 492 value = (int)strtol(optstr, &endp, 10); in blksize_handler() 505 timeout_handler(char *optstr) in timeout_handler() argument 514 value = (int)strtol(optstr, &endp, 10); in timeout_handler() 529 tsize_handler(char *optstr) in tsize_handler() argument 538 value = strtoll(optstr, &endp, 10); in tsize_handler()
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 119 err(String format, char c, String optstr) in err() argument 124 p.printf(format, progname, (optstr == null ? in err() 125 Character.toString(c) : optstr.substring(2))); in err()
|
/illumos-gate/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 543 char *optstr = NULL; in main() local 563 optstr = "hsv:l:"; in main() 567 optstr = "sv:l:"; in main() 570 while ((c = getopt(argc, argv, optstr)) != -1) { in main()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap.c | 513 char *optstr; in ap_opt_parse() local 526 if ((optstr = strdup(options)) == NULL) { in ap_opt_parse() 531 a->options = optstr; in ap_opt_parse() 536 while (*optstr != '\0') { in ap_opt_parse() 545 opt = getsubopt(&optstr, ap_opt_names, &value); in ap_opt_parse()
|
/illumos-gate/usr/src/cmd/fm/ipmitopo/common/ |
H A D | ipmitopo.c | 31 static const char optstr[] = "h:p:u:t:"; variable 142 while ((c = getopt(argc, argv, optstr)) != -1) in main()
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 597 const char *optstr; in main() local 622 optstr = PKILL_OPTS; in main() 625 optstr = PGREP_OPTS; in main() 630 while ((c = getopt(argc, argv, optstr)) != (int)EOF) { in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | option.h | 102 extern int optstr(const char*, const char*);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | option.h | 100 extern int optstr(const char*, const char*);
|
/illumos-gate/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 141 char *optstr; in main() local 171 optstr = MAC_OPTIONS; in main() 173 optstr = DIGEST_OPTIONS; in main() 177 while (!errflag && (c = getopt(argc, argv, optstr)) != -1) { in main()
|
/illumos-gate/usr/src/lib/madv/common/ |
H A D | madv.c | 303 advice_opts(char *optstr, const char *execname, char *cfgfile, int lineno) in advice_opts() argument 309 while (*optstr != '\0') { in advice_opts() 310 opt = getsubopt(&optstr, legal_optstr, &value); in advice_opts()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 1842 char *optstr = NULL; in update_device() local 1854 if ((optstr = (char *)malloc(len)) == NULL) in update_device() 1856 (void) snprintf(optstr, len, "%s%s%s", DAOPT_ZONE, KV_ASSIGN, in update_device() 1858 devinfo.devopts = optstr; in update_device() 1864 if (optstr) in update_device() 1865 free(optstr); in update_device()
|
/illumos-gate/usr/src/cmd/cfgadm/ |
H A D | cfgadm.c | 949 char *cp = NULL, *optstr = NULL, *attr = NULL, *val = NULL; in parse_select_opt() local 959 optstr = config_calloc_check(1, strlen(selectp) + 1); in parse_select_opt() 960 if (optstr == NULL) { in parse_select_opt() 964 (void) strcpy(optstr, selectp); in parse_select_opt() 969 cp = attr = optstr; in parse_select_opt() 1033 S_FREE(optstr); in parse_select_opt()
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | isoboot.c | 68 static const char optstr[NOPT] = "DhaCcdgmnpqrsv"; /* Also 'P', 'S' */ variable 487 for (i = 0; c != optstr[i]; i++) in parse_cmds()
|
/illumos-gate/usr/src/cmd/compress/ |
H A D | compress.c | 220 static char *optstr; variable 397 optstr = "b:cCdDfFnqvV/"; in main() 399 optstr = "b:cCdfFnqvV/"; in main() 402 while ((ch = getopt(argc, argv, optstr)) != EOF) { in main()
|
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/ |
H A D | decrypt.c | 198 char *optstr; in main() local 229 optstr = cmd->options; in main() 232 while (!errflag && (c = getopt(argc, argv, optstr)) != -1) { in main()
|