/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/libwebsockets/lib/plat/unix/ |
D | unix-plugins.c | 40 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) in filter() 72 if (strlen(namelist[i]->d_name) < 7) in lws_plat_plugins_init() 75 lwsl_notice(" %s\n", namelist[i]->d_name); in lws_plat_plugins_init() 78 namelist[i]->d_name); in lws_plat_plugins_init() 88 namelist[i]->d_name + 3 /* snip lib... */); in lws_plat_plugins_init() 93 __func__, path, namelist[i]->d_name, dlerror()); in lws_plat_plugins_init() 100 namelist[i]->d_name, m); in lws_plat_plugins_init() 112 lws_strncpy(plugin->name, namelist[i]->d_name, in lws_plat_plugins_init()
|
/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/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/ltp/testcases/kernel/syscalls/getdents/ |
D | getdents01.c | 105 const char *d_name; in main() local 139 d_name = dirp64->d_name; in main() 142 d_name = dirp->d_name; in main() 145 set_flag(d_name); in main() 147 tst_resm(TINFO, "Found '%s'", d_name); in main()
|
/third_party/uboot/u-boot-2020.01/scripts/dtc/ |
D | fstree.c | 42 if (streq(de->d_name, ".") in read_fstree() 43 || streq(de->d_name, "..")) in read_fstree() 46 tmpname = join_path(dirname, de->d_name); in read_fstree() 61 prop = build_property(xstrdup(de->d_name), in read_fstree() 71 newchild = name_node(newchild, xstrdup(de->d_name)); in read_fstree()
|
/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 | 39 if (atoi(dent->d_name) == getpid() || atoi(dent->d_name) == 0) in wait_for_threads() 43 getpid(), dent->d_name); in wait_for_threads() 48 tst_resm(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/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() 149 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc() 151 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc() 155 if (de->d_name[0] != '.' || all) { in lsattr_dir_proc() 158 strcmp(de->d_name, ".") && in lsattr_dir_proc() 159 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/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/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/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/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/libwebsockets/lib/misc/ |
D | dir.c | 87 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) in filter() 107 if (strchr(namelist[i]->d_name, '~')) in lws_dir() 109 lde.name = namelist[i]->d_name; in lws_dir() 118 stat(namelist[i]->d_name, &s); in lws_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/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/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/fs/proc/ |
D | proc01.c | 304 if (strcmp(dir_ent->d_name, ".") && in readproc() 305 strcmp(dir_ent->d_name, "..") && in readproc() 306 strcmp(dir_ent->d_name, "kcore") && in readproc() 307 (fnmatch("[0-9]*", dir_ent->d_name, in readproc() 313 dir_ent->d_name); in readproc() 319 "%s/%s", obj, dir_ent->d_name); in readproc()
|
/third_party/boost/boost/interprocess/detail/ |
D | os_file_functions.hpp | 637 if( de->d_name[0] == '.' && ( de->d_name[1] == '\0' 638 || (de->d_name[1] == '.' && de->d_name[2] == '\0' )) ){ 641 if(dont_delete_this && std::strcmp(dont_delete_this, de->d_name) == 0){ 646 fn += de->d_name; 686 if( de->d_name[0] == '.' && ( de->d_name[1] == '\0' 687 || (de->d_name[1] == '.' && de->d_name[2] == '\0' )) ){ 692 fn += de->d_name; 699 f(fn.c_str(), de->d_name);
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_sg01.c | 57 if (strncmp(ent->d_name, "sg", 2) || !isdigit(ent->d_name[2])) in find_generic_scsi_device() 60 snprintf(devpath, PATH_MAX, "/dev/%s", ent->d_name); in find_generic_scsi_device()
|