Searched refs:path_startswith (Results 1 - 25 of 40) sorted by relevance

12

/systemd/src/test/
H A Dtest-path-util.c253 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 Dsysfs-show.c55 if (!path_startswith(sysfs, sub))
89 if (path_startswith(lookahead_sysfs, sub) &&
90 !path_startswith(lookahead_sysfs, sysfs)) {
/systemd/src/basic/
H A Dmkdir.c63 if (prefix && !path_startswith(path, prefix))
97 if (prefix && path_startswith(prefix, t))
H A Dpath-util.c273 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 Dpath-util.h45 char* path_startswith(const char *path, const char *prefix) _pure_;
H A Dsmack-util.c148 if (!path_startswith(path, "/dev"))
H A Dmount-util.c287 if (!path_startswith(p, prefix))
400 if (path_startswith(p, cleaned) &&
H A Dfs-util.c89 if (path_startswith(stop, t)) {
/systemd/src/getty-generator/
H A Dgetty-generator.c171 t = path_startswith(tty, "/dev/");
176 t = path_startswith(t, "pts/");
/systemd/src/cgls/
H A Dcgls.c207 if (path_startswith(argv[i], "/sys/fs/cgroup")) {
257 if (path_startswith(cwd, "/sys/fs/cgroup")) {
/systemd/src/sysctl/
H A Dsysctl.c117 t = path_startswith(*i, "/proc/sys/");
120 if (path_startswith(p, t))
/systemd/src/shared/
H A Dmachine-image.c170 (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 Dcgroup-show.c244 if (path_startswith(k, path))
H A Dinstall.c158 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 Dutmp-wtmp.c428 if (path_startswith(u->ut_line, "/dev/"))
/systemd/src/core/
H A Dumount.c119 path_startswith(p, "/dev") ||
120 path_startswith(p, "/sys") ||
121 path_startswith(p, "/proc")) {
H A Ddevice.c408 if (path_startswith(p, "/dev/block/") ||
409 path_startswith(p, "/dev/char/"))
801 if (!path_startswith(node, "/dev"))
H A Dmount-setup.c136 return path_startswith(path, "/sys/fs/cgroup/");
/systemd/src/journal/
H A Djournald-native.c350 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 Dsd-device.c159 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 Dcryptsetup-generator.c404 uuid = path_startswith(device, "/dev/disk/by-uuid/");
/systemd/src/import/
H A Dimport-tar.c142 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
H A Dimport-raw.c135 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
H A Dpull-tar.c145 i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
/systemd/src/machine/
H A Dmachine-dbus.c605 p = path_startswith(pty_name, "/dev/pts/");
704 p = path_startswith(pty_name, "/dev/pts/");
711 utmp_id = path_startswith(pty_name, "/dev/");

Completed in 5369 milliseconds

12