Searched refs:PATH_STARTSWITH_SET (Results 1 – 12 of 12) sorted by relevance
/systemd-251/src/test/ |
D | test-path-util.c | 991 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/ |
D | path-util.h | 88 #define PATH_STARTSWITH_SET(p, ...) path_startswith_strv(p, STRV_MAKE(__VA_ARGS__)) macro
|
D | path-util.c | 1238 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()
|
D | time-util.c | 1494 e = PATH_STARTSWITH_SET(t, "/usr/share/zoneinfo/", "../usr/share/zoneinfo/"); in get_timezone()
|
/systemd-251/src/shared/ |
D | fstab-util.c | 47 if (PATH_STARTSWITH_SET(mount, in fstab_is_extrinsic()
|
/systemd-251/src/journal/ |
D | journald-native.c | 355 e = PATH_STARTSWITH_SET(k, "/dev/shm/", "/tmp/", "/var/tmp/"); in server_process_native_file()
|
/systemd-251/src/shutdown/ |
D | umount.c | 117 PATH_STARTSWITH_SET(path, "/dev", "/sys", "/proc")) in mount_points_list_get()
|
/systemd-251/src/core/ |
D | device.c | 622 if (PATH_STARTSWITH_SET(p, "/dev/block/", "/dev/char/")) in device_process_new()
|
D | unit.c | 3674 if (PATH_STARTSWITH_SET(path, "/proc", "/sys")) in fragment_mtime_newer()
|
/systemd-251/src/home/ |
D | user-record-util.c | 521 if (PATH_STARTSWITH_SET(ip, in user_record_test_image_path()
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 999 else if (!isempty(PATH_STARTSWITH_SET(device->devpath, "/class/", "/bus/"))) in sd_device_get_subsystem()
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 1902 return PATH_STARTSWITH_SET( in timezone_from_path()
|