Lines Matching refs:entry
113 struct dirent *entry;
135 while (((entry = readdir(dir)) != NULL)) {
137 if (entry->d_type != DT_REG) {
140 ret = sprintf_s(srcFile, MAX_FILE_PATH_LEN, "%s/%s", srcPath, entry->d_name);
147 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, entry->d_name);
483 struct dirent *entry;
492 while ((entry = readdir(dir)) != NULL) {
493 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) {
496 if (sprintf_s(path, MAX_FILE_PATH_LEN, "%s/%s", dirPath, entry->d_name) < 0) {
497 HNP_LOGE("hnp install sprintf unsuccess, dir[%{public}s], path[%{public}s]", dirPath, entry->d_name);
502 if (entry->d_type == DT_DIR) {
503 if (sprintf_s(sunDirNew, MAX_FILE_PATH_LEN, "%s%s/", sunDir, entry->d_name) < 0) {
518 sunDir, entry->d_name) < 0) {
519 HNP_LOGE("hnp install sprintf unsuccess,sub[%{public}s],path[%{public}s]", sunDir, entry->d_name);
538 struct dirent *entry;
551 while ((entry = readdir(dir)) != NULL) {
552 if (strcmp(entry->d_name, "public") == 0) {
560 } else if (strcmp(entry->d_name, "private") == 0) {
587 struct dirent *entry;
596 while ((entry = readdir(dir)) != NULL) {
597 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) {
601 if (sprintf_s(path, MAX_FILE_PATH_LEN, "%s/%s", hnpPath, entry->d_name) < 0) {
603 entry->d_name);
608 if (entry->d_type == DT_DIR) {
609 if (sprintf_s(path, MAX_FILE_PATH_LEN, "%s/%s", hnpPath, entry->d_name) < 0) {
637 struct dirent *entry;
646 while ((entry = readdir(dir)) != NULL) {
647 if ((strcmp(entry->d_name, "public") != 0) && (strcmp(entry->d_name, "private") != 0)) {
650 if (sprintf_s(hnpPath, MAX_FILE_PATH_LEN, "%s/%s", root, entry->d_name) < 0) {