Lines Matching refs:tok
312 char *tok; in delete_one_entry() local
324 tok = fep->entry; in delete_one_entry()
325 while (*tok && isspace(*tok)) in delete_one_entry()
326 tok++; in delete_one_entry()
328 if (*tok == '\0') { in delete_one_entry()
334 tail = strpbrk(tok, "\t\n "); in delete_one_entry()
336 tail = tok + strlen(tok); in delete_one_entry()
341 min = strchr(tok, ':'); in delete_one_entry()
346 len = strlen(tok); in delete_one_entry()
354 if (strncmp(entry, tok, len) == 0 && in delete_one_entry()
386 put_minor_range(new, fep, tok, tail, in delete_one_entry()
388 put_minor_range(new, NULL, tok, tail, in delete_one_entry()
391 put_minor_range(new, fep, tok, tail, in delete_one_entry()
396 } else if (strcmp(entry, tok) == 0 || in delete_one_entry()
397 (strncmp(entry, tok, len) == 0 && in delete_one_entry()
539 char *tok; in check_plcy_entry() local
555 while ((tok = strtok(entry, " \t\n")) != NULL) { in check_plcy_entry()
559 if (strchr(tok, '=') == NULL) { in check_plcy_entry()
560 if (strchr(tok, ':') != NULL) { in check_plcy_entry()
568 if (*tok == '(') { in check_plcy_entry()
570 if (parse_minor_range(tok, &ds->dps_lomin, in check_plcy_entry()
579 char *tmp = strchr(tok, '*'); in check_plcy_entry()
593 if (add2str(&res, tok, &sz) != 0) in check_plcy_entry()
603 if (parse_plcy_token(tok, ds) != 0) { in check_plcy_entry()
610 if (add2str(&res, tok, &sz) != 0) in check_plcy_entry()
632 char *dup, *tok, *s1; in update_device_policy() local
644 for (tok = strtok_r(dup, "\n", &s1); tok != NULL; in update_device_policy()
645 tok = strtok_r(NULL, "\n", &s1)) { in update_device_policy()
647 tok = strtok(tok, " \n\t"); in update_device_policy()
649 if (delete_one_entry(filename, tok) != 0) { in update_device_policy()