Home
last modified time | relevance | path

Searched refs:dent (Results 1 – 25 of 47) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_utils.h33 struct dirent *dent; in wait_for_threads() local
40 while ((dent = SAFE_READDIR(dir))) { in wait_for_threads()
42 if (atoi(dent->d_name) == getpid() || atoi(dent->d_name) == 0) in wait_for_threads()
46 getpid(), dent->d_name); in wait_for_threads()
51 tst_res(TINFO, "Thread %s not sleeping yet", dent->d_name); in wait_for_threads()
/third_party/eudev/src/libudev/
Dlibudev-enumerate.c663 struct dirent *dent; in scan_dir_and_add_devices() local
674 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in scan_dir_and_add_devices()
678 if (dent->d_name[0] == '.') in scan_dir_and_add_devices()
681 if (!match_sysname(udev_enumerate, dent->d_name)) in scan_dir_and_add_devices()
684 strscpyl(syspath, sizeof(syspath), path, "/", dent->d_name, NULL); in scan_dir_and_add_devices()
748 struct dirent *dent; in scan_dir() local
754 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in scan_dir()
755 if (dent->d_name[0] == '.') in scan_dir()
757 if (!match_subsystem(udev_enumerate, subsystem != NULL ? subsystem : dent->d_name)) in scan_dir()
759 scan_dir_and_add_devices(udev_enumerate, basedir, dent->d_name, subdir); in scan_dir()
[all …]
Dlibudev-device.c1623 struct dirent *dent; in udev_device_sysattr_list_read() local
1636 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in udev_device_sysattr_list_read()
1641 if (dent->d_type != DT_LNK && dent->d_type != DT_REG) in udev_device_sysattr_list_read()
1644 … strscpyl(path, sizeof(path), udev_device_get_syspath(udev_device), "/", dent->d_name, NULL); in udev_device_sysattr_list_read()
1650 udev_list_entry_add(&udev_device->sysattr_list, dent->d_name, NULL); in udev_device_sysattr_list_read()
/third_party/ltp/testcases/kernel/fs/read_all/
Dread_all.c382 struct dirent *dent; in visit_dir() local
395 dent = readdir(dir); in visit_dir()
396 if (!dent && errno) { in visit_dir()
399 } else if (!dent) { in visit_dir()
403 if (!strcmp(dent->d_name, ".") || in visit_dir()
404 !strcmp(dent->d_name, "..")) in visit_dir()
407 if (dent->d_type == DT_DIR) in visit_dir()
409 else if (dent->d_type == DT_LNK) in visit_dir()
411 else if (dent->d_type == DT_UNKNOWN) in visit_dir()
417 "%s/%s", path, dent->d_name); in visit_dir()
/third_party/eudev/src/udev/
Dudevadm-info.c197 struct dirent *dent; in cleanup_dir() local
202 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in cleanup_dir()
205 if (dent->d_name[0] == '.') in cleanup_dir()
207 if (fstatat(dirfd(dir), dent->d_name, &stats, AT_SYMLINK_NOFOLLOW) != 0) in cleanup_dir()
214 … dir2 = fdopendir(openat(dirfd(dir), dent->d_name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC)); in cleanup_dir()
218 (void) unlinkat(dirfd(dir), dent->d_name, AT_REMOVEDIR); in cleanup_dir()
220 (void) unlinkat(dirfd(dir), dent->d_name, 0); in cleanup_dir()
Dudev-node.c146 struct dirent *dent; in link_find_prioritized() local
148 dent = readdir(dir); in link_find_prioritized()
149 if (dent == NULL || dent->d_name[0] == '\0') in link_find_prioritized()
151 if (dent->d_name[0] == '.') in link_find_prioritized()
154 log_debug("found '%s' claiming '%s'", dent->d_name, stackdir); in link_find_prioritized()
157 if (streq(dent->d_name, udev_device_get_id_filename(dev))) in link_find_prioritized()
160 dev_db = udev_device_new_from_device_id(udev, dent->d_name); in link_find_prioritized()
Dudev-builtin-path_id.c316 struct dirent *dent; in handle_scsi_default() local
359 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in handle_scsi_default()
363 if (dent->d_name[0] == '.') in handle_scsi_default()
365 if (dent->d_type != DT_DIR && dent->d_type != DT_LNK) in handle_scsi_default()
367 if (!startswith(dent->d_name, "host")) in handle_scsi_default()
369 i = strtoul(&dent->d_name[4], &rest, 10); in handle_scsi_default()
Dudev-builtin-net_id.c197 struct dirent *dent; in dev_pci_slot() local
234 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in dev_pci_slot()
239 if (dent->d_name[0] == '.') in dev_pci_slot()
241 i = strtol(dent->d_name, &rest, 10); in dev_pci_slot()
246 snprintf(str, sizeof(str), "%s/%s/address", slots, dent->d_name); in dev_pci_slot()
/third_party/flutter/skia/third_party/externals/sdl/src/power/linux/
DSDL_syspower.c238 struct dirent *dent = NULL; in SDL_GetPowerInfo_Linux_proc_acpi() local
252 while ((dent = readdir(dirp)) != NULL) { in SDL_GetPowerInfo_Linux_proc_acpi()
253 const char *node = dent->d_name; in SDL_GetPowerInfo_Linux_proc_acpi()
264 while ((dent = readdir(dirp)) != NULL) { in SDL_GetPowerInfo_Linux_proc_acpi()
265 const char *node = dent->d_name; in SDL_GetPowerInfo_Linux_proc_acpi()
434 struct dirent *dent; in SDL_GetPowerInfo_Linux_sys_class_power_supply() local
446 while ((dent = readdir(dirp)) != NULL) { in SDL_GetPowerInfo_Linux_sys_class_power_supply()
447 const char *name = dent->d_name; in SDL_GetPowerInfo_Linux_sys_class_power_supply()
/third_party/gn/src/base/files/
Dfile_enumerator_posix.cc115 struct dirent* dent; in Next() local
116 while ((dent = readdir(dir))) { in Next()
118 info.filename_ = FilePath(dent->d_name); in Next()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dhugepage.h91 struct dirent *dent; in gethugepagesize() local
95 while ((dent = readdir(dir)) != NULL) in gethugepagesize()
96 if (sscanf(dent->d_name, "hugepages-%dkB", &hpagesize) >= 1) in gethugepagesize()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dhostapd_cli.c951 struct dirent *dent; in hostapd_cli_get_interfaces() local
960 while ((dent = readdir(dir))) { in hostapd_cli_get_interfaces()
961 if (strcmp(dent->d_name, ".") == 0 || in hostapd_cli_get_interfaces()
962 strcmp(dent->d_name, "..") == 0) in hostapd_cli_get_interfaces()
964 cli_txt_list_add(interfaces, dent->d_name); in hostapd_cli_get_interfaces()
972 struct dirent *dent; in hostapd_cli_list_interfaces() local
983 while ((dent = readdir(dir))) { in hostapd_cli_list_interfaces()
984 if (strcmp(dent->d_name, ".") == 0 || in hostapd_cli_list_interfaces()
985 strcmp(dent->d_name, "..") == 0) in hostapd_cli_list_interfaces()
987 printf("%s\n", dent->d_name); in hostapd_cli_list_interfaces()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dhostapd_cli.c950 struct dirent *dent; in hostapd_cli_get_interfaces() local
959 while ((dent = readdir(dir))) { in hostapd_cli_get_interfaces()
960 if (strcmp(dent->d_name, ".") == 0 || in hostapd_cli_get_interfaces()
961 strcmp(dent->d_name, "..") == 0) in hostapd_cli_get_interfaces()
963 cli_txt_list_add(interfaces, dent->d_name); in hostapd_cli_get_interfaces()
971 struct dirent *dent; in hostapd_cli_list_interfaces() local
982 while ((dent = readdir(dir))) { in hostapd_cli_list_interfaces()
983 if (strcmp(dent->d_name, ".") == 0 || in hostapd_cli_list_interfaces()
984 strcmp(dent->d_name, "..") == 0) in hostapd_cli_list_interfaces()
986 printf("%s\n", dent->d_name); in hostapd_cli_list_interfaces()
[all …]
/third_party/e2fsprogs/misc/
Dcreate_inode.c747 struct dirent *dent; in scandir() local
757 while ((dent = readdir(dir))) { in scandir()
758 if (filter != NULL && !(*filter)(dent)) in scandir()
773 temp_list[num_dent] = (struct dirent*)malloc((dent->d_reclen + 3) & ~3); in scandir()
776 memcpy(temp_list[num_dent], dent, dent->d_reclen); in scandir()
814 struct dirent **dent; in __populate_fs() local
833 num_dents = scandir(".", &dent, NULL, alphasort); in __populate_fs()
842 for (i = 0; i < num_dents; free(dent[i]), i++) { in __populate_fs()
843 name = dent[i]->d_name; in __populate_fs()
1043 for (; i < num_dents; free(dent[i]), i++); in __populate_fs()
[all …]
/third_party/libuv/test/
Dtest-fs.c532 static void assert_is_file_type(uv_dirent_t dent) { in assert_is_file_type() argument
544 ASSERT(dent.type == UV_DIRENT_FILE); in assert_is_file_type()
546 ASSERT(dent.type == UV_DIRENT_FILE || dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
549 ASSERT(dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
555 uv_dirent_t dent; in scandir_cb() local
561 while (UV_EOF != uv_fs_scandir_next(req, &dent)) { in scandir_cb()
562 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in scandir_cb()
563 assert_is_file_type(dent); in scandir_cb()
574 uv_dirent_t dent; in empty_scandir_cb() local
580 ASSERT(UV_EOF == uv_fs_scandir_next(req, &dent)); in empty_scandir_cb()
[all …]
/third_party/libevdev/libevdev/
Dlibevdev-uinput.c212 static int is_event_device(const struct dirent *dent) { in is_event_device() argument
213 return strncmp("event", dent->d_name, 5) == 0; in is_event_device()
240 static int is_input_device(const struct dirent *dent) { in is_input_device() argument
241 return strncmp("input", dent->d_name, 5) == 0; in is_input_device()
/third_party/libuv/src/
Duv-common.c667 uv__dirent_t* dent; in uv_fs_scandir_next() local
694 dent = dents[(*nbufs)++]; in uv_fs_scandir_next()
696 ent->name = dent->d_name; in uv_fs_scandir_next()
697 ent->type = uv__fs_get_dirent_type(dent); in uv_fs_scandir_next()
702 uv_dirent_type_t uv__fs_get_dirent_type(uv__dirent_t* dent) { in uv__fs_get_dirent_type() argument
706 switch (dent->d_type) { in uv__fs_get_dirent_type()
/third_party/libdrm/
Dxf86drmMode.c757 struct dirent *dent; in drmCheckModesettingSupported() local
769 dent = readdir(sysdir); in drmCheckModesettingSupported()
770 while (dent) { in drmCheckModesettingSupported()
771 if (!strncmp(dent->d_name, "controlD", 8)) { in drmCheckModesettingSupported()
776 dent = readdir(sysdir); in drmCheckModesettingSupported()
790 dent = readdir(sysdir); in drmCheckModesettingSupported()
791 while (dent) { in drmCheckModesettingSupported()
792 if (!strncmp(dent->d_name, "drm:controlD", 12)) { in drmCheckModesettingSupported()
797 dent = readdir(sysdir); in drmCheckModesettingSupported()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/
Dwpagui.cpp290 struct dirent *dent; in openCtrlConnection() local
295 while ((dent = readdir(dir))) { in openCtrlConnection()
301 if (dent->d_type != DT_SOCK && in openCtrlConnection()
302 dent->d_type != DT_UNKNOWN) in openCtrlConnection()
306 if (strcmp(dent->d_name, ".") == 0 || in openCtrlConnection()
307 strcmp(dent->d_name, "..") == 0) in openCtrlConnection()
310 dent->d_name); in openCtrlConnection()
311 ctrl_iface = strdup(dent->d_name); in openCtrlConnection()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/
Dwpagui.cpp288 struct dirent *dent; in openCtrlConnection() local
293 while ((dent = readdir(dir))) { in openCtrlConnection()
299 if (dent->d_type != DT_SOCK && in openCtrlConnection()
300 dent->d_type != DT_UNKNOWN) in openCtrlConnection()
304 if (strcmp(dent->d_name, ".") == 0 || in openCtrlConnection()
305 strcmp(dent->d_name, "..") == 0) in openCtrlConnection()
308 dent->d_name); in openCtrlConnection()
309 ctrl_iface = strdup(dent->d_name); in openCtrlConnection()
/third_party/mksh/
Dmain.c2069 struct dirent *dent; in init_environ() local
2079 if ((dent = readdir(dirp)) != NULL) { in init_environ()
2080 if (skip_varname(dent->d_name, true)[0] == '\0') { in init_environ() local
2081 strpathx(xp, MKSH_ENVDIR, dent->d_name, 1); in init_environ()
2085 dent->d_name, MKSH_ENVDIR, in init_environ()
2090 n = strlen(dent->d_name); in init_environ()
2093 memcpy(xp, dent->d_name, n); in init_environ()
2104 dent->d_name, MKSH_ENVDIR, in init_environ()
/third_party/flutter/flutter/packages/flutter_localizations/lib/src/l10n/
Dmaterial_fr_CA.arb9 "previousMonthTooltip": "Mois précédent",
Dmaterial_fr.arb9 "previousMonthTooltip": "Mois précédent",
/third_party/libwebsockets/lib/plat/windows/
Dwindows-plugins.c69 __func__, path, dent.name, lib.errmsg); in lws_plat_dlopen()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibcpuset.c1522 struct dirent *dent; in build_distmap() local
1537 while ((dent = readdir(dir)) != NULL) { in build_distmap()
1541 if (sscanf(dent->d_name, "node%u", &node) < 1) in build_distmap()
1543 pathcat3(buf, sizeof(buf), distance_directory, dent->d_name, in build_distmap()
2291 struct dirent *dent; in cpuset_collides_exclusive() local
2327 while ((dent = readdir(dir)) != NULL) { in cpuset_collides_exclusive()
2330 if (streq(dent->d_name, ".") || streq(dent->d_name, "..")) in cpuset_collides_exclusive()
2332 if (streq(dent->d_name, base)) in cpuset_collides_exclusive()
2334 pathcat2(child, sizeof(child), parent, dent->d_name); in cpuset_collides_exclusive()

12