/third_party/musl/libc-test/src/functionalext/supplement/dirent/ |
D | seekdir.c | 61 char d_name[BUFSIZ] = {0}; in seekdir_0100() local 62 strcpy(d_name, result->d_name); in seekdir_0100() 75 if (strcmp(result->d_name, d_name)) { in seekdir_0100() 76 …t_error("%s failed: strcmp. result->d_name = %s, d_name = %s\n", __func__, result->d_name, d_name); in seekdir_0100() 99 char d_name[BUFSIZ] = {0}; in seekdir_0200() local 100 strcpy(d_name, result->d_name); in seekdir_0200() 113 if (strcmp(result->d_name, d_name)) { in seekdir_0200() 114 …t_error("%s failed: strcmp. result->d_name = %s, d_name = %s\n", __func__, result->d_name, d_name); in seekdir_0200()
|
D | rewinddir.c | 49 char *d_name = result->d_name; in rewinddir_0100() local 61 if (strcmp(d_name, result->d_name)) { in rewinddir_0100() 62 …t_error("%s failed: strcmp. d_name = %s, result->d_name = %s\n", __func__, d_name, result->d_name); in rewinddir_0100()
|
/third_party/e2fsprogs/contrib/ |
D | spd_readdir.c | 66 char *d_name; member 157 free(dirstruct->dp[i].d_name); in free_cached_dir() 173 if (ds_a->d_name[0] == '.') { in ino_cmp() 174 if (ds_a->d_name[1] == 0) in ino_cmp() 176 else if ((ds_a->d_name[1] == '.') && (ds_a->d_name[2] == 0)) in ino_cmp() 179 if (ds_b->d_name[0] == '.') { in ino_cmp() 180 if (ds_b->d_name[1] == 0) in ino_cmp() 182 else if ((ds_b->d_name[1] == '.') && (ds_b->d_name[2] == 0)) in ino_cmp() 224 if ((ds->d_name = malloc(strlen(d->d_name)+1)) == NULL) { in cache_dirstruct() 228 strcpy(ds->d_name, d->d_name); in cache_dirstruct() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | database.c | 73 if (pa_startswith(de->d_name, filename_prefix) in pa_database_open() 74 && de->d_name[strlen(filename_prefix)] == '.' in pa_database_open() 75 && pa_endswith(de->d_name + strlen(filename_prefix) + 1, filename_suffix)) { in pa_database_open() 79 pa_log_debug("Found existing database file '%s/%s', using it", path, de->d_name); in pa_database_open() 81 … filename_prefix = pa_xstrndup(de->d_name, strlen(de->d_name) - strlen(filename_suffix)); in pa_database_open()
|
/third_party/ntfs-3g/libntfs-3g/ |
D | unix_io.c | 127 if (stat(dev->d_name, &sbuf)) { in ntfs_device_unix_io_open() 128 ntfs_log_perror("Failed to access '%s'", dev->d_name); in ntfs_device_unix_io_open() 143 *(int*)dev->d_private = open(dev->d_name, flags); in ntfs_device_unix_io_open() 180 "read" : "write", dev->d_name); in ntfs_device_unix_io_open() 182 ntfs_log_perror("Failed to close '%s'", dev->d_name); in ntfs_device_unix_io_open() 209 ntfs_log_perror("Device %s is not open", dev->d_name); in ntfs_device_unix_io_close() 214 ntfs_log_perror("Failed to fsync device %s", dev->d_name); in ntfs_device_unix_io_close() 223 ntfs_log_perror("Could not unlock %s", dev->d_name); in ntfs_device_unix_io_close() 225 ntfs_log_perror("Failed to close device %s", dev->d_name); in ntfs_device_unix_io_close() 341 ntfs_log_perror("Failed to sync device %s", dev->d_name); in ntfs_device_unix_io_sync()
|
/third_party/ltp/testcases/kernel/syscalls/getdents/ |
D | getdents.h | 39 char d_name[]; member 53 char d_name[]; member 87 return ((struct linux_dirent *)dirp)->d_name; in tst_dirp_name() 89 return ((struct linux_dirent64 *)dirp)->d_name; in tst_dirp_name() 92 return ((struct dirent *)dirp)->d_name; in tst_dirp_name() 96 return ((struct dirent64 *)dirp)->d_name; in tst_dirp_name()
|
/third_party/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs01_open_files.c | 104 if (!strncmp(entp->d_name, "apt", 3)) { in delete_files() 105 if (stat(entp->d_name, &stat_buffer)) in delete_files() 107 entp->d_name, errno); in delete_files() 110 entp->d_name); in delete_files() 111 if (unlink(entp->d_name)) in delete_files() 113 entp->d_name); in delete_files()
|
/third_party/boost/boost/process/detail/posix/ |
D | handles.hpp | 40 if (ent_p->d_name[0] == '.') in get_handles() 43 const auto conv = std::atoi(ent_p->d_name); in get_handles() 44 if (conv == 0 && (ent_p->d_name[0] != '0' && ent_p->d_name[1] != '\0')) in get_handles() 123 if (ent_p->d_name[0] == '.') in on_exec_setup() 126 const auto conv = std::atoi(ent_p->d_name); in on_exec_setup()
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
D | futex_utils.h | 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/node/test/wasi/c/ |
D | readdir.c | 25 if (strcmp(entry->d_name, "input.txt") == 0 || in main() 26 strcmp(entry->d_name, "input2.txt") == 0 || in main() 27 strcmp(entry->d_name, "notadir") == 0) { in main() 33 } else if (strcmp(entry->d_name, "subdir") == 0) { in main()
|
/third_party/libcoap/man/ |
D | examples-code-check.c | 152 if (!strncmp(pdir_ent->d_name, "coap_", sizeof ("coap_")-1) && in main() 153 strstr (pdir_ent->d_name, ".txt.in")) { in main() 171 fprintf(stderr, "Processing: %s\n", pdir_ent->d_name); in main() 173 snprintf(buffer, sizeof (buffer), "%s", pdir_ent->d_name); in main() 183 pdir_ent->d_name); in main() 197 check_synopsis(pdir_ent->d_name); in main() 225 check_synopsis(pdir_ent->d_name); in main() 377 pdir_ent->d_name, count++); in main() 389 pdir_ent->d_name, in main() 423 fprintf(fpcode, "#include \"%s.h\"\n", pdir_ent->d_name); in main()
|
/third_party/pulseaudio/src/tests/ |
D | alsa-mixer-path-test.c | 76 if (pa_streq(ent->d_name, ".") || pa_streq(ent->d_name, "..")) in START_TEST() 78 pa_log_debug("Analyzing file: '%s'", ent->d_name); in START_TEST() 81 path = pa_alsa_path_new(pathsdir, ent->d_name, PA_ALSA_DIRECTION_ANY); in START_TEST() 89 found |= pa_streq(ent->d_name, pa_strlist_data(n)); in START_TEST()
|
/third_party/e2fsprogs/misc/ |
D | lsattr.c | 146 path = malloc(dir_len + strlen (de->d_name) + 2); in lsattr_dir_proc() 154 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc() 156 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc() 160 if (de->d_name[0] != '.' || all) { in lsattr_dir_proc() 163 strcmp(de->d_name, ".") && in lsattr_dir_proc() 164 strcmp(de->d_name, "..")) { in lsattr_dir_proc()
|
D | mk_hugefiles.c | 123 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..") || in search_sysfs_block() 124 strlen(de->d_name) > sizeof(path)-32) in search_sysfs_block() 127 "/sys/block/%s/dev", de->d_name); in search_sysfs_block() 134 "/sys/block/%s", de->d_name); in search_sysfs_block() 145 snprintf(path, SYSFS_PATH_LEN, "/sys/block/%s", de->d_name); in search_sysfs_block() 152 if (!strcmp(p_de->d_name, ".") || in search_sysfs_block() 153 !strcmp(p_de->d_name, "..") || in search_sysfs_block() 154 (strlen(p_de->d_name) > in search_sysfs_block() 158 path, p_de->d_name); in search_sysfs_block() 166 path, p_de->d_name); in search_sysfs_block()
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_diskstat.c | 271 if (strlen(dp->d_name) <= 2) in hud_get_num_disks() 275 snprintf(basename, sizeof(basename), "/sys/block/%s", dp->d_name); in hud_get_num_disks() 284 add_object(basename, dp->d_name, DISKSTAT_RD); in hud_get_num_disks() 285 add_object(basename, dp->d_name, DISKSTAT_WR); in hud_get_num_disks() 298 if (strlen(dpart->d_name) <= 2) in hud_get_num_disks() 302 snprintf(p, sizeof(p), "%s/%s/stat", basename, dpart->d_name); in hud_get_num_disks() 310 add_object_part(basename, dpart->d_name, DISKSTAT_RD); in hud_get_num_disks() 311 add_object_part(basename, dpart->d_name, DISKSTAT_WR); in hud_get_num_disks()
|
D | hud_cpufreq.c | 211 size_t d_name_len = strlen(dp->d_name); in hud_get_num_cpufreq() 219 if (sscanf(dp->d_name, "cpu%d\n", &cpu_index) != 1) in hud_get_num_cpufreq() 223 snprintf(basename, sizeof(basename), "/sys/devices/system/cpu/%s", dp->d_name); in hud_get_num_cpufreq() 233 add_object(dp->d_name, fn, CPUFREQ_MINIMUM, cpu_index); in hud_get_num_cpufreq() 236 add_object(dp->d_name, fn, CPUFREQ_CURRENT, cpu_index); in hud_get_num_cpufreq() 239 add_object(dp->d_name, fn, CPUFREQ_MAXIMUM, cpu_index); in hud_get_num_cpufreq()
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | finddev.c | 96 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path)) in scan_dir() 98 if (dp->d_name[0] == '.' && in scan_dir() 99 ((dp->d_name[1] == 0) || in scan_dir() 100 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in scan_dir() 102 sprintf(path, "%s/%s", dirname, dp->d_name); in scan_dir()
|
/third_party/glib/glib/ |
D | gdir.c | 236 && (0 == wcscmp (wentry->d_name, L".") || in g_dir_read_name() 237 0 == wcscmp (wentry->d_name, L".."))) in g_dir_read_name() 243 utf8_name = g_utf16_to_utf8 (wentry->d_name, -1, NULL, NULL, NULL); in g_dir_read_name() 256 && (0 == strcmp (entry->d_name, ".") || in g_dir_read_name() 257 0 == strcmp (entry->d_name, ".."))) in g_dir_read_name() 261 return entry->d_name; in g_dir_read_name()
|
/third_party/musl/src/misc/ |
D | nftw.c | 78 if (de->d_name[0] == '.' in do_nftw() 79 && (!de->d_name[1] in do_nftw() 80 || (de->d_name[1]=='.' in do_nftw() 81 && !de->d_name[2]))) continue; in do_nftw() 82 if (strlen(de->d_name) >= PATH_MAX-l) { in do_nftw() 88 strcpy(path+j+1, de->d_name); in do_nftw()
|
/third_party/e2fsprogs/lib/blkid/ |
D | devno.c | 110 if (dirlen + strlen(dp->d_name) >= sizeof(path)) in blkid__scan_dir() 113 if (dp->d_name[0] == '.' && in blkid__scan_dir() 114 ((dp->d_name[1] == 0) || in blkid__scan_dir() 115 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in blkid__scan_dir() 118 sprintf(path, "%s/%s", dirname, dp->d_name); in blkid__scan_dir()
|
/third_party/ltp/testcases/kernel/syscalls/getcpu/ |
D | getcpu01.c | 101 if (strncmp(de->d_name, "node", 4)) in get_nodeid() 104 de->d_name); in get_nodeid() 107 if (strncmp(dn->d_name, "cpu", 3)) in get_nodeid() 109 cpu = strtoul(dn->d_name + 3, NULL, 0); in get_nodeid() 112 strtoul(de->d_name + 4, NULL, 0); in get_nodeid()
|
/third_party/musl/src/regex/ |
D | glob.c | 140 size_t l = strlen(de->d_name); in do_glob() 148 if (fnmatch(pat, de->d_name, fnm_flags)) in do_glob() 153 if (p2 && (flags & GLOB_PERIOD) && de->d_name[0]=='.' in do_glob() 154 && (!de->d_name[1] || de->d_name[1]=='.' && !de->d_name[2]) in do_glob() 155 && fnmatch(pat, de->d_name, fnm_flags | FNM_PERIOD)) in do_glob() 158 memcpy(buf+pos, de->d_name, l+1); in do_glob()
|
/third_party/ltp/testcases/kernel/controllers/libcontrollers/ |
D | libcontrollers.c | 76 && (strcmp(dir_pointer->d_name, "cpu.shares") == 0)) { in scan_shares_files() 100 if ((strcmp(dir_pointer->d_name, ".") == 0) in scan_shares_files() 101 || (strcmp(dir_pointer->d_name, "..") == 0)) in scan_shares_files() 105 strcpy(path_pointer, dir_pointer->d_name); /* append name to fullpath */ in scan_shares_files()
|
/third_party/ltp/testcases/kernel/syscalls/readdir/ |
D | readdir01.c | 50 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) in verify_readdir() 52 if (!strncmp(ent->d_name, prefix, sizeof(prefix) - 1)) in verify_readdir()
|
/third_party/ltp/testcases/kernel/fs/proc/ |
D | proc01.c | 306 if (strcmp(dir_ent->d_name, ".") && in readproc() 307 strcmp(dir_ent->d_name, "..") && in readproc() 308 strcmp(dir_ent->d_name, "kcore") && in readproc() 309 (fnmatch("[0-9]*", dir_ent->d_name, in readproc() 315 dir_ent->d_name); in readproc() 321 "%s/%s", obj, dir_ent->d_name); in readproc()
|