Home
last modified time | relevance | path

Searched refs:d_name (Results 1 - 25 of 241) sorted by relevance

12345678910

/third_party/musl/libc-test/src/functionalext/supplement/dirent/
H A Dseekdir.c61 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[BUFSI in seekdir_0200() local
[all...]
H A Drewinddir.c49 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/libfuse/test/
H A Dreaddir_inode.c33 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) { in main()
35 (int)dent->d_type, dent->d_name); in main()
38 dent->d_name, (unsigned long long)dent->d_ino); in main()
41 dent->d_name, (int)dent->d_type); in main()
45 dent->d_name, (int)dent->d_type); in main()
/third_party/ntfs-3g/libntfs-3g/
H A Dunix_io.c127 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()
[all...]
/third_party/ltp/testcases/kernel/syscalls/getdents/
H A Dgetdents.h39 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/pulseaudio/src/pulsecore/
H A Ddatabase.c73 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/ltp/testcases/network/nfs/nfs_stress/
H A Dnfs01_open_files.c113 if (!strncmp(entp->d_name, TEMPLATE_PREFIX, TEMPLATE_PREFIX_LEN)) { in delete_files()
114 if (stat(entp->d_name, &stat_buffer)) in delete_files()
116 entp->d_name, errno); in delete_files()
120 entp->d_name, stat_buffer.st_size); in delete_files()
122 if (unlink(entp->d_name)) in delete_files()
124 entp->d_name); in delete_files()
/third_party/musl/libc-test/src/common/
H A Dcfi_util.h40 if (strstr(ptr->d_name, UBSAN_LOG_TAG) != NULL) { in ShowCfiLogFile()
41 printf("%s: %s\n", UBSAN_LOG_DIR, ptr->d_name); in ShowCfiLogFile()
58 if (strstr(ptr->d_name, log_tag) != NULL) { in ClearCfiLog()
60 snprintf(tmp, BUFFER_SIZE, "%s/%s", log_dir, ptr->d_name); in ClearCfiLog()
119 if (strstr(ptr->d_name, log_tag) != NULL) { in FindDirAndCheck()
121 snprintf(tmp, BUFFER_SIZE, "%s/%s", log_dir, ptr->d_name); in FindDirAndCheck()
H A Dcheck_log.c80 if (strstr(ptr->d_name, file_tag) != NULL) { in find_and_check_file()
83 snprintf(target_file, NAME_BUFFER_SIZE, "%s%s", log_dir, ptr->d_name); in find_and_check_file()
104 if (strstr(ptr->d_name, file_tag) != NULL) { in clear_log()
106 snprintf(target_file, NAME_BUFFER_SIZE, "%s%s", log_dir, ptr->d_name); in clear_log()
/third_party/musl/src/conf/
H A Dlegacy.c30 (strlen(de->d_name) > 3) && in get_nprocs_conf()
31 (de->d_name[0] == 'c') && in get_nprocs_conf()
32 (de->d_name[1] == 'p') && in get_nprocs_conf()
33 (de->d_name[2] == 'u') && in get_nprocs_conf()
34 (isdigit(de->d_name[3]))) in get_nprocs_conf()
/third_party/musl/porting/linux/user/src/conf/
H A Dlegacy.c30 (strlen(de->d_name) > 3) && in get_nprocs_conf()
31 (de->d_name[0] == 'c') && in get_nprocs_conf()
32 (de->d_name[1] == 'p') && in get_nprocs_conf()
33 (de->d_name[2] == 'u') && in get_nprocs_conf()
34 (isdigit(de->d_name[3]))) in get_nprocs_conf()
/third_party/mesa3d/src/gallium/auxiliary/hud/
H A Dhud_diskstat.c271 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()
H A Dhud_cpufreq.c211 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/node/test/wasi/c/
H A Dreaddir.c25 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/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_utils.h50 if (atoi(dent->d_name) == getpid() || atoi(dent->d_name) == 0) in wait_for_threads()
54 getpid(), dent->d_name); in wait_for_threads()
59 tst_res(TINFO, "Thread %s not sleeping yet", dent->d_name); in wait_for_threads()
/third_party/musl/src/misc/
H A Dnftw.c111 if (de->d_name[0] == '.' in do_nftw()
112 && (!de->d_name[1] in do_nftw()
113 || (de->d_name[1]=='.' in do_nftw()
114 && !de->d_name[2]))) continue; in do_nftw()
115 if (strlen(de->d_name) >= PATH_MAX-l) { in do_nftw()
121 strcpy(path+j+1, de->d_name); in do_nftw()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dnftw.c78 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/libcoap/man/
H A Dexamples-code-check.c446 if (!strncmp(pdir_ent->d_name, "coap_", sizeof("coap_")-1) && in main()
447 strstr(pdir_ent->d_name, ".txt.in")) { in main()
462 fprintf(stderr, "Processing: %s\n", pdir_ent->d_name); in main()
464 snprintf(man_name, sizeof(man_name), "%s", pdir_ent->d_name); in main()
483 pdir_ent->d_name); in main()
497 pdir_ent->d_name); in main()
512 check_synopsis(pdir_ent->d_name); in main()
521 check_synopsis(pdir_ent->d_name); in main()
535 check_synopsis(pdir_ent->d_name); in main()
549 check_synopsis(pdir_ent->d_name); in main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/getcpu/
H A Dgetcpu01.c87 if (strncmp(de->d_name, "node", 4)) in get_nodeid()
90 de->d_name); in get_nodeid()
93 if (strncmp(dn->d_name, "cpu", 3)) in get_nodeid()
95 cpu = strtoul(dn->d_name + 3, &invalid_number, 0); in get_nodeid()
100 strtoul(de->d_name + 4, NULL, 0); in get_nodeid()
/third_party/pulseaudio/src/tests/
H A Dalsa-mixer-path-test.c75 if (pa_streq(ent->d_name, ".") || pa_streq(ent->d_name, "..")) in START_TEST()
77 pa_log_debug("Analyzing file: '%s'", ent->d_name); in START_TEST()
80 path = pa_alsa_path_new(pathsdir, ent->d_name, PA_ALSA_DIRECTION_ANY); in START_TEST()
88 found |= pa_streq(ent->d_name, pa_strlist_data(n)); in START_TEST()
/third_party/ltp/testcases/kernel/controllers/libcontrollers/
H A Dlibcontrollers.c76 && (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/musl/src/regex/
H A Dglob.c140 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/rust/crates/rustix/src/backend/libc/fs/
H A Ddir.rs126 name: CStr::from_ptr((*dirent_ptr).d_name.as_ptr()).to_owned(), in read()
243 // whole `d_name` field, which may not be entirely allocated. in read_dirent()
283 // The `d_name` field is NUL-terminated, and we need to be careful not in read_dirent()
292 d_name: zeroed(), in read_dirent()
306 pub d_name: [::c_char; 1024], // Max length is _POSIX_PATH_MAX in read_dirent()
324 // Copy from d_name, reading up to and including the first NUL. in read_dirent()
327 let name_len = CStr::from_ptr(input.d_name.as_ptr()) in read_dirent()
330 dirent.d_name[..name_len].copy_from_slice(&input.d_name[..name_len]); in read_dirent()
381 CStr::from_ptr(self.dirent.d_name in file_name()
[all...]
/third_party/ltp/testcases/kernel/fs/proc/
H A Dproc01.c306 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()
/third_party/ltp/testcases/kernel/syscalls/readdir/
H A Dreaddir01.c50 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()

Completed in 15 milliseconds

12345678910