/systemd-251/src/basic/ |
D | dirent-util.h | 11 bool dirent_is_file(const struct dirent *de) _pure_; 12 bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_; 14 struct dirent *readdir_ensure_type(DIR *d); 15 struct dirent *readdir_no_dot(DIR *dirp); 18 for (struct dirent *(de) = readdir_ensure_type(d);; (de) = readdir_ensure_type(d)) \ 33 #define DIRENT_SIZE_MAX CONST_MAX(sizeof(struct dirent), offsetof(struct dirent, d_name) + NAME_MAX… 38 assert_cc(sizeof(struct dirent) == sizeof(struct dirent64)); 39 assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino)); 40 assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino)); 41 assert_cc(offsetof(struct dirent, d_off) == offsetof(struct dirent64, d_off)); [all …]
|
D | dirent-util.c | 11 static int dirent_ensure_type(DIR *d, struct dirent *de) { in dirent_ensure_type() 41 bool dirent_is_file(const struct dirent *de) { in dirent_is_file() 53 bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) { in dirent_is_file_with_suffix() 68 struct dirent *readdir_ensure_type(DIR *d) { in readdir_ensure_type() 76 struct dirent *de; in readdir_ensure_type() 95 struct dirent *readdir_no_dot(DIR *d) { in readdir_no_dot() 99 struct dirent *de; in readdir_no_dot()
|
D | recurse-dir.h | 55 const struct dirent *de, /* directory entry (always valid) */ 72 struct dirent** entries; 74 struct dirent buffer[];
|
D | recurse-dir.c | 14 static int sort_func(struct dirent * const *a, struct dirent * const *b) { in sort_func() 18 static bool ignore_dirent(const struct dirent *de, RecurseDirFlags flags) { in ignore_dirent() 33 struct dirent *entry; in readdir_all() 91 add = sizeof(struct dirent*) * de->n_entries; in readdir_all() 100 …de->entries = (struct dirent**) ((uint8_t*) de + ALIGN(offsetof(DirectoryEntries, buffer) + de->bu… in readdir_all()
|
D | stat-util.c | 76 struct dirent *buf; in dir_is_empty_at() 107 struct dirent *de; in dir_is_empty_at()
|
D | glob-util.c | 28 pglob->gl_readdir = (struct dirent *(*)(void *)) readdir_no_dot; in safe_glob()
|
D | meson.build | 37 'dirent-util.c', 38 'dirent-util.h',
|
/systemd-251/src/pstore/ |
D | pstore.c | 95 struct dirent dirent; member 115 return strcmp(a->dirent.d_name, b->dirent.d_name); in compare_pstore_entries() 128 ifd_path = path_join(arg_sourcedir, pe->dirent.d_name); in move_file() 132 ofd_path = path_join(arg_archivedir, subdir, pe->dirent.d_name); in move_file() 138 message = strjoina("MESSAGE=PStore ", pe->dirent.d_name, suffix); in move_file() 226 if (!startswith(pe->dirent.d_name, "dmesg-")) in process_dmesg_files() 229 if (endswith(pe->dirent.d_name, ".enc.z")) /* indicates a problem */ in process_dmesg_files() 231 p = strrchr(pe->dirent.d_name, '-'); in process_dmesg_files() 304 size_t needed = strlen(pe->dirent.d_name) + strlen(":\n") + pe->content_size + 1; in process_dmesg_files() 311 dmesg_size += sprintf(dmesg + dmesg_size, "%s:\n", pe->dirent.d_name); in process_dmesg_files() [all …]
|
/systemd-251/src/boot/efi/ |
D | drivers.c | 86 _cleanup_freepool_ EFI_FILE_INFO *dirent = NULL; in load_drivers() local 100 err = readdir_harder(drivers_dir, &dirent, &dirent_size); in load_drivers() 103 if (!dirent) /* End of directory */ in load_drivers() 106 if (dirent->FileName[0] == '.') in load_drivers() 108 if (FLAGS_SET(dirent->Attribute, EFI_FILE_DIRECTORY)) in load_drivers() 110 if (!endswith_no_case(dirent->FileName, EFI_MACHINE_TYPE_NAME L".efi")) in load_drivers() 113 err = load_one_driver(parent_image, loaded_image, dirent->FileName); in load_drivers()
|
D | cpio.c | 323 _cleanup_freepool_ EFI_FILE_INFO *dirent = NULL; in pack_cpio() local 377 err = readdir_harder(extra_dir, &dirent, &dirent_size); in pack_cpio() 380 if (!dirent) /* End of directory */ in pack_cpio() 383 if (dirent->FileName[0] == '.') in pack_cpio() 385 if (FLAGS_SET(dirent->Attribute, EFI_FILE_DIRECTORY)) in pack_cpio() 387 if (match_suffix && !endswith_no_case(dirent->FileName, match_suffix)) in pack_cpio() 389 if (!is_ascii(dirent->FileName)) in pack_cpio() 391 if (StrLen(dirent->FileName) > 255) /* Max filename size on Linux */ in pack_cpio() 394 d = xstrdup(dirent->FileName); in pack_cpio() 447 … return log_error_status_stall(err, L"Failed to pack cpio file %s: %r", dirent->FileName, err); in pack_cpio()
|
/systemd-251/src/core/ |
D | kmod-setup.c | 37 const struct dirent *de, in has_virtio_rng_recurse_dir_cb()
|
D | import-creds.c | 180 const struct dirent *d = de->entries[i]; in import_credentials_boot() 383 const struct dirent *d = de->entries[i]; in import_credentials_qemu()
|
/systemd-251/src/test/ |
D | test-glob-util.c | 44 .gl_readdir = (struct dirent *(*)(void *)) readdir_no_dot, in TEST()
|
D | test-recurse-dir.c | 60 const struct dirent *de, in recurse_dir_callback()
|
/systemd-251/src/shared/ |
D | kbd-util.c | 24 const struct dirent *de, in keymap_recurse_dir_callback()
|
D | blockdev-util.c | 322 struct dirent *de; in blockdev_is_encrypted()
|
D | mount-setup.c | 368 const struct dirent *de, in relabel_cb()
|
D | tpm2-util.c | 1221 struct dirent *de; in tpm2_list_devices() 1295 struct dirent *de; in tpm2_find_device_auto()
|
D | cgroup-setup.c | 221 const struct dirent *de, in trim_cb()
|
D | bootspec.c | 411 const struct dirent *de = dentries->entries[i]; in boot_entries_find_type1()
|
/systemd-251/src/import/ |
D | import-common.c | 162 struct dirent *dent; in import_mangle_os_tree()
|
/systemd-251/src/sysupdate/ |
D | sysupdate-resource.c | 95 struct dirent *de; in resource_load_from_directory()
|
D | sysupdate-transfer.c | 604 struct dirent *de; in transfer_remove_temporary()
|
/systemd-251/src/creds/ |
D | creds.c | 133 struct dirent *de; in add_credentials_to_table()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-enumerator.c | 657 static bool relevant_sysfs_subdir(const struct dirent *de) { in relevant_sysfs_subdir()
|