Lines Matching refs:root

67         _cleanup_free_ char *buffer = NULL, *done = NULL, *root = NULL;  in chase_symlinks()  local
155 r = path_make_absolute_cwd(original_root, &root); in chase_symlinks()
164 delete_trailing_chars(root, "/"); in chase_symlinks()
165 path_simplify(root); in chase_symlinks()
168 buffer = path_join(root, path); in chase_symlinks()
180 fd = open(empty_to_root(root), O_CLOEXEC|O_DIRECTORY|O_PATH); in chase_symlinks()
191 if (root) { in chase_symlinks()
194 todo = path_startswith(buffer, root); in chase_symlinks()
199 path, root); in chase_symlinks()
201 done = strdup(root); in chase_symlinks()
244 if (root && in chase_symlinks()
245 path_startswith(done, root) && in chase_symlinks()
246 !path_startswith(parent, root)) in chase_symlinks()
326 fd = open(empty_to_root(root), O_CLOEXEC|O_DIRECTORY|O_PATH); in chase_symlinks()
341 r = free_and_strdup(&done, empty_to_root(root)); in chase_symlinks()
411 const char *root, in chase_symlinks_and_open() argument
423 if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) { in chase_symlinks_and_open()
432 r = chase_symlinks(path, root, chase_flags, ret_path ? &p : NULL, &path_fd); in chase_symlinks_and_open()
449 const char *root, in chase_symlinks_and_opendir() argument
464 if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) { in chase_symlinks_and_opendir()
474 r = chase_symlinks(path, root, chase_flags, ret_path ? &p : NULL, &path_fd); in chase_symlinks_and_opendir()
492 const char *root, in chase_symlinks_and_stat() argument
508 if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) { in chase_symlinks_and_stat()
516 r = chase_symlinks(path, root, chase_flags, ret_path ? &p : NULL, &path_fd); in chase_symlinks_and_stat()
534 const char *root, in chase_symlinks_and_fopen_unlocked() argument
552 … fd = chase_symlinks_and_open(path, root, chase_flags, mode_flags, ret_path ? &final_path : NULL); in chase_symlinks_and_fopen_unlocked()