Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 20 of 20) sorted by relevance

/systemd-251/src/udev/
Dudev-node.c317 static int update_stack_directory(sd_device *dev, const char *dirname, bool add) { in update_stack_directory() argument
324 assert(dirname); in update_stack_directory()
330 filename = path_join(dirname, id); in update_stack_directory()
337 if (stat(dirname, &st) < 0) { in update_stack_directory()
346 if (rmdir(dirname) >= 0 || errno == ENOENT) in update_stack_directory()
358 … return log_device_debug_errno(dev, stat_error, "Failed to stat %s: %m", dirname); in update_stack_directory()
361 r = update_timestamp(dev, dirname, &st); in update_stack_directory()
363 … return log_device_debug_errno(dev, r, "Failed to update timestamp of %s: %m", dirname); in update_stack_directory()
388 r = mkdir_p(dirname, 0755); in update_stack_directory()
392 … return log_device_debug_errno(dev, r, "Failed to create directory %s: %m", dirname); in update_stack_directory()
[all …]
/systemd-251/src/shared/
Dcreds-util.c105 static void warn_not_encrypted(int fd, CredentialSecretFlags flags, const char *dirname, const char… in warn_not_encrypted() argument
109 assert(dirname); in warn_not_encrypted()
118 dirname, filename); in warn_not_encrypted()
121 dirname, filename); in warn_not_encrypted()
128 const char *dirname, in make_credential_host_secret() argument
174 warn_not_encrypted(fd, flags, dirname, fn); in make_credential_host_secret()
221 const char *dirname, *filename; in get_credential_host_secret() local
243 dirname = _dirname; in get_credential_host_secret()
246 dirname = "/var/lib/systemd"; in get_credential_host_secret()
250 mkdir_parents(dirname, 0755); in get_credential_host_secret()
[all …]
Drm-rf.c193 char *dirname; /* The filename of that directory itself. */ member
199 free(x->dirname); in free_todo_entries()
212 … _cleanup_free_ char *dirname = NULL; /* Set when we are recursing and want to delete ourselves */ in rm_rf_children() local
224 assert(dirname); in rm_rf_children()
225 … r = unlinkat_harder(dirfd(todos[n_todo-1].dir), dirname, AT_REMOVEDIR, flags); in rm_rf_children()
228 dirname = mfree(dirname); in rm_rf_children()
233 dirname = TAKE_PTR(todos[n_todo].dirname); in rm_rf_children()
293 … todos[n_todo++] = (TodoEntry) { TAKE_PTR(d), TAKE_PTR(dirname) }; in rm_rf_children()
295 dirname = TAKE_PTR(newdirname); in rm_rf_children()
Dclean-ipc.c221 static int clean_posix_shm_internal(const char *dirname, DIR *dir, uid_t uid, gid_t gid, bool rm) { in clean_posix_shm_internal() argument
237 dirname, de->d_name); in clean_posix_shm_internal()
248 dirname, de->d_name); in clean_posix_shm_internal()
267 dirname, de->d_name); in clean_posix_shm_internal()
Dinstall.c445 _cleanup_free_ char *dirname = NULL; in chroot_unit_symlinks_equivalent() local
449 r = path_extract_directory(src, &dirname); in chroot_unit_symlinks_equivalent()
454 _cleanup_free_ char *a = path_join(path_is_absolute(target_a) ? root : dirname, target_a); in chroot_unit_symlinks_equivalent()
455 _cleanup_free_ char *b = path_join(path_is_absolute(target_b) ? root : dirname, target_b); in chroot_unit_symlinks_equivalent()
3568 STRV_FOREACH(dirname, lp.search_path) { in unit_file_get_list()
3571 d = opendir(*dirname); in unit_file_get_list()
3576 log_debug_errno(errno, "Failed to open \"%s\": %m", *dirname); in unit_file_get_list()
3602 f->path = path_make_absolute(de->d_name, *dirname); in unit_file_get_list()
/systemd-251/src/delta/
Ddelta.c373 const char *dirname, *p; in should_skip_path() local
375 dirname = prefix_roota(prefix, suffix); in should_skip_path()
377 if (chase_symlinks(dirname, NULL, 0, &target, NULL) < 0) in should_skip_path()
383 if (path_startswith(dirname, p)) in should_skip_path()
391 log_debug("%s redirects to %s, skipping.", dirname, target); in should_skip_path()
/systemd-251/test/
Dhwdb-test.sh13 ROOTDIR="$(dirname "$(dirname "$(readlink -f "$0")")")"
Drun-integration-tests.sh7 elif BUILD_DIR="$("$(dirname "$0")/../tools/find-build-dir.sh")"; then
Dnetworkd-test.py626 os.makedirs(os.path.dirname(conf), exist_ok=True)
709 os.makedirs(os.path.dirname(conf), exist_ok=True)
716 os.makedirs(os.path.dirname(negative), exist_ok=True)
Dcreate-sys-script.py161 outfile = os.path.abspath(os.path.dirname(sys.argv[0]) + '/sys-script.py')
Dtest-systemd-tmpfiles.py165 os.makedirs(os.path.dirname(path), mode=0o755, exist_ok=True)
Dtest-functions107 TESTNAME="$(basename "$(dirname "$(realpath "$TESTFILE")")")"
139 dirname
/systemd-251/
D.ycm_extra_conf.py58 return os.path.dirname(os.path.abspath(__file__))
/systemd-251/src/libsystemd/sd-journal/
Dsd-journal.c1561 static int add_directory(sd_journal *j, const char *prefix, const char *dirname);
1614 const char *dirname) { in add_directory() argument
1627 path = path_join(prefix, dirname); in add_directory()
1637 !((dirname && dirname_is_machine_id(dirname) > 0) || path_has_prefix(j, path, "/run"))) in add_directory()
1640 if (dirname && in add_directory()
1642 dirname_has_namespace(dirname, j->namespace) > 0 || in add_directory()
1643 …SET(j->flags, SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE) && dirname_has_namespace(dirname, NULL) > 0)))) in add_directory()
/systemd-251/hwdb.d/
Dparse_hwdb.py316 args = sys.argv[1:] or sorted(glob.glob(os.path.dirname(sys.argv[0]) + '/[678][0-9]-*.hwdb'))
/systemd-251/src/basic/
Dpath-util.c784 dir = dirname(d); in dirname_malloc()
/systemd-251/src/machine/
Dmachine-dbus.c979 container_dirname = dirname(t); in bus_machine_method_copy()
/systemd-251/src/nspawn/
Dnspawn.c2595 FOREACH_STRING(dirname, "/var", "/var/log", "/var/log/journal") { in setup_journal()
2596 r = userns_mkdir(directory, dirname, 0755, 0, 0); in setup_journal()
2600 … "Failed to create %s%s: %m", dirname, ignore ? ", ignoring" : ""); in setup_journal()
/systemd-251/test/test-network/
Dsystemd-networkd-tests.py294 copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path)
485 dropindir = os.path.join(network_unit_file_path, os.path.dirname(dropin))
488 unit = os.path.dirname(dropin).rstrip('.d')
/systemd-251/docs/
DCODING_STYLE.md667 only reason to include `libgen.h` is because `dirname()` is needed. Every