Lines Matching refs:optstr
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()
564 return (proc_group(optstr, &m_groupr)); in proc_id()
575 proc_group(char *optstr, gid_t *gid) in proc_group() argument
579 if ((grp = getgrnam(optstr)) == NULL) { in proc_group()
580 if (!a_isnum(optstr, TRUE)) { in proc_group()
581 *gid = (gid_t)atoi(optstr); in proc_group()
585 optstr); in proc_group()
595 proc_user(char *optstr, uid_t *uid) in proc_user() argument
599 if ((usr = getpwnam(optstr)) == NULL) { in proc_user()
600 if (!a_isnum(optstr, TRUE)) { in proc_user()
601 *uid = (uid_t)atoi(optstr); in proc_user()
605 optstr); in proc_user()
626 proc_date(char *optstr, int opt) in proc_date() argument
656 if (parse_time(optstr, opt)) in proc_date()
671 proc_class(char *optstr) in proc_class() argument
679 if (getauditflagsbin(optstr, &mask) != 0) { in proc_class()
680 (void) sprintf(errbuf, gettext("unknown class (%s)"), optstr); in proc_class()
1140 proc_label(char *optstr) in proc_label() argument
1157 p = strchr(optstr, ';'); in proc_label()
1160 if (str_to_label(optstr, &m_label->lower_bound, MAC_LABEL, in proc_label()
1164 optstr, error); in proc_label()
1171 if (p == optstr) { in proc_label()
1198 if (str_to_label(optstr, &m_label->lower_bound, MAC_LABEL, in proc_label()
1201 gettext("invalid sensitivity label (%s) err %d"), optstr, in proc_label()
1226 gettext("invalid sensitivity label range (%s)"), optstr); in proc_label()
1250 proc_zonename(char *optstr) in proc_zonename() argument
1252 size_t length = strlen(optstr); in proc_zonename()
1255 gettext("invalid zone name: %s"), optstr); in proc_zonename()
1259 zonename = strdup(optstr); in proc_zonename()
1273 proc_fmri(char *optstr) in proc_fmri() argument
1275 if (strpbrk(optstr, "*?[") != NULL) { in proc_fmri()
1279 if (optstr[0] == '*' || in proc_fmri()
1280 (strlen(optstr) >= 4 && optstr[3] == ':')) { in proc_fmri()
1281 fmri.sp_arg = strdup(optstr); in proc_fmri()
1282 } else if ((fmri.sp_arg = malloc(strlen(optstr) + 6)) != NULL) { in proc_fmri()
1283 (void) snprintf(fmri.sp_arg, strlen(optstr) + 6, in proc_fmri()
1284 "svc:/%s", optstr); in proc_fmri()
1288 fmri.sp_arg = strdup(optstr); in proc_fmri()