usr/src/boot/i386/gptzfsboot/zfsboot.c
610
for (i = 0; c != optstr[i]; i++)
usr/src/boot/i386/gptzfsboot/zfsboot.c
76
static const char optstr[NOPT] = "DhaCcdgmnpqrstv"; /* Also 'P', 'S' */
usr/src/boot/i386/isoboot/isoboot.c
487
for (i = 0; c != optstr[i]; i++)
usr/src/boot/i386/isoboot/isoboot.c
68
static const char optstr[NOPT] = "DhaCcdgmnpqrsv"; /* Also 'P', 'S' */
usr/src/cmd/allocate/allocate3.c
1842
char *optstr = NULL;
usr/src/cmd/allocate/allocate3.c
1854
if ((optstr = (char *)malloc(len)) == NULL)
usr/src/cmd/allocate/allocate3.c
1856
(void) snprintf(optstr, len, "%s%s%s", DAOPT_ZONE, KV_ASSIGN,
usr/src/cmd/allocate/allocate3.c
1858
devinfo.devopts = optstr;
usr/src/cmd/allocate/allocate3.c
1864
if (optstr)
usr/src/cmd/allocate/allocate3.c
1865
free(optstr);
usr/src/cmd/auditreduce/option.c
1140
proc_label(char *optstr)
usr/src/cmd/auditreduce/option.c
1157
p = strchr(optstr, ';');
usr/src/cmd/auditreduce/option.c
1160
if (str_to_label(optstr, &m_label->lower_bound, MAC_LABEL,
usr/src/cmd/auditreduce/option.c
1164
optstr, error);
usr/src/cmd/auditreduce/option.c
1171
if (p == optstr) {
usr/src/cmd/auditreduce/option.c
1198
if (str_to_label(optstr, &m_label->lower_bound, MAC_LABEL,
usr/src/cmd/auditreduce/option.c
1201
gettext("invalid sensitivity label (%s) err %d"), optstr,
usr/src/cmd/auditreduce/option.c
1226
gettext("invalid sensitivity label range (%s)"), optstr);
usr/src/cmd/auditreduce/option.c
1250
proc_zonename(char *optstr)
usr/src/cmd/auditreduce/option.c
1252
size_t length = strlen(optstr);
usr/src/cmd/auditreduce/option.c
1255
gettext("invalid zone name: %s"), optstr);
usr/src/cmd/auditreduce/option.c
1259
zonename = strdup(optstr);
usr/src/cmd/auditreduce/option.c
1273
proc_fmri(char *optstr)
usr/src/cmd/auditreduce/option.c
1275
if (strpbrk(optstr, "*?[") != NULL) {
usr/src/cmd/auditreduce/option.c
1279
if (optstr[0] == '*' ||
usr/src/cmd/auditreduce/option.c
1280
(strlen(optstr) >= 4 && optstr[3] == ':')) {
usr/src/cmd/auditreduce/option.c
1281
fmri.sp_arg = strdup(optstr);
usr/src/cmd/auditreduce/option.c
1282
} else if ((fmri.sp_arg = malloc(strlen(optstr) + 6)) != NULL) {
usr/src/cmd/auditreduce/option.c
1283
(void) snprintf(fmri.sp_arg, strlen(optstr) + 6,
usr/src/cmd/auditreduce/option.c
1284
"svc:/%s", optstr);
usr/src/cmd/auditreduce/option.c
1288
fmri.sp_arg = strdup(optstr);
usr/src/cmd/auditreduce/option.c
447
proc_type(char *optstr)
usr/src/cmd/auditreduce/option.c
461
if (a_isnum(optstr, TRUE)) {
usr/src/cmd/auditreduce/option.c
462
if ((aep = getauevnam(optstr)) != NULL)
usr/src/cmd/auditreduce/option.c
465
if ((aep = getauevnum((au_event_t)atoi(optstr))) !=
usr/src/cmd/auditreduce/option.c
470
(void) sprintf(errbuf, gettext("invalid event (%s)"), optstr);
usr/src/cmd/auditreduce/option.c
522
proc_id(char *optstr, int opt)
usr/src/cmd/auditreduce/option.c
532
return (proc_user(optstr, &m_usere));
usr/src/cmd/auditreduce/option.c
540
return (proc_group(optstr, &m_groupe));
usr/src/cmd/auditreduce/option.c
548
return (proc_user(optstr, &m_userr));
usr/src/cmd/auditreduce/option.c
556
return (proc_user(optstr, &m_usera));
usr/src/cmd/auditreduce/option.c
564
return (proc_group(optstr, &m_groupr));
usr/src/cmd/auditreduce/option.c
575
proc_group(char *optstr, gid_t *gid)
usr/src/cmd/auditreduce/option.c
579
if ((grp = getgrnam(optstr)) == NULL) {
usr/src/cmd/auditreduce/option.c
580
if (!a_isnum(optstr, TRUE)) {
usr/src/cmd/auditreduce/option.c
581
*gid = (gid_t)atoi(optstr);
usr/src/cmd/auditreduce/option.c
585
optstr);
usr/src/cmd/auditreduce/option.c
595
proc_user(char *optstr, uid_t *uid)
usr/src/cmd/auditreduce/option.c
599
if ((usr = getpwnam(optstr)) == NULL) {
usr/src/cmd/auditreduce/option.c
600
if (!a_isnum(optstr, TRUE)) {
usr/src/cmd/auditreduce/option.c
601
*uid = (uid_t)atoi(optstr);
usr/src/cmd/auditreduce/option.c
605
optstr);
usr/src/cmd/auditreduce/option.c
626
proc_date(char *optstr, int opt)
usr/src/cmd/auditreduce/option.c
656
if (parse_time(optstr, opt))
usr/src/cmd/auditreduce/option.c
671
proc_class(char *optstr)
usr/src/cmd/auditreduce/option.c
679
if (getauditflagsbin(optstr, &mask) != 0) {
usr/src/cmd/auditreduce/option.c
680
(void) sprintf(errbuf, gettext("unknown class (%s)"), optstr);
usr/src/cmd/bhyve/amd64/bhyverun_machdep.c
140
const char *optstr;
usr/src/cmd/bhyve/amd64/bhyverun_machdep.c
144
optstr = "aehuwxACDHIPSWYk:f:o:p:G:c:s:m:l:K:U:";
usr/src/cmd/bhyve/amd64/bhyverun_machdep.c
147
optstr = "adehuwxACDHIPSWYk:f:o:G:c:s:m:l:B:K:U:";
usr/src/cmd/bhyve/amd64/bhyverun_machdep.c
149
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
326
cvt_metal_option(char *optstr)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
331
if (strcmp(optstr, ZFS_BOOTSTR) == 0) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
336
if ((value = strchr(optstr, '=')) == NULL)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
339
namlen = value - optstr;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
344
if (strncmp(optstr, "console", namlen) == 0) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
349
if ((strncmp(optstr, "ttya-mode", namlen) == 0) ||
usr/src/cmd/boot/bootadm/bootadm_hyper.c
350
(strncmp(optstr, "ttyb-mode", namlen) == 0)) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
351
char *port = strndupa(optstr, namlen);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
371
cvt_hyper_option(char *optstr)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
383
if (strcmp(optstr, ZFS_BOOTSTR) == 0) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
393
if ((value = strchr(optstr, '=')) == NULL)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
396
namlen = value - optstr;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
416
if (strncmp(optstr, "console", namlen) == 0) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
431
if ((strncmp(optstr, "com1", namlen) == 0) ||
usr/src/cmd/boot/bootadm/bootadm_hyper.c
432
(strncmp(optstr, "com2", namlen) == 0)) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
433
unsigned com = COMNAME_TO_COMNUM(optstr);
usr/src/cmd/cfgadm/cfgadm.c
1033
S_FREE(optstr);
usr/src/cmd/cfgadm/cfgadm.c
949
char *cp = NULL, *optstr = NULL, *attr = NULL, *val = NULL;
usr/src/cmd/cfgadm/cfgadm.c
959
optstr = config_calloc_check(1, strlen(selectp) + 1);
usr/src/cmd/cfgadm/cfgadm.c
960
if (optstr == NULL) {
usr/src/cmd/cfgadm/cfgadm.c
964
(void) strcpy(optstr, selectp);
usr/src/cmd/cfgadm/cfgadm.c
969
cp = attr = optstr;
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
198
char *optstr;
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
229
optstr = cmd->options;
usr/src/cmd/cmd-crypto/decrypt/decrypt.c
232
while (!errflag && (c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/cmd-crypto/digest/digest.c
141
char *optstr;
usr/src/cmd/cmd-crypto/digest/digest.c
171
optstr = MAC_OPTIONS;
usr/src/cmd/cmd-crypto/digest/digest.c
173
optstr = DIGEST_OPTIONS;
usr/src/cmd/cmd-crypto/digest/digest.c
177
while (!errflag && (c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
483
blksize_handler(char *optstr)
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
492
value = (int)strtol(optstr, &endp, 10);
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
505
timeout_handler(char *optstr)
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
514
value = (int)strtol(optstr, &endp, 10);
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
529
tsize_handler(char *optstr)
usr/src/cmd/cmd-inet/usr.bin/tftp/tftp.c
538
value = strtoll(optstr, &endp, 10);
usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ilbadm_sg.c
245
char optstr[] = ":po:";
usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ilbadm_sg.c
250
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/compress/compress.c
220
static char *optstr;
usr/src/cmd/compress/compress.c
397
optstr = "b:cCdDfFnqvV/";
usr/src/cmd/compress/compress.c
399
optstr = "b:cCdfFnqvV/";
usr/src/cmd/compress/compress.c
402
while ((ch = getopt(argc, argv, optstr)) != EOF) {
usr/src/cmd/dtrace/test/cmd/jdtrace/Getopt.java
119
err(String format, char c, String optstr)
usr/src/cmd/dtrace/test/cmd/jdtrace/Getopt.java
124
p.printf(format, progname, (optstr == null ?
usr/src/cmd/dtrace/test/cmd/jdtrace/Getopt.java
125
Character.toString(c) : optstr.substring(2)));
usr/src/cmd/fm/fmd/common/fmd_main.c
240
const char optstr[] = "f:o:R:V";
usr/src/cmd/fm/fmd/common/fmd_main.c
251
while ((c = getopt(argc, argv, optstr)) != EOF) {
usr/src/cmd/fm/fmd/common/fmd_main.c
290
for (optind = 1; (c = getopt(argc, argv, optstr)) != EOF; ) {
usr/src/cmd/fm/fmtopo/common/fmtopo.c
1244
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/fm/fmtopo/common/fmtopo.c
53
static const char optstr[] = "bCdelm:P:pR:s:StVx";
usr/src/cmd/fm/fmtopo/common/fmtopo.c
908
for (optind = 1; (c = getopt(argc, argv, optstr)) != EOF; ) {
usr/src/cmd/fm/ipmitopo/common/ipmitopo.c
142
while ((c = getopt(argc, argv, optstr)) != -1)
usr/src/cmd/fm/ipmitopo/common/ipmitopo.c
31
static const char optstr[] = "h:p:u:t:";
usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
806
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
83
static const char optstr[] = "dfR:";
usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c
571
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c
70
static const char optstr[] = "dfR:";
usr/src/cmd/fs.d/nfs/mount/mount.c
1162
free(optstr);
usr/src/cmd/fs.d/nfs/mount/mount.c
1228
free(optstr);
usr/src/cmd/fs.d/nfs/mount/mount.c
1253
free(optstr);
usr/src/cmd/fs.d/nfs/mount/mount.c
973
char *saveopt, *optstr, *opts, *newopts, *val;
usr/src/cmd/fs.d/nfs/mount/mount.c
985
optstr = opts = strdup(mnt->mnt_mntopts);
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
378
char *optstr;
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
393
optstr = MNTOPT_RO;
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
397
optstr = MNTOPT_RW;
usr/src/cmd/fs.d/ufs/roll_log/roll_log.c
404
optstr, MNTOPT_NOSUID, MNTOPT_LARGEFILES);
usr/src/cmd/ipf/tools/ipf.c
80
const char *optstr = "6Ac:dDEf:F:GIl:noPrRsT:vVyzZ";
usr/src/cmd/ipf/tools/ipf.c
92
getzonearg(argc, argv, optstr);
usr/src/cmd/ipf/tools/ipf.c
94
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/ipf/tools/ipfzone.c
34
getzonearg(int argc, char *argv[], const char *optstr)
usr/src/cmd/ipf/tools/ipfzone.c
49
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/ipf/tools/ipfzone.c
69
getzoneopt(int argc, char *argv[], const char *optstr)
usr/src/cmd/ipf/tools/ipfzone.c
79
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/ipf/tools/ipmon.c
1459
const char *optstr = "?abB:C:Df:G:FhnN:o:O:pP:sS:tvxXz:";
usr/src/cmd/ipf/tools/ipmon.c
1471
getzoneopt(argc, argv, optstr);
usr/src/cmd/ipf/tools/ipmon.c
1473
while ((c = getopt(argc, argv, optstr)) != -1)
usr/src/cmd/pcidr/pcidr.c
543
char *optstr = NULL;
usr/src/cmd/pcidr/pcidr.c
563
optstr = "hsv:l:";
usr/src/cmd/pcidr/pcidr.c
567
optstr = "sv:l:";
usr/src/cmd/pcidr/pcidr.c
570
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/pgrep/pgrep.c
597
const char *optstr;
usr/src/cmd/pgrep/pgrep.c
622
optstr = PKILL_OPTS;
usr/src/cmd/pgrep/pgrep.c
625
optstr = PGREP_OPTS;
usr/src/cmd/pgrep/pgrep.c
630
while ((c = getopt(argc, argv, optstr)) != (int)EOF) {
usr/src/cmd/sgs/dump/common/dump.c
2010
char *optstr = OPTSTR; /* option string used by getopt() */
usr/src/cmd/sgs/dump/common/dump.c
2016
while ((optchar = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/sgs/nm/common/nm.c
171
char *optstr = OPTSTR; /* option string used by getopt() */
usr/src/cmd/sgs/nm/common/nm.c
213
while ((optchar = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/tbl/t3.c
48
struct optstr *lp;
usr/src/cmd/zfs/zfs_main.c
5718
const char *optstr = un ? "ldugecsrh" : "ldugecsh";
usr/src/cmd/zfs/zfs_main.c
5721
while ((c = getopt(argc, argv, optstr)) != -1) {
usr/src/cmd/zoneadmd/vplat.c
1213
char optstr[MAX_MNTOPT_STR];
usr/src/cmd/zoneadmd/vplat.c
1314
optstr[0] = '\0';
usr/src/cmd/zoneadmd/vplat.c
1316
(void) strlcpy(optstr, fsptr->zone_fs_options->zone_fsopt_opt,
usr/src/cmd/zoneadmd/vplat.c
1317
sizeof (optstr));
usr/src/cmd/zoneadmd/vplat.c
1320
(void) strlcat(optstr, ",", sizeof (optstr));
usr/src/cmd/zoneadmd/vplat.c
1321
(void) strlcat(optstr, optptr->zone_fsopt_opt,
usr/src/cmd/zoneadmd/vplat.c
1322
sizeof (optstr));
usr/src/cmd/zoneadmd/vplat.c
1326
if ((rv = domount(zlogp, fsptr->zone_fs_type, optstr,
usr/src/cmd/zoneadmd/vplat.c
4037
char optstr[] = "indirect,ignore,nobrowse";
usr/src/cmd/zoneadmd/vplat.c
4047
(void) domount(zlogp, MNTTYPE_AUTOFS, optstr,
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
513
char *optstr;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
526
if ((optstr = strdup(options)) == NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
531
a->options = optstr;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
536
while (*optstr != '\0') {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
545
opt = getsubopt(&optstr, ap_opt_names, &value);
usr/src/lib/libbe/common/be_mount.c
1629
char optstr[MAX_MNTOPT_STR];
usr/src/lib/libbe/common/be_mount.c
1667
(void) strlcpy(optstr, MNTOPT_NOSUB, sizeof (optstr));
usr/src/lib/libbe/common/be_mount.c
1671
NULL, 0, optstr, sizeof (optstr)) != 0) {
usr/src/lib/libbe/common/be_mount.c
1710
char optstr[MAX_MNTOPT_STR];
usr/src/lib/libbe/common/be_mount.c
1806
(void) strlcpy(optstr, MNTOPT_NOSUB, sizeof (optstr));
usr/src/lib/libbe/common/be_mount.c
1810
NULL, 0, optstr, sizeof (optstr)) != 0) {
usr/src/lib/libbe/common/be_mount.c
2707
char optstr[MAX_MNTOPT_STR];
usr/src/lib/libbe/common/be_mount.c
2711
optstr[0] = '\0';
usr/src/lib/libbe/common/be_mount.c
2752
MNTTYPE_ZFS, NULL, 0, optstr, sizeof (optstr))) {
usr/src/lib/madv/common/madv.c
303
advice_opts(char *optstr, const char *execname, char *cfgfile, int lineno)
usr/src/lib/madv/common/madv.c
309
while (*optstr != '\0') {
usr/src/lib/madv/common/madv.c
310
opt = getsubopt(&optstr, legal_optstr, &value);
usr/src/uts/sun4v/io/vds.c
7094
char *optstr, *opt;
usr/src/uts/sun4v/io/vds.c
7100
(uint8_t **)&optstr, &len) != 0) {
usr/src/uts/sun4v/io/vds.c
7106
opt = optstr;
usr/src/uts/sun4v/io/vds.c
7109
while (opt < optstr + len) {