Lines Matching refs:filename

72 int unit_validate_alias_symlink_or_warn(int log_level, const char *filename, const char *target) {  in unit_validate_alias_symlink_or_warn()  argument
89 src = basename(filename); in unit_validate_alias_symlink_or_warn()
97 "%s: not a valid unit name \"%s\": %m", filename, src); in unit_validate_alias_symlink_or_warn()
105 filename); in unit_validate_alias_symlink_or_warn()
111 filename, unit_type_to_string(src_unit_type)); in unit_validate_alias_symlink_or_warn()
118 filename, src, dst); in unit_validate_alias_symlink_or_warn()
124 filename, dst); in unit_validate_alias_symlink_or_warn()
130 filename, dst); in unit_validate_alias_symlink_or_warn()
138 filename, dst); in unit_validate_alias_symlink_or_warn()
145 filename, dst); in unit_validate_alias_symlink_or_warn()
273 const char *filename, in unit_file_resolve_symlink() argument
289 assert(filename); in unit_file_resolve_symlink()
291 assert(dir || path_is_absolute(filename)); in unit_file_resolve_symlink()
294 r = readlinkat_malloc(dirfd, filename, &target); in unit_file_resolve_symlink()
297 dir, dir ? "/" : "", filename); in unit_file_resolve_symlink()
300 r = path_extract_directory(filename, &_dir); in unit_file_resolve_symlink()
305 r = path_extract_filename(filename, &_filename); in unit_file_resolve_symlink()
310 … "Unexpected path to a directory \"%s\", refusing.", filename); in unit_file_resolve_symlink()
311 filename = _filename; in unit_file_resolve_symlink()
327 dir, filename, target); in unit_file_resolve_symlink()
347 r = unit_validate_alias_symlink_or_warn(LOG_NOTICE, filename, simplified); in unit_file_resolve_symlink()
352 dir, filename, simplified); in unit_file_resolve_symlink()
357 log_debug("Linked unit file: %s/%s → %s", dir, filename, simplified); in unit_file_resolve_symlink()
362 dst = path_join(dir, filename); in unit_file_resolve_symlink()
460 char *filename; in unit_file_build_name_map() local
518 filename = path_join(*dir, de->d_name); in unit_file_build_name_map()
519 if (!filename) in unit_file_build_name_map()
523 r = set_put(paths, filename); in unit_file_build_name_map()
527 … _filename_free = filename; /* Make sure we free the filename. */ in unit_file_build_name_map()
529 _filename_free = filename; /* Make sure we free the filename. */ in unit_file_build_name_map()
558 dst = strdup(filename); in unit_file_build_name_map()