Lines Matching refs:len
384 const int len = strlen(find); in tomoyo_str_starts() local
387 if (strncmp(tmp, find, len)) in tomoyo_str_starts()
389 tmp += len; in tomoyo_str_starts()
433 static bool tomoyo_correct_word2(const char *string, size_t len) in tomoyo_correct_word2() argument
441 if (!len) in tomoyo_correct_word2()
443 while (len--) { in tomoyo_correct_word2()
446 if (!len--) in tomoyo_correct_word2()
479 if (!len-- || !len--) in tomoyo_correct_word2()
566 int len; in tomoyo_domain_def() local
572 len = strlen(buffer); in tomoyo_domain_def()
574 len = cp - buffer; in tomoyo_domain_def()
575 if (buffer[len - 1] != '>' || in tomoyo_domain_def()
576 !tomoyo_correct_word2(buffer + 1, len - 2)) in tomoyo_domain_def()
616 int len = 0; in tomoyo_const_part_length() local
622 len++; in tomoyo_const_part_length()
628 len += 2; in tomoyo_const_part_length()
640 len += 4; in tomoyo_const_part_length()
645 return len; in tomoyo_const_part_length()
658 const int len = strlen(name); in tomoyo_fill_path_info() local
661 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
662 ptr->is_patterned = (ptr->const_len < len); in tomoyo_fill_path_info()
663 ptr->hash = full_name_hash(NULL, name, len); in tomoyo_fill_path_info()
920 const int len = pattern->const_len; in tomoyo_path_matches_pattern() local
929 if (strncmp(f, p, len)) in tomoyo_path_matches_pattern()
931 f += len; in tomoyo_path_matches_pattern()
932 p += len; in tomoyo_path_matches_pattern()