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()
540 char *tok; in check_plcy_entry() local
557 while ((tok = strtok(entry, " \t\n")) != NULL) { in check_plcy_entry()
561 if (strchr(tok, '=') == NULL) { in check_plcy_entry()
562 if (strchr(tok, ':') != NULL) { in check_plcy_entry()
570 if (*tok == '(') { in check_plcy_entry()
572 if (parse_minor_range(tok, &ds->dps_lomin, in check_plcy_entry()
581 char *tmp = strchr(tok, '*'); in check_plcy_entry()
595 if (add2str(&res, tok, &sz) != 0) in check_plcy_entry()
605 if (parse_plcy_token(tok, ds) != 0) { in check_plcy_entry()
612 if (add2str(&res, tok, &sz) != 0) in check_plcy_entry()
634 char *dup, *tok, *s1; in update_device_policy() local
646 for (tok = strtok_r(dup, "\n", &s1); tok != NULL; in update_device_policy()
647 tok = strtok_r(NULL, "\n", &s1)) { in update_device_policy()
649 tok = strtok(tok, " \n\t"); in update_device_policy()
651 if (delete_one_entry(filename, tok) != 0) { in update_device_policy()