/system/core/libcutils/ |
dir_hash.c | 142 if (strcmp(de->d_name, ".") == 0) { 145 if (strcmp(de->d_name, "..") == 0) { 149 char *name = malloc(strlen(de->d_name) + 1); 165 strcpy(name, de->d_name);
|
/system/core/toolbox/ |
schedtop.c | 164 if(isdigit(de->d_name[0])){ 165 int tid = atoi(de->d_name); 202 if(isdigit(de->d_name[0])){ 203 int pid = atoi(de->d_name);
|
/system/extras/memtrack/ |
memtrack.cpp | 182 len = strlen(dir_data->d_name); 186 if (!isdigit(dir_data->d_name[i])) { 190 pid = pid * 10 + dir_data->d_name[i] - '0'; 193 getInformation(pid, dir_data->d_name, len);
|
/system/extras/tests/sdcard/ |
sysutil.cpp | 419 if (0 == strcmp(entry->d_name, ".") 420 || 0 == strcmp(entry->d_name, "..") 421 || 0 == strcmp(entry->d_name, "lost+found")) 427 strcat(name_buffer, entry->d_name);
|
/external/chromium/base/ |
linux_util.cc | 212 const unsigned long int pid_ul = strtoul(dent->d_name, &endptr, 10); 230 dent->d_name) >= static_cast<int>(sizeof(buf))) { 268 const unsigned long int tid_ul = strtoul(dent->d_name, &endptr, 10);
|
process_util_linux.cc | 88 if (ent->d_name[0] == '.') 91 FilePath stat_path = path.AppendASCII(ent->d_name).AppendASCII("stat"); 188 for (i = 0; i < NAME_MAX && slot->d_name[i]; ++i) { 189 if (!isdigit(slot->d_name[i])) { 200 std::string pid_string(slot->d_name); 207 sprintf(buf, "/proc/%s/stat", slot->d_name); 242 entry_.pid_ = atoi(slot->d_name);
|
/external/chromium/net/tools/flip_server/ |
mem_cache.cc | 103 current_dir_name + "/" + dir_data->d_name; 109 if (std::string(dir_data->d_name) != "." && 110 std::string(dir_data->d_name) != "..") {
|
/external/chromium_org/base/ |
linux_util.cc | 212 const unsigned long int pid_ul = strtoul(dent->d_name, &endptr, 10); 230 dent->d_name) >= static_cast<int>(sizeof(buf))) { 273 const unsigned long int tid_ul = strtoul(dent->d_name, &endptr, 10);
|
/external/chromium_org/net/tools/flip_server/ |
mem_cache.cc | 100 current_dir_name + "/" + dir_data->d_name; 106 if (std::string(dir_data->d_name) != "." && 107 std::string(dir_data->d_name) != "..") {
|
/external/chromium_org/third_party/skia/src/utils/ |
SkOSFile.cpp | 224 str.append(entry->d_name); 235 if (!(s.st_mode & S_IFDIR) && issuffixfor(fSuffix, entry->d_name)) 243 name->set(entry->d_name);
|
/external/skia/src/utils/ |
SkOSFile.cpp | 224 str.append(entry->d_name); 235 if (!(s.st_mode & S_IFDIR) && issuffixfor(fSuffix, entry->d_name)) 243 name->set(entry->d_name);
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/core/ |
Exynos_OMX_Component_Register.c | 77 Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "%s", d->d_name); 79 if (Exynos_OSAL_Strncmp(d->d_name, "libOMX.Exynos.", Exynos_OSAL_Strlen("libOMX.Exynos.")) == 0) { 82 Exynos_OSAL_Strcat(libName, d->d_name);
|
/ndk/sources/host-tools/make-3.81/ |
vmsfunctions.c | 106 strncpy (dentry->d_name, dnam->nam$l_name, dentry->d_namlen); 107 dentry->d_name[dentry->d_namlen] = '\0'; 110 uppercasify (dentry->d_name);
|
dir.c | 24 # define NAMLEN(dirent) strlen((dirent)->d_name) 689 char *p = strrchr (d->d_name, ';'); 698 dirfile_key.name = d->d_name; 710 df->name = savestring (d->d_name, len); 716 if (filename != 0 && strieq (d->d_name, filename)) 1149 if (sizeof *d - sizeof d->d_name + len > bufsz) 1154 if (sizeof *d - sizeof d->d_name + len > bufsz) 1155 bufsz = sizeof *d - sizeof d->d_name + len; 1162 d->d_name = xmalloc(len); 1172 memcpy (d->d_name, df->name, len) [all...] |
/system/extras/fatblock/ |
import.c | 244 if (de->d_name[0] == '.') { 248 ret = snprintf(ch_path, PATH_MAX, "%s/%s", path, de->d_name); 261 if (convert_name(item->name, de->d_name)) {
|
/build/libs/host/ |
CopyFile.c | 490 if (strcmp(ent->d_name, ".") == 0 || 491 strcmp(ent->d_name, "..") == 0) 496 nameLen = strlen(ent->d_name); 503 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1); 508 memcpy(dstFile + dstLen+1, ent->d_name, nameLen +1);
|
/external/oprofile/opcontrol/ |
opcontrol.cpp | 494 if (strlen(dirent->d_name) >= 4 && memcmp(dirent->d_name, "cpu", 3) == 0) { 497 strcat(cpupath, dirent->d_name); 502 printf(" %s %9u samples received\n", dirent->d_name, num); 507 printf(" %s %9u samples lost overflow\n", dirent->d_name, num); 512 printf(" %s %9u samples invalid eip\n", dirent->d_name, num); 517 printf(" %s %9u backtrace aborted\n", dirent->d_name, num);
|
/external/wpa_supplicant_8/hostapd/ |
hostapd_cli.c | 727 if (strcmp(dent->d_name, ".") == 0 || 728 strcmp(dent->d_name, "..") == 0) 730 printf("%s\n", dent->d_name); 1115 if (os_strcmp(dent->d_name, ".") == 0 1117 os_strcmp(dent->d_name, "..") == 0) 1120 dent->d_name); 1121 ctrl_ifname = os_strdup(dent->d_name);
|
/external/stressapptest/src/ |
os.cc | 844 if (entry->d_name[0] == '.') 848 if (sscanf(entry->d_name, "%04x:%02hx:%02x.%d", 850 logprintf(0, "Process Error: Couldn't parse %s", entry->d_name); 856 device->vendor_id = PCIGetValue(entry->d_name, "vendor"); 857 device->device_id = PCIGetValue(entry->d_name, "device"); 858 PCIGetResources(entry->d_name, device);
|
/system/extras/ext4_utils/ |
make_ext4fs.c | 78 return (strcmp(d->d_name, "..") && strcmp(d->d_name, ".")); 136 if (strcmp(namelist[i]->d_name, "lost+found") == 0) 147 dentries[i].filename = strdup(namelist[i]->d_name); 151 asprintf(&dentries[i].path, "%s%s", dir_path, namelist[i]->d_name); 152 asprintf(&dentries[i].full_path, "%s%s", full_path, namelist[i]->d_name);
|
/system/vold/ |
CommandListener.cpp | 249 int pid = Process::getPid(de->d_name); 289 size_t dirent_len = offsetof(struct dirent, d_name) + 301 if (dent->d_name[0] == '.') 305 size_t name_len = strlen(dent->d_name); 307 !strcmp(&dent->d_name[name_len - 5], ".asec")) { 310 strlcpy(id, dent->d_name, name_len - 4);
|
/system/core/adb/ |
file_sync_service.c | 98 int len = strlen(de->d_name); 104 strcpy(fname, de->d_name); 112 writex(s, de->d_name, len)) {
|
/bootable/recovery/ |
recovery.cpp | 382 if (strncmp(de->d_name, "last", 4) == 0) { 384 strcpy(path+path_len, de->d_name); 637 int name_len = strlen(de->d_name); 641 if (name_len == 1 && de->d_name[0] == '.') continue; 642 if (name_len == 2 && de->d_name[0] == '.' && 643 de->d_name[1] == '.') continue; 650 strcpy(dirs[d_size], de->d_name); 656 strncasecmp(de->d_name + (name_len-4), ".zip", 4) == 0) { 661 zips[z_size++] = strdup(de->d_name); [all...] |
/build/tools/atree/ |
files.cpp | 442 if (0 == strcmp(".", ent->d_name) 443 || 0 == strcmp("..", ent->d_name)) { 446 if (matches_excludes(ent->d_name, excludes)) { 449 string entry = path_append(path, ent->d_name);
|
/external/chromium_org/base/process/ |
process_iterator_linux.cc | 88 pid = internal::ProcDirSlotToPid(slot->d_name);
|