Home
last modified time | relevance | path

Searched refs:last_path_component (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/test/
Dtest-path-util.c757 TEST(last_path_component) { in TEST() argument
758 assert_se(last_path_component(NULL) == NULL); in TEST()
759 assert_se(streq(last_path_component("a/b/c"), "c")); in TEST()
760 assert_se(streq(last_path_component("a/b/c/"), "c/")); in TEST()
761 assert_se(streq(last_path_component("/"), "/")); in TEST()
762 assert_se(streq(last_path_component("//"), "/")); in TEST()
763 assert_se(streq(last_path_component("///"), "/")); in TEST()
764 assert_se(streq(last_path_component("."), ".")); in TEST()
765 assert_se(streq(last_path_component("./."), ".")); in TEST()
766 assert_se(streq(last_path_component("././"), "./")); in TEST()
[all …]
/systemd-251/src/basic/
Dpath-util.h153 const char *last_path_component(const char *path);
Dmountpoint-util.c336 return fd_is_mount_point(fd, last_path_component(t), flags); in path_is_mount_point()
Dpath-util.c981 const char *last_path_component(const char *path) { in last_path_component() function
Dprocess-util.c1579 return strstr(last_path_component(argv[0]), token); in invoked_as()
/systemd-251/src/boot/
Dbless-boot.c240 last = last_path_component(path); in acquire_boot_count_path()
/systemd-251/src/portable/
Dportable.c1194 fn = last_path_component(image_path); in image_symlink()
1411 a = last_path_component(image); in marker_matches_images()
1443 b = last_path_component(*image_name_or_path); in marker_matches_images()
/systemd-251/src/shared/
Dtpm2-util.c1251 TABLE_STRING, device ? last_path_component(device) : NULL, in tpm2_list_devices()
1252 TABLE_STRING, driver ? last_path_component(driver) : NULL); in tpm2_list_devices()
Ddiscover-image.c181 p = last_path_component(path); in extract_pretty()