/third_party/python/Mac/Tools/ |
D | pythonw.c | 158 static char real_path[PATH_MAX * 2]; in main() local 179 if (realpath(path, real_path) == NULL) { in main() 183 if (strlcat(real_path, slash, sizeof(real_path)) > sizeof(real_path)) { in main() 189 if (realpath(".", real_path) == NULL) { in main() 192 if (strlcat(real_path, "/", sizeof(real_path)) > sizeof(real_path)) { in main() 196 if (strlcat(real_path, path, sizeof(real_path)) > sizeof(real_path)) { in main() 211 setenv("__PYVENV_LAUNCHER__", real_path, 1); in main()
|
/third_party/mindspore/mindspore/lite/src/common/ |
D | file_utils.cc | 71 std::string real_path = RealPath(file); in ReadFile() local 72 if (AccessFile(real_path, R_OK) != 0) { in ReadFile() 73 …MS_LOG(ERROR) << "cannot access file:" << real_path << ".please check file if exists and file mod"; in ReadFile() 76 std::ifstream ifs(real_path, std::ifstream::in | std::ifstream::binary); in ReadFile() 78 MS_LOG(ERROR) << "file: " << real_path << " is not exist"; in ReadFile() 83 MS_LOG(ERROR) << "file: " << real_path << " open failed"; in ReadFile() 91 MS_LOG(ERROR) << "malloc buf failed, file: " << real_path; in ReadFile() 118 char *real_path = _fullpath(resolved_path.get(), path, PATH_MAX); in RealPath() local 120 char *real_path = realpath(path, resolved_path.get()); in RealPath() local 122 if (real_path == nullptr || strlen(real_path) == 0) { in RealPath()
|
D | config_file.cc | 41 char *real_path = _fullpath(resolved_path.get(), file.c_str(), MAX_CONFIG_FILE_LENGTH); in GetSectionInfoFromConfigFile() local 43 char *real_path = realpath(file.c_str(), resolved_path.get()); in GetSectionInfoFromConfigFile() local 45 if (real_path == nullptr || strlen(real_path) == 0) { in GetSectionInfoFromConfigFile() 51 MS_LOG(ERROR) << "file: " << real_path << " is not exist"; in GetSectionInfoFromConfigFile() 55 MS_LOG(ERROR) << "file: " << real_path << "open failed"; in GetSectionInfoFromConfigFile()
|
D | dynamic_library_loader.cc | 35 std::string real_path = RealPath(lib_path.c_str()); in Open() local 38 handler_ = dlopen(real_path.c_str(), RTLD_LAZY); in Open() 40 handler_ = LoadLibrary(real_path.c_str()); in Open()
|
/third_party/mindspore/mindspore/ccsrc/debug/ |
D | common.cc | 68 char real_path[PATH_MAX] = {0}; in CommonFuncForConfigPath() local 70 if (_fullpath(real_path, common::SafeCStr(env_path), PATH_MAX) == nullptr) { in CommonFuncForConfigPath() 74 *value = real_path; in CommonFuncForConfigPath() 78 if (realpath(env_path.c_str(), real_path)) { in CommonFuncForConfigPath() 79 *value = real_path; in CommonFuncForConfigPath() 101 auto real_path = FileUtils::GetRealPath(common::SafeCStr(config_path_str)); in GetConfigFile() local 102 if (!real_path.has_value()) { in GetConfigFile() 106 std::string dump_config_file = real_path.value(); in GetConfigFile() 246 auto real_path = CreatePrefixPath(filename); in SaveStringToFile() local 247 if (!real_path.has_value()) { in SaveStringToFile() [all …]
|
/third_party/mindspore/mindspore/lite/tools/common/ |
D | parse_config_utils.cc | 34 std::string real_path = RealPath(file_path.c_str()); in ReadFileToIfstream() local 35 if (real_path.empty()) { in ReadFileToIfstream() 39 ifstream->open(real_path, std::ios::in); in ReadFileToIfstream() 41 MS_LOG(ERROR) << "file: " << real_path << " is not exist."; in ReadFileToIfstream() 45 MS_LOG(ERROR) << "file: " << real_path << " open failed."; in ReadFileToIfstream() 104 auto real_path = RealPath(config_file_path.c_str()); in ParseConfigFile() local 105 if (real_path.empty()) { in ParseConfigFile()
|
/third_party/mindspore/mindspore/lite/java/native/common/ |
D | jni_utils.cpp | 39 char *real_path = _fullpath(resolved_path.get(), path, 1024); in RealPath() local 41 char *real_path = realpath(path, resolved_path.get()); in RealPath() local 43 if (real_path == nullptr || strlen(real_path) == 0) { in RealPath()
|
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/common/ |
D | shard_utils.cc | 62 char real_path[PATH_MAX] = {0}; in GetFileName() local 72 if (_fullpath(real_path, common::SafeCStr(path), PATH_MAX) == nullptr) { in GetFileName() 79 if (realpath(common::SafeCStr(path), real_path) == nullptr) { in GetFileName() 83 std::string s = real_path; in GetFileName() 97 char real_path[PATH_MAX] = {0}; in GetParentDir() local 107 if (_fullpath(real_path, common::SafeCStr(path), PATH_MAX) == nullptr) { in GetParentDir() 114 if (realpath(common::SafeCStr(path), real_path) == nullptr) { in GetParentDir() 118 std::string s = real_path; in GetParentDir()
|
/third_party/mindspore/mindspore/ccsrc/debug/rdr/ |
D | graph_recorder.cc | 29 void DumpIRProto(const std::string &real_path, const FuncGraphPtr &func_graph) { in DumpIRProto() argument 36 std::ofstream ofs(real_path); in DumpIRProto() 38 MS_LOG(ERROR) << "Open file '" << real_path << "' failed!"; in DumpIRProto() 44 ChangeFileMode(real_path, S_IRUSR); in DumpIRProto()
|
/third_party/curl/lib/ |
D | file.c | 141 char *real_path; in file_connect() local 150 CURLcode result = Curl_urldecode(data, data->state.up.path, 0, &real_path, in file_connect() 170 actual_path = real_path; in file_connect() 184 Curl_safefree(real_path); in file_connect() 191 if(memchr(real_path, 0, real_path_len)) { in file_connect() 193 Curl_safefree(real_path); in file_connect() 197 fd = open_readonly(real_path, O_RDONLY); in file_connect() 198 file->path = real_path; in file_connect() 200 file->freepath = real_path; /* free this when done */ in file_connect()
|
/third_party/mindspore/tests/perf_test/mindrecord/imagenet/ |
D | imagenet_to_tfrecord.py | 48 real_path = os.path.join(image_dir, label_dict[item]) 49 if not os.path.isdir(real_path): 50 print("{} dir is not exist".format(real_path)) 52 dir_paths[item] = real_path
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/kernels/ |
D | sentence_piece_tokenizer_op.cc | 89 char real_path[PATH_MAX] = {0}; in GetModelRealPath() local 95 if (_fullpath(real_path, common::SafeCStr(model_path), PATH_MAX) == nullptr) { in GetModelRealPath() 100 if (realpath(common::SafeCStr(model_path), real_path) == nullptr) { in GetModelRealPath() 107 std::string abs_path = real_path; in GetModelRealPath()
|
/third_party/mindspore/mindspore/core/load_mindir/ |
D | load_model.cc | 42 char real_path[PATH_MAX] = {0}; in ReadProtoFile() local 44 if (_fullpath(real_path, file.c_str(), PATH_MAX) == nullptr) { in ReadProtoFile() 49 if (realpath(file.c_str(), real_path) == nullptr) { in ReadProtoFile() 55 std::ifstream ifs(real_path); in ReadProtoFile() 57 MS_LOG(ERROR) << "file: " << real_path << " is not exist"; in ReadProtoFile() 62 MS_LOG(ERROR) << "file: " << real_path << "open failed"; in ReadProtoFile() 70 MS_LOG(ERROR) << "malloc buf failed, file: " << real_path; in ReadProtoFile()
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/ |
D | akg_kernel_register.cc | 55 std::string real_path(real_path_mem); in RegAllOpFromFile() local 57 MS_LOG(INFO) << "Start to read op info from local file " << real_path; in RegAllOpFromFile() 58 std::ifstream file(real_path); in RegAllOpFromFile()
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | file_utils.cc | 35 char real_path[PATH_MAX] = {0}; in GetRealPath() local 37 if (strlen(path) >= PATH_MAX || _fullpath(real_path, path, PATH_MAX) == nullptr) { in GetRealPath() 42 if (strlen(path) >= PATH_MAX || realpath(path, real_path) == nullptr) { in GetRealPath() 47 return std::string(real_path); in GetRealPath()
|
/third_party/node/deps/uvwasi/src/ |
D | fd_table.h | 15 char* real_path; member 39 const char* real_path, 49 const char* real_path);
|
D | fd_table.c | 62 const char* real_path, in uvwasi_fd_table_insert() argument 82 rp_len = strlen(real_path); in uvwasi_fd_table_insert() 94 memcpy(rp_copy, real_path, rp_len); in uvwasi_fd_table_insert() 154 entry->real_path = rp_copy; in uvwasi_fd_table_insert() 260 const char* real_path) { in uvwasi_fd_table_insert_preopen() argument 266 if (table == NULL || path == NULL || real_path == NULL) in uvwasi_fd_table_insert_preopen() 284 real_path, in uvwasi_fd_table_insert_preopen()
|
/third_party/mindspore/mindspore/mindrecord/tools/ |
D | imagenet_to_mr.py | 96 real_path = os.path.join(self.image_dir, label_dict[item]) 97 if not os.path.isdir(real_path): 98 logger.warning("{} dir is not exist".format(real_path)) 100 dir_paths[item] = real_path
|
/third_party/mindspore/mindspore/lite/tools/cropper/ |
D | cropper.cc | 136 std::string real_path = RealPath(file.c_str()); in GetModelFiles() local 137 if (real_path.empty()) { in GetModelFiles() 140 this->model_files_.push_back(real_path); in GetModelFiles() 155 …std::string real_path = RealPath(std::string(buf).substr(0, std::string(buf).length() - 1).c_str()… in GetModelFiles() local 156 if (real_path.empty()) { in GetModelFiles() 160 this->model_files_.emplace_back(real_path); in GetModelFiles()
|
/third_party/mindspore/mindspore/ccsrc/profiler/device/ascend/ |
D | memory_profiling.cc | 132 char real_path[PATH_MAX] = {0}; in GetOutputPath() local 138 if (_fullpath(real_path, common::SafeCStr(*iter), PATH_MAX) == nullptr) { in GetOutputPath() 143 if (realpath(common::SafeCStr(*iter), real_path) == nullptr) { in GetOutputPath() 148 return real_path; in GetOutputPath()
|
/third_party/grpc/examples/python/auth/ |
D | _credentials.py | 24 real_path = os.path.join(os.path.dirname(__file__), filepath) 25 with open(real_path, 'rb') as f:
|
/third_party/mindspore/mindspore/lite/examples/quick_start_cpp/ |
D | main.cc | 46 char *real_path = _fullpath(resolved_path.get(), path, 1024); in RealPath() local 48 char *real_path = realpath(path, resolved_path.get()); in RealPath() local 50 if (real_path == nullptr || strlen(real_path) == 0) { in RealPath()
|
/third_party/mindspore/mindspore/ccsrc/utils/system/ |
D | sha256.cc | 46 char real_path[PATH_MAX] = {0}; in LoadFilePath() local 48 if (path.size() >= PATH_MAX || _fullpath(real_path, path.c_str(), PATH_MAX) == nullptr) { in LoadFilePath() 52 if (path.size() >= PATH_MAX || realpath(path.c_str(), real_path) == nullptr) { in LoadFilePath() 56 std::ifstream bin_stream(real_path, std::ios::binary); in LoadFilePath()
|
/third_party/mindspore/mindspore/lite/tools/converter/ |
D | converter_flags.cc | 460 char *real_path = _fullpath(resolved_path.get(), file.c_str(), kPathLengthUpperLimit); in GetStrFromConfigFile() local 462 char *real_path = realpath(file.c_str(), resolved_path.get()); in GetStrFromConfigFile() local 464 if (real_path == nullptr || strlen(real_path) == 0) { in GetStrFromConfigFile() 470 MS_LOG(ERROR) << "file: " << real_path << " is not exist"; in GetStrFromConfigFile() 474 MS_LOG(ERROR) << "file: " << real_path << "open failed"; in GetStrFromConfigFile()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/perf/ |
D | profiling.cc | 84 char real_path[PATH_MAX] = {0}; in Initialize() local 89 if (_fullpath(real_path, common::SafeCStr(dir), PATH_MAX) == nullptr) { in Initialize() 93 if (realpath(common::SafeCStr(dir), real_path) == nullptr) { in Initialize() 97 dir_path_ = real_path; in Initialize()
|