Home
last modified time | relevance | path

Searched refs:real_path (Results 1 – 25 of 66) sorted by relevance

123

/third_party/python/Mac/Tools/
Dpythonw.c158 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/
Dfile_utils.cc71 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()
Dconfig_file.cc41 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()
Ddynamic_library_loader.cc35 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/
Dcommon.cc68 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/
Dparse_config_utils.cc34 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/
Djni_utils.cpp39 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/
Dshard_utils.cc62 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/
Dgraph_recorder.cc29 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/
Dfile.c141 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/
Dimagenet_to_tfrecord.py48 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/
Dsentence_piece_tokenizer_op.cc89 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/
Dload_model.cc42 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/
Dakg_kernel_register.cc55 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/
Dfile_utils.cc35 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/
Dfd_table.h15 char* real_path; member
39 const char* real_path,
49 const char* real_path);
Dfd_table.c62 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/
Dimagenet_to_mr.py96 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/
Dcropper.cc136 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/
Dmemory_profiling.cc132 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.py24 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/
Dmain.cc46 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/
Dsha256.cc46 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/
Dconverter_flags.cc460 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/
Dprofiling.cc84 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()

123