/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.cpp | 51 struct dirent *dp; in RemoveDirectory() local 66 while ((dp = readdir(dirp)) != nullptr) { in RemoveDirectory() 67 if ((curDir == std::string(dp->d_name)) || (upDir == std::string(dp->d_name))) { in RemoveDirectory() 70 std::string dirName = path + "/" + std::string(dp->d_name); in RemoveDirectory()
|
/base/update/updater/utils/ |
H A D | utils_fs.cpp | 79 struct dirent *dp; in GetFilesFromDirectory() local 81 while ((dp = readdir(dirp)) != nullptr) { in GetFilesFromDirectory() 82 std::string fileName = path + "/" + dp->d_name; in GetFilesFromDirectory() 85 std::string tmpName = dp->d_name; in GetFilesFromDirectory()
|
/base/startup/init/services/param/adapter/ |
H A D | param_dac.c | 243 struct dirent *dp;
in DacGetParamSecurityLabel() local 245 while ((dp = readdir(pDir)) != NULL) {
in DacGetParamSecurityLabel() 246 if (dp->d_type == DT_DIR) {
in DacGetParamSecurityLabel() 249 char *tmp = strstr(dp->d_name, ".para.dac");
in DacGetParamSecurityLabel() 256 int ret = PARAM_SPRINTF(fileName, MAX_BUF_SIZE, "%s/%s", path, dp->d_name);
in DacGetParamSecurityLabel() 258 PARAM_LOGE("Failed to get file name for %s", dp->d_name);
in DacGetParamSecurityLabel()
|
/base/theme/wallpaper_mgr/utils/src/ |
H A D | file_deal.cpp | 39 DIR *dp; in IsDirExist() local 40 if ((dp = opendir(path.c_str())) == NULL) { in IsDirExist() 44 closedir(dp); in IsDirExist()
|
/base/startup/appspawn/util/src/ |
H A D | appspawn_utils.c | 325 struct dirent *dp; in DumpCurrentDir() local 326 while ((dp = readdir(pDir)) != NULL) { in DumpCurrentDir() 327 if (strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..") == 0) { in DumpCurrentDir() 330 if (dp->d_type == DT_DIR) { in DumpCurrentDir() 331 APPSPAWN_LOGW(" Current path %{public}s/%{public}s ", dirPath, dp->d_name); in DumpCurrentDir() 332 int ret = snprintf_s(buffer, bufferLen, bufferLen - 1, "%s/%s", dirPath, dp->d_name); in DumpCurrentDir()
|
/base/update/updater/services/ |
H A D | updater_utils.cpp | 97 struct dirent *dp = nullptr; in DeleteUpdaterPath() local 98 while ((dp = readdir(pDir.get())) != nullptr) { in DeleteUpdaterPath() 99 std::string currentName(dp->d_name); in DeleteUpdaterPath()
|
/base/startup/init/services/utils/ |
H A D | init_utils.c | 537 struct dirent *dp;
in ReadFileInDir() local 539 while ((dp = readdir(pDir)) != NULL) {
in ReadFileInDir() 540 if (dp->d_type == DT_DIR) {
in ReadFileInDir() 544 char *tmp = strstr(dp->d_name, includeExt);
in ReadFileInDir() 552 int ret = snprintf_s(fileName, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, "%s/%s", dirPath, dp->d_name);
in ReadFileInDir() 554 INIT_LOGE("Failed to get file name for %s", dp->d_name);
in ReadFileInDir()
|
/base/startup/init/test/unittest/ueventd/ |
H A D | ueventd_event_unittest.cpp | 107 struct dirent *dp = nullptr; in RemoveDir() local 108 while ((dp = readdir(dir.get())) != nullptr) { in RemoveDir() 110 if (dp->d_name[0] == '.') { in RemoveDir() 116 fullPath = path + dp->d_name; in RemoveDir() 118 fullPath = path + "/" + dp->d_name; in RemoveDir()
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_cert_chain_test_part2.cpp | 408 DIST_POINT dp = { 0 }; in HWTEST_F() local 410 dp.distpoint = nullptr; in HWTEST_F() 417 dp.distpoint = &dpn; in HWTEST_F()
|
/base/startup/init/test/unittest/param/ |
H A D | param_stub.cpp | 326 struct dirent *dp = nullptr; in DeleteDir() local 327 while ((dp = readdir(pDir.get())) != nullptr) { in DeleteDir() 328 std::string currentName(dp->d_name); in DeleteDir()
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | x509_cert_chain_openssl.c | 708 static const char *GetDpUrl(DIST_POINT *dp) in GetDpUrl() argument 714 if (dp == NULL || dp->distpoint == NULL || dp->distpoint->type != 0) { in GetDpUrl() 717 gens = dp->distpoint->name.fullname; in GetDpUrl() 746 DIST_POINT *dp = sk_DIST_POINT_value(crldp, i); in STACK_OF() local 747 urlptr = GetDpUrl(dp); in STACK_OF()
|
H A D | x509_certificate_openssl.c | 1991 DIST_POINT *dp = sk_DIST_POINT_value(crlDp, i); in STACK_OF() local 1992 if (dp == NULL) { in STACK_OF() 1998 if (dp->distpoint == NULL || dp->distpoint->type != 0) { in STACK_OF() 2003 ret = GetDpURIFromGenNames(dp->distpoint->name.fullname, isFormatOutURI, uriCount, outURI); in STACK_OF() 2005 LOGE("get dp uri from general names failed"); in STACK_OF() 2022 LOGE("get dp URI count failed, ret = %d", ret); in STACK_OF() 2047 LOGE("get dp URI format failed, ret = %d", ret); in STACK_OF()
|