Home
last modified time | relevance | path

Searched refs:PATH_STARTSWITH_SET (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/test/
Dtest-path-util.c991 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo/bar", "/zzz"), "")); in TEST()
992 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo/", "/zzz"), "bar")); in TEST()
993 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo", "/zzz"), "bar")); in TEST()
994 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/", "/zzz"), "foo/bar")); in TEST()
995 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "", "/zzz"), NULL)); in TEST()
997 … assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "/foo/bar", "/zzz"), NULL)); in TEST()
998 … assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "/foo/", "/zzz"), "bar2")); in TEST()
999 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "/foo", "/zzz"), "bar2")); in TEST()
1000 … assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "/", "/zzz"), "foo/bar2")); in TEST()
1001 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "", "/zzz"), NULL)); in TEST()
[all …]
/systemd-251/src/basic/
Dpath-util.h88 #define PATH_STARTSWITH_SET(p, ...) path_startswith_strv(p, STRV_MAKE(__VA_ARGS__)) macro
Dpath-util.c1238 return PATH_STARTSWITH_SET(path, "/dev/", "/sys/"); in is_device_path()
1246 if (!PATH_STARTSWITH_SET(path, "/dev/", "/run/systemd/inaccessible/")) in valid_device_node_path()
Dtime-util.c1494 e = PATH_STARTSWITH_SET(t, "/usr/share/zoneinfo/", "../usr/share/zoneinfo/"); in get_timezone()
/systemd-251/src/shared/
Dfstab-util.c47 if (PATH_STARTSWITH_SET(mount, in fstab_is_extrinsic()
/systemd-251/src/journal/
Djournald-native.c355 e = PATH_STARTSWITH_SET(k, "/dev/shm/", "/tmp/", "/var/tmp/"); in server_process_native_file()
/systemd-251/src/shutdown/
Dumount.c117 PATH_STARTSWITH_SET(path, "/dev", "/sys", "/proc")) in mount_points_list_get()
/systemd-251/src/core/
Ddevice.c622 if (PATH_STARTSWITH_SET(p, "/dev/block/", "/dev/char/")) in device_process_new()
Dunit.c3674 if (PATH_STARTSWITH_SET(path, "/proc", "/sys")) in fragment_mtime_newer()
/systemd-251/src/home/
Duser-record-util.c521 if (PATH_STARTSWITH_SET(ip, in user_record_test_image_path()
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c999 else if (!isempty(PATH_STARTSWITH_SET(device->devpath, "/class/", "/bus/"))) in sd_device_get_subsystem()
/systemd-251/src/nspawn/
Dnspawn.c1902 return PATH_STARTSWITH_SET( in timezone_from_path()