Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 25 of 32) sorted by relevance

12

/systemd-251/src/basic/
Ddirent-util.h11 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 …]
Ddirent-util.c11 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()
Drecurse-dir.h55 const struct dirent *de, /* directory entry (always valid) */
72 struct dirent** entries;
74 struct dirent buffer[];
Drecurse-dir.c14 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()
Dstat-util.c76 struct dirent *buf; in dir_is_empty_at()
107 struct dirent *de; in dir_is_empty_at()
Dglob-util.c28 pglob->gl_readdir = (struct dirent *(*)(void *)) readdir_no_dot; in safe_glob()
Dmeson.build37 'dirent-util.c',
38 'dirent-util.h',
/systemd-251/src/pstore/
Dpstore.c95 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/
Ddrivers.c86 _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()
Dcpio.c323 _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/
Dkmod-setup.c37 const struct dirent *de, in has_virtio_rng_recurse_dir_cb()
Dimport-creds.c180 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/
Dtest-glob-util.c44 .gl_readdir = (struct dirent *(*)(void *)) readdir_no_dot, in TEST()
Dtest-recurse-dir.c60 const struct dirent *de, in recurse_dir_callback()
/systemd-251/src/shared/
Dkbd-util.c24 const struct dirent *de, in keymap_recurse_dir_callback()
Dblockdev-util.c322 struct dirent *de; in blockdev_is_encrypted()
Dmount-setup.c368 const struct dirent *de, in relabel_cb()
Dtpm2-util.c1221 struct dirent *de; in tpm2_list_devices()
1295 struct dirent *de; in tpm2_find_device_auto()
Dcgroup-setup.c221 const struct dirent *de, in trim_cb()
Dbootspec.c411 const struct dirent *de = dentries->entries[i]; in boot_entries_find_type1()
/systemd-251/src/import/
Dimport-common.c162 struct dirent *dent; in import_mangle_os_tree()
/systemd-251/src/sysupdate/
Dsysupdate-resource.c95 struct dirent *de; in resource_load_from_directory()
Dsysupdate-transfer.c604 struct dirent *de; in transfer_remove_temporary()
/systemd-251/src/creds/
Dcreds.c133 struct dirent *de; in add_credentials_to_table()
/systemd-251/src/libsystemd/sd-device/
Ddevice-enumerator.c657 static bool relevant_sysfs_subdir(const struct dirent *de) { in relevant_sysfs_subdir()

12