Lines Matching refs:len
146 static bool tomoyo_correct_path2(const char *filename, const size_t len);
386 const int len = strlen(find); in tomoyo_str_starts() local
389 if (strncmp(tmp, find, len)) in tomoyo_str_starts()
391 tmp += len; in tomoyo_str_starts()
435 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()
447 if (!len--) in tomoyo_correct_word2()
454 if (!len-- || !len--) in tomoyo_correct_word2()
531 static bool tomoyo_correct_path2(const char *filename, const size_t len) in tomoyo_correct_path2() argument
533 const char *cp1 = memchr(filename, '/', len); in tomoyo_correct_path2()
534 const char *cp2 = memchr(filename, '.', len); in tomoyo_correct_path2()
536 return cp1 && (!cp2 || (cp1 < cp2)) && tomoyo_correct_word2(filename, len); in tomoyo_correct_path2()
588 int len; in tomoyo_domain_def() local
594 len = strlen(buffer); in tomoyo_domain_def()
596 len = cp - buffer; in tomoyo_domain_def()
597 if (buffer[len - 1] != '>' || in tomoyo_domain_def()
598 !tomoyo_correct_word2(buffer + 1, len - 2)) in tomoyo_domain_def()
638 int len = 0; in tomoyo_const_part_length() local
644 len++; in tomoyo_const_part_length()
650 len += 2; in tomoyo_const_part_length()
662 len += 4; in tomoyo_const_part_length()
667 return len; in tomoyo_const_part_length()
680 const int len = strlen(name); in tomoyo_fill_path_info() local
683 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
684 ptr->is_patterned = (ptr->const_len < len); in tomoyo_fill_path_info()
685 ptr->hash = full_name_hash(NULL, name, len); in tomoyo_fill_path_info()
942 const int len = pattern->const_len; in tomoyo_path_matches_pattern() local
951 if (strncmp(f, p, len)) in tomoyo_path_matches_pattern()
953 f += len; in tomoyo_path_matches_pattern()
954 p += len; in tomoyo_path_matches_pattern()