/systemd/src/test/ |
H A D | test-path-util.c | 253 assert_se(path_startswith("/foo/bar/barfoo/", "/foo")); 254 assert_se(path_startswith("/foo/bar/barfoo/", "/foo/")); 255 assert_se(path_startswith("/foo/bar/barfoo/", "/")); 256 assert_se(path_startswith("/foo/bar/barfoo/", "////")); 257 assert_se(path_startswith("/foo/bar/barfoo/", "/foo//bar/////barfoo///")); 258 assert_se(path_startswith("/foo/bar/barfoo/", "/foo/bar/barfoo////")); 259 assert_se(path_startswith("/foo/bar/barfoo/", "/foo/bar///barfoo/")); 260 assert_se(path_startswith("/foo/bar/barfoo/", "/foo////bar/barfoo/")); 261 assert_se(path_startswith("/foo/bar/barfoo/", "////foo/bar/barfoo/")); 262 assert_se(path_startswith("/fo [all...] |
/systemd/src/login/ |
H A D | sysfs-show.c | 55 if (!path_startswith(sysfs, sub)) 89 if (path_startswith(lookahead_sysfs, sub) && 90 !path_startswith(lookahead_sysfs, sysfs)) {
|
/systemd/src/basic/ |
H A D | mkdir.c | 63 if (prefix && !path_startswith(path, prefix)) 97 if (prefix && path_startswith(prefix, t))
|
H A D | path-util.c | 273 x = path_startswith(u, prefix); 353 char* path_startswith(const char *path, const char *prefix) { function 795 path_startswith(path, "/dev/") || 796 path_startswith(path, "/sys/");
|
H A D | path-util.h | 45 char* path_startswith(const char *path, const char *prefix) _pure_;
|
H A D | smack-util.c | 148 if (!path_startswith(path, "/dev"))
|
H A D | mount-util.c | 287 if (!path_startswith(p, prefix)) 400 if (path_startswith(p, cleaned) &&
|
H A D | fs-util.c | 89 if (path_startswith(stop, t)) {
|
/systemd/src/getty-generator/ |
H A D | getty-generator.c | 171 t = path_startswith(tty, "/dev/"); 176 t = path_startswith(t, "pts/");
|
/systemd/src/cgls/ |
H A D | cgls.c | 207 if (path_startswith(argv[i], "/sys/fs/cgroup")) { 257 if (path_startswith(cwd, "/sys/fs/cgroup")) {
|
/systemd/src/sysctl/ |
H A D | sysctl.c | 117 t = path_startswith(*i, "/proc/sys/"); 120 if (path_startswith(p, t))
|
/systemd/src/shared/ |
H A D | machine-image.c | 170 (path && path_startswith(path, "/usr")) || 404 path_startswith(i->path, "/usr")) 477 path_startswith(i->path, "/usr")) 645 path_startswith(i->path, "/usr")) 754 path_startswith(i->path, "/usr"))
|
H A D | cgroup-show.c | 244 if (path_startswith(k, path))
|
H A D | install.c | 158 return path_startswith(path, "/etc") || 159 path_startswith(path, SYSTEM_CONFIG_UNIT_PATH) || 160 path_startswith(path, "/run"); 169 if (r > 0 && path_startswith(path, p)) 177 if (r > 0 && path_startswith(path, p)) 2022 state = path_startswith(i->path, "/run") ? UNIT_FILE_MASKED_RUNTIME : UNIT_FILE_MASKED;
|
H A D | utmp-wtmp.c | 428 if (path_startswith(u->ut_line, "/dev/"))
|
/systemd/src/core/ |
H A D | umount.c | 119 path_startswith(p, "/dev") || 120 path_startswith(p, "/sys") || 121 path_startswith(p, "/proc")) {
|
H A D | device.c | 408 if (path_startswith(p, "/dev/block/") || 409 path_startswith(p, "/dev/char/")) 801 if (!path_startswith(node, "/dev"))
|
H A D | mount-setup.c | 136 return path_startswith(path, "/sys/fs/cgroup/");
|
/systemd/src/journal/ |
H A D | journald-native.c | 350 e = path_startswith(k, "/dev/shm/"); 352 e = path_startswith(k, "/tmp/"); 354 e = path_startswith(k, "/var/tmp/");
|
/systemd/src/libsystemd/sd-device/ |
H A D | sd-device.c | 159 if (!path_startswith(_syspath, "/sys/")) { 184 if (path_startswith(syspath, "/sys/devices/")) { 685 assert(path_startswith(device->syspath, "/sys/")); 791 else if (path_startswith(device->devpath, "/module/")) 795 else if (path_startswith(device->devpath, "/subsystem/") || 796 path_startswith(device->devpath, "/class/") || 797 path_startswith(device->devpath, "/bus/")) 958 assert(path_startswith(device->devname, "/dev/"));
|
/systemd/src/cryptsetup/ |
H A D | cryptsetup-generator.c | 404 uuid = path_startswith(device, "/dev/disk/by-uuid/");
|
/systemd/src/import/ |
H A D | import-tar.c | 142 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
|
H A D | import-raw.c | 135 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
|
H A D | pull-tar.c | 145 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
|
/systemd/src/machine/ |
H A D | machine-dbus.c | 605 p = path_startswith(pty_name, "/dev/pts/"); 704 p = path_startswith(pty_name, "/dev/pts/"); 711 utmp_id = path_startswith(pty_name, "/dev/");
|