Lines Matching refs:strlen
53 if (strlen(n) >= UNIT_NAME_MAX) in unit_name_is_valid()
236 b = strlen(suffix); in unit_name_change_suffix()
339 r = new(char, strlen(f)*4+1); in unit_name_escape()
476 b = strlen(i); in unit_name_replace_instance()
478 s = new(char, a + 1 + b + strlen(e) + 1); in unit_name_replace_instance()
508 s = new(char, a + 1 + strlen(e) + 1); in unit_name_template()
546 if (strlen(name) < UNIT_NAME_MAX) in unit_name_hash_long()
562 assert_se(strlen(hash) == UNIT_NAME_HASH_LENGTH_CHARS); in unit_name_hash_long()
564 len = UNIT_NAME_MAX - 1 - strlen(suffix+1) - UNIT_NAME_HASH_LENGTH_CHARS - 2; in unit_name_hash_long()
599 if (strlen(s) >= UNIT_NAME_MAX) { in unit_name_from_path()
642 …if (strlen(s) >= UNIT_NAME_MAX) /* Return a slightly more descriptive error for this specific cond… in unit_name_from_path_instance()
749 s = new(char, strlen(name) * 4 + strlen(suffix) + 1); in unit_name_mangle_with_suffix()
835 subslice = new(char, (e - slice) + 1 + strlen(name) + 6 + 1); in slice_build_subslice()