Lines Matching defs:match
51 /* login_access - match username/group and host/tty with access control file */
61 int match = NO;
66 * Process the table one line at a time and stop at the first match.
74 while (!match && fgets(line, sizeof(line), fp)) {
101 match = (list_match(froms, from, from_match)
108 return (match == 0 || (line[0] == '+'));
111 /* list_match - match an item against a list of tokens with exceptions */
118 int match = NO;
123 * a match, look for an "EXCEPT" list and recurse to determine whether
124 * the match is affected by any exceptions.
130 if ((match = (*match_fn)(tok, item)) != 0) /* YES */
135 if (match != NO) {
139 return (match);
144 /* netgroup_match - match group against machine or user */
171 /* user_match - match a username against one token */
180 * If a token has the magic value "ALL" the match always succeeds.
187 } else if (string_match(tok, string)) { /* ALL or exact match */
197 /* from_match - match a host or tty against a list of tokens */
206 * If a token has the magic value "ALL" the match always succeeds. Return
216 } else if (string_match(tok, string)) { /* ALL or exact match */
218 } else if (tok[0] == '.') { /* domain: match last fields */
232 /* string_match - match a string against one token */
239 * If the token has the magic value "ALL" the match always succeeds.
245 } else if (strcasecmp(tok, string) == 0) { /* try exact match */