Searched refs:exists (Results 1 - 6 of 6) sorted by relevance

/systemd/src/test/
H A Dtest-path-lookup.c34 char *exists, *not, *systemd_unit_path; local
37 exists = strjoina(template, "/exists");
38 assert_se(mkdir(exists, 0755) == 0);
42 assert_se(lookup_paths_init(&lp_without_env, running_as, personal, NULL, exists, not, not) == 0);
45 assert_se(strv_contains(lp_without_env.unit_path, exists));
50 assert_se(lookup_paths_init(&lp_with_env, running_as, personal, NULL, exists, not, not) == 0);
/systemd/src/udev/
H A Dudevadm-settle.c39 " -E --exit-if-exists=FILE Stop waiting if file exists\n"
46 { "exit-if-exists", required_argument, NULL, 'E' },
54 const char *exists = NULL; local
76 exists = optarg;
134 if (exists && access(exists, F_OK) >= 0) {
/systemd/src/shared/
H A Dbase-filesystem.c42 const char *exists; member in struct:BaseFilesystem
76 /* check if one of the targets exists */
81 /* check if a specific file exists at the target path */
82 if (table[i].exists) {
85 p = strjoin(s, "/", table[i].exists, NULL);
/systemd/test/
H A Dnetworkd-test.py58 if os.path.exists(p):
73 if os.path.exists(self.config):
H A Dsysv-generator-test.py154 self.assertTrue(os.path.exists(unit_file))
157 self.assertFalse(os.path.exists(link),
158 '%s unexpectedly exists' % link)
/systemd/src/core/
H A Dpath.c60 bool exists = false; local
111 exists = true;
113 /* Path exists, we don't need to watch parent
140 if (!exists) {

Completed in 997 milliseconds