Home
last modified time | relevance | path

Searched refs:files_same (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/test/
Dtest-stat-util.c45 TEST(files_same) { in TEST() argument
54 assert_se(files_same(name, name, 0)); in TEST()
55 assert_se(files_same(name, name, AT_SYMLINK_NOFOLLOW)); in TEST()
56 assert_se(files_same(name, name_alias, 0)); in TEST()
57 assert_se(!files_same(name, name_alias, AT_SYMLINK_NOFOLLOW)); in TEST()
Dtest-path-util.c167 assert_se(files_same("/", "/", 0) > 0); in TEST()
168 assert_se(files_same("/", "/", AT_SYMLINK_NOFOLLOW) > 0); in TEST()
169 assert_se(files_same("/", "//", 0) > 0); in TEST()
170 assert_se(files_same("/", "//", AT_SYMLINK_NOFOLLOW) > 0); in TEST()
172 assert_se(files_same("/", "/./", 0) > 0); in TEST()
173 assert_se(files_same("/", "/./", AT_SYMLINK_NOFOLLOW) > 0); in TEST()
174 assert_se(files_same("/", "/../", 0) > 0); in TEST()
175 assert_se(files_same("/", "/../", AT_SYMLINK_NOFOLLOW) > 0); in TEST()
177 assert_se(files_same("/", "/.../", 0) == -ENOENT); in TEST()
178 assert_se(files_same("/", "/.../", AT_SYMLINK_NOFOLLOW) == -ENOENT); in TEST()
Dtest-specifier.c107 if (files_same("/dev/initctl", "/run/initctl", 0) > 0) in TEST()
/systemd-251/src/systemctl/
Dsystemctl-switch-root.c47 if (files_same(root_init_path, root_systemd_path, 0) > 0) in verb_switch_root()
/systemd-251/src/basic/
Dstat-util.h35 int files_same(const char *filea, const char *fileb, int flags);
Dnamespace-util.c94 r = files_same(FORMAT_PROC_FD_PATH(userns_fd), "/proc/self/ns/user", 0); in namespace_enter()
Dstat-util.c193 int files_same(const char *filea, const char *fileb, int flags) { in files_same() function
Dvirt.c867 r = files_same("/proc/1/root", "/", 0); in running_in_chroot()
Dpath-util.c469 return path_equal(a, b) || files_same(a, b, flags) > 0; in path_equal_or_files_same()
Dprocess-util.c1012 return files_same(root, "/proc/1/root", 0); in pid_from_same_root_fs()
/systemd-251/src/mount/
Dmount-tool.c809 if (files_same(fname, backing_file, 0) <= 0) in find_loop_device()