Lines Matching refs:match

5450 	 * verify that all handles match
5991 * 1) Detect patterns which match more than one FMRI, and be able to
6013 * an abbreviated FMRI, and match according to
6025 * When a match is found, we add the match to the pattern's list. We also enter
6026 * the match into a hash table, resulting in something like this:
6030 * | pattern 'foo' |----->| match |---->| match |
6042 * match was found.
6044 * Finally, we walk through all valid patterns, and for each match, if we
6045 * haven't already seen the match (as recorded in the hash table), then we
6145 scf_match_t *match;
6155 * If we match an instance, check to see if we must remove
6158 for (prev = match = pattern->sp_matches; match != NULL;
6159 match = next) {
6160 size_t len = strlen(match->sm_key->sk_fmri);
6161 next = match->sm_next;
6162 if (strncmp(match->sm_key->sk_fmri, fmri, len) == 0 &&
6164 if (prev == match)
6165 pattern->sp_matches = match->sm_next;
6167 prev->sm_next = match->sm_next;
6169 free(match);
6171 prev = match;
6178 for (match = pattern->sp_matches; match != NULL;
6179 match = match->sm_next) {
6180 size_t len = strlen(match->sm_key->sk_fmri);
6181 if (strncmp(match->sm_key->sk_fmri, fmri, len) == 0 &&
6187 if ((match = malloc(sizeof (scf_match_t))) == NULL)
6190 if ((match->sm_key = scf_get_key(htable, fmri, legacy)) == NULL) {
6191 free(match);
6195 match->sm_next = pattern->sp_matches;
6196 pattern->sp_matches = match;
6242 * Attempts to match the given FMRI against a set of patterns, keeping track of
6346 * not match a full fmri is identified as a globbed pattern or a partial
6575 * to match the service first.
6745 * Check all patterns, and see if we have that any that didn't match
6751 scf_match_t *match;
6791 for (match = pattern[i].sp_matches; match != NULL;
6792 match = match->sm_next) {
6793 len += strlen(match->sm_key->sk_fmri) + 2;
6805 for (match = pattern[i].sp_matches; match != NULL;
6806 match = match->sm_next) {
6808 match->sm_key->sk_fmri);
6817 for (match = pattern[i].sp_matches; match != NULL;
6818 match = match->sm_next) {
6819 if (!match->sm_key->sk_seen)
6821 match->sm_key->sk_seen = 1;
6833 * to match more than one fmri in this case.
6860 scf_match_t *match;
6864 * Ignore patterns which didn't match anything or matched too
6872 for (match = pattern[i].sp_matches; match != NULL;
6873 match = match->sm_next) {
6875 key = match->sm_key;
6968 scf_match_t *match, *next;
6973 for (match = pattern[i].sp_matches; match != NULL;
6974 match = next) {
6976 next = match->sm_next;
6978 free(match);