Lines Matching +defs:match +defs:end

55 /* login_access - match username/group and host/tty with access control file */
65 int match = NO;
66 int end;
77 * Process the table one line at a time and stop at the first match.
85 while (!match && fgets(line, sizeof(line), fp)) {
87 if (line[end = strlen(line) - 1] != '\n') {
94 while (end > 0 && isspace((unsigned char)line[end - 1]))
95 end--;
96 line[end] = 0; /* strip trailing whitespace */
115 match = (list_match(froms, &item, from_match)
122 return (match == 0 || (line[0] == '+'));
125 /* list_match - match an item against a list of tokens with exceptions */
133 int match = NO;
138 * when we reach an "EXCEPT" token or the end of the list. If we do find
139 * a match, look for an "EXCEPT" list and recurse to determine whether
140 * the match is affected by any exceptions.
148 if ((match = (*match_fn) (tok, item)) != 0) /* YES */
153 if (match != NO) {
157 return (match);
175 /* netgroup_match - match group against machine or user */
191 /* user_match - match a username against one token */
202 * If a token has the magic value "ALL" the match always succeeds.
214 } else if (string_match(tok, string)) { /* ALL or exact match */
226 /* from_match - match a host or tty against a list of tokens */
235 * If a token has the magic value "ALL" the match always succeeds. Return
245 } else if (string_match(tok, string)) { /* ALL or exact match */
247 } else if (tok[0] == '.') { /* domain: match last fields */
261 /* string_match - match a string against one token */
267 * If the token has the magic value "ALL" the match always succeeds.
273 } else if (strcasecmp(tok, string) == 0) { /* try exact match */