Home
last modified time | relevance | path

Searched full:realpath (Results 1 – 25 of 2931) sorted by relevance

12345678910>>...118

/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_ntpath.py294 tester("ntpath.realpath('.')", expected)
295 tester("ntpath.realpath('./.')", expected)
296 tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
297 tester("ntpath.realpath('.\\.')", expected)
298 tester("ntpath.realpath('\\'.join(['.'] * 100))", expected)
302 tester("ntpath.realpath('..')", ntpath.dirname(expected))
303 tester("ntpath.realpath('../..')",
305 tester("ntpath.realpath('/'.join(['..'] * 50))",
307 tester("ntpath.realpath('..\\..')",
309 tester("ntpath.realpath('\\'.join(['..'] * 50))",
[all …]
Dtest_posixpath.py5 from posixpath import realpath, abspath, dirname, basename
373 self.assertEqual(realpath('.'), os.getcwd())
374 self.assertEqual(realpath('./.'), os.getcwd())
375 self.assertEqual(realpath('/'.join(['.'] * 100)), os.getcwd())
377 self.assertEqual(realpath(b'.'), os.getcwdb())
378 self.assertEqual(realpath(b'./.'), os.getcwdb())
379 self.assertEqual(realpath(b'/'.join([b'.'] * 100)), os.getcwdb())
383 self.assertEqual(realpath('..'), dirname(os.getcwd()))
384 self.assertEqual(realpath('../..'), dirname(dirname(os.getcwd())))
385 self.assertEqual(realpath('/'.join(['..'] * 100)), '/')
[all …]
/aosp_15_r20/frameworks/compile/mclinker/lib/Support/
DRealPath.cpp1 //===- RealPath.cpp -------------------------------------------------------===//
9 #include "mcld/Support/RealPath.h"
17 // RealPath
18 RealPath::RealPath() : Path() { in RealPath() function in mcld::sys::fs::RealPath
21 RealPath::RealPath(const RealPath::ValueType* s) : Path(s) { in RealPath() function in mcld::sys::fs::RealPath
25 RealPath::RealPath(const RealPath::StringType& s) : Path(s) { in RealPath() function in mcld::sys::fs::RealPath
29 RealPath::RealPath(const Path& pPath) : Path(pPath) { in RealPath() function in mcld::sys::fs::RealPath
33 RealPath::~RealPath() { in ~RealPath()
36 RealPath& RealPath::assign(const Path& pPath) { in assign()
41 void RealPath::initialize() { in initialize()
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_posixpath.py8 from posixpath import realpath, abspath, dirname, basename
305 self.assertEqual(realpath('.'), os.getcwd())
306 self.assertEqual(realpath('./.'), os.getcwd())
307 self.assertEqual(realpath('/'.join(['.'] * 100)), os.getcwd())
311 self.assertEqual(realpath('..'), dirname(os.getcwd()))
312 self.assertEqual(realpath('../..'), dirname(dirname(os.getcwd())))
313 self.assertEqual(realpath('/'.join(['..'] * 100)), '/')
320 self.assertEqual(realpath(ABSTFN), ABSTFN+"1")
329 self.assertEqual(realpath(ABSTFN), ABSTFN)
333 self.assertEqual(realpath(ABSTFN+"1"), ABSTFN+"1")
[all …]
/aosp_15_r20/frameworks/compile/mclinker/include/mcld/Support/
DRealPath.h1 //===- RealPath.h ---------------------------------------------------------===//
19 /** \class RealPath
23 class RealPath : public Path {
29 RealPath();
30 explicit RealPath(const ValueType* s);
31 explicit RealPath(const StringType& s);
32 explicit RealPath(const Path& pPath);
34 ~RealPath();
36 RealPath& assign(const Path& pPath);
52 struct less<mcld::sys::fs::RealPath>
[all …]
/aosp_15_r20/external/executorch/test/
H A Drun_oss_cpp_tests.sh59 …DEPRECATED_ET_MODULE_LINEAR_CONSTANT_BUFFER_PATH="$(realpath test/models/deprecated/ModuleLinear-n…
60 ET_MODULE_ADD_HALF_PATH="$(realpath cmake-out/ModuleAddHalf.pte)"
61 ET_MODULE_ADD_PATH="$(realpath cmake-out/ModuleAdd.pte)"
62 …ET_MODULE_DYNAMIC_CAT_UNALLOCATED_IO_PATH="$(realpath cmake-out/ModuleDynamicCatUnallocatedIO.pte)"
63 ET_MODULE_INDEX_PATH="$(realpath cmake-out/ModuleIndex.pte)"
64 ET_MODULE_LINEAR_PATH="$(realpath cmake-out/ModuleLinear.pte)"
65 ET_MODULE_MULTI_ENTRY_PATH="$(realpath cmake-out/ModuleMultipleEntry.pte)"
66 …ET_MODULE_ADD_MUL_NOSEGMENTS_DA1024_PATH="$(realpath cmake-out/ModuleAddMul-nosegments-da1024.pte)"
67 ET_MODULE_ADD_MUL_NOSEGMENTS_PATH="$(realpath cmake-out/ModuleAddMul-nosegments.pte)"
68 ET_MODULE_ADD_MUL_PATH="$(realpath cmake-out/ModuleAddMul.pte)"
[all …]
/aosp_15_r20/external/clang/lib/Frontend/
H A DModuleDependencyCollector.cpp84 static bool real_path(StringRef SrcPath, SmallVectorImpl<char> &RealPath) { in real_path() argument
89 if (!realpath(SrcPath.str().c_str(), CanonicalPath)) in real_path()
93 RealPath.swap(RPath); in real_path()
96 // FIXME: Add support for systems without realpath. in real_path()
119 // sensitive in the absense of realpath, since this is what the VFSWriter in isCaseSensitivePath()
160 SmallString<256> RealPath; in getRealPath() local
169 if (!real_path(Dir, RealPath)) in getRealPath()
171 SymLinkMap[Dir] = RealPath.str(); in getRealPath()
173 RealPath = DirWithSymLink->second; in getRealPath()
176 path::append(RealPath, FileName); in getRealPath()
[all …]
/aosp_15_r20/external/angle/util/posix/
H A Dcrash_handler_posix.cpp558 char *realPath = realpath(resolvedModule.c_str(), NULL);
559 if (realPath)
561 resolvedModule = std::string(realPath);
562 free(realPath);
571 // for libVkLayer_khronos_validation.so. If realpath fails to create an absolute
577 realPath = realpath(pathFromExecDir.c_str(), NULL);
578 if (realPath)
580 resolvedModule = std::string(realPath);
581 free(realPath);
593 realPath = realpath(removeOverlappingPath.c_str(), NULL);
[all …]
/aosp_15_r20/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_grep.py44 cls.realpath = os.path.realpath(__file__)
45 cls.path = os.path.dirname(cls.realpath)
49 del cls.realpath, cls.path
75 self.assertIn(self.realpath, filelist)
81 self.assertNotIn(self.realpath, filelist)
87 self.assertNotIn(self.realpath, filelist)
102 self.assertNotIn(self.realpath, filelist)
110 self.assertIn(self.realpath, filelist)
115 self.assertIn(self.realpath, filelist)
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/nio/file/
H A DLinuxPathTest.java329 Path realPath = filesSetup.getTestPath().toRealPath(); in test_toRealPath() local
330 assertTrue(Files.isSameFile(filesSetup.getTestPath().toAbsolutePath(), realPath)); in test_toRealPath() local
331 assertTrue(realPath.isAbsolute()); in test_toRealPath()
332 assertFalse(Files.isSymbolicLink(realPath)); in test_toRealPath()
338 realPath = file.toRealPath(); in test_toRealPath()
339 assertTrue(Files.isSameFile(file.toAbsolutePath(), realPath)); in test_toRealPath() local
340 assertTrue(realPath.isAbsolute()); in test_toRealPath()
341 assertFalse(Files.isSymbolicLink(realPath)); in test_toRealPath()
346 realPath = symLink.toRealPath(); in test_toRealPath()
347 assertTrue(Files.isSameFile(symLink, realPath)); in test_toRealPath()
[all …]
/aosp_15_r20/bionic/linker/
H A Dlinker.cpp179 static bool is_system_library(const std::string& realpath) { in is_system_library() argument
181 if (file_is_in_dir(realpath, dir)) { in is_system_library()
379 static bool realpath_fd(int fd, std::string* realpath) { in realpath_fd() argument
396 realpath->assign(buf, length); in realpath_fd()
624 bool read(const char* realpath, off64_t file_size) { in read() argument
626 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
925 off64_t* file_offset, std::string* realpath) { in open_library_in_zipfile() argument
981 if (realpath_fd(fd, realpath)) { in open_library_in_zipfile()
982 *realpath += separator; in open_library_in_zipfile()
985 DL_WARN("unable to get realpath for the library \"%s\". Will use given path.", in open_library_in_zipfile()
[all …]
H A Dlinker_soinfo.cpp196 soinfo::soinfo(android_namespace_t* ns, const char* realpath, const struct stat* file_stat, in soinfo() argument
198 if (realpath != nullptr) { in soinfo()
199 realpath_ = realpath; in soinfo()
430 const char* realpath __unused) { in call_function()
435 LD_DEBUG(calls, "[ Calling c-tor %s @ %p for '%s' ]", function_name, function, realpath); in call_function()
437 LD_DEBUG(calls, "[ Done calling c-tor %s @ %p for '%s' ]", function_name, function, realpath); in call_function()
442 const char* realpath __unused) { in call_function()
447 LD_DEBUG(calls, "[ Calling d-tor %s @ %p for '%s' ]", function_name, function, realpath); in call_function()
449 LD_DEBUG(calls, "[ Done calling d-tor %s @ %p for '%s' ]", function_name, function, realpath); in call_function()
454 bool reverse, const char* realpath) { in call_array() argument
[all …]
/aosp_15_r20/external/python/cpython3/Mac/Tools/
Dpythonw.c166 * Note: don't call 'realpath', that will in main()
172 * therefore call realpath on dirname(path) in main()
179 if (realpath(path, real_path) == NULL) { in main()
180 err(1, "realpath: %s", path); in main()
185 err(1, "realpath: %s", path); in main()
189 if (realpath(".", real_path) == NULL) { in main()
190 err(1, "realpath: %s", path); in main()
194 err(1, "realpath: %s", path); in main()
198 err(1, "realpath: %s", path); in main()
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/Unix/
H A DPath.inc142 if (!realpath(fullpath, ret))
202 if (realpath(exe_path, link_path))
214 if (realpath(exe_path, link_path))
228 if (realpath((char *)aux->a_un.a_ptr, link_path))
243 // Null terminate the string for realpath. readlink never null
262 // Null terminate the string for realpath. readlink never null
269 // the program, and not the eventual binary file. Therefore, call realpath
272 if (char *real_path = realpath(exe_path, nullptr)) {
279 if (realpath(exe_path, real_path))
316 if (realpath(exe_path, real_path))
[all …]
/aosp_15_r20/external/cronet/build/android/
H A Dtest_runner.py71 return os.path.realpath(arg)
93 dest='json_results_file', type=os.path.realpath,
115 type=os.path.realpath,
141 metavar='FILENAME', type=os.path.realpath,
234 dest='output_directory', type=os.path.realpath,
299 type=os.path.realpath,
307 type=os.path.realpath,
347 '--logcat-output-dir', type=os.path.realpath,
351 '--logcat-output-file', type=os.path.realpath,
369 type=os.path.realpath,
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
H A DPath.inc132 if (!realpath(fullpath, ret))
191 if (realpath(exe_path, link_path))
231 // Null terminate the string for realpath. readlink never null
250 // Null terminate the string for realpath. readlink never null
257 // the program, and not the eventual binary file. Therefore, call realpath
260 if (char *real_path = realpath(exe_path, NULL)) {
267 if (realpath(exe_path, real_path))
284 if (realpath(DLInfo.dli_fname, link_path))
988 SmallVectorImpl<char> *RealPath) {
995 if(!RealPath)
[all …]
/aosp_15_r20/external/angle/build/android/
H A Dtest_runner.py72 return os.path.realpath(arg)
94 dest='json_results_file', type=os.path.realpath,
116 type=os.path.realpath,
142 metavar='FILENAME', type=os.path.realpath,
235 dest='output_directory', type=os.path.realpath,
303 type=os.path.realpath,
311 type=os.path.realpath,
348 '--logcat-output-dir', type=os.path.realpath,
352 '--logcat-output-file', type=os.path.realpath,
370 type=os.path.realpath,
[all …]
/aosp_15_r20/external/autotest/server/cros/tradefed/
H A Dtradefed_utils_unittest.py15 with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),
140 os.path.dirname(os.path.realpath(__file__)),
143 os.path.dirname(os.path.realpath(__file__)),
149 os.path.dirname(os.path.realpath(__file__)),
154 os.path.join(os.path.dirname(os.path.realpath(__file__)),
161 os.path.join(os.path.dirname(os.path.realpath(__file__)),
180 os.path.dirname(os.path.realpath(__file__)),
188 os.path.join(os.path.dirname(os.path.realpath(__file__)),
396 os.path.join(os.path.dirname(os.path.realpath(__file__)),
404 os.path.join(os.path.dirname(os.path.realpath(__file__)),
/aosp_15_r20/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
H A DAppDataDirGuesserTest.java89 String realPath = "/system/framework/android.test.runner.jar:" + in testGuessCacheDir_RealWorldExample() local
92 guessCacheDirFor(realPath) in testGuessCacheDir_RealWorldExample()
99 String realPath = "/system/framework/android.test.runner.jar:" + in testGuessCacheDir_RealWorldExampleWithOneLevelSubDirectories() local
102 guessCacheDirFor(realPath) in testGuessCacheDir_RealWorldExampleWithOneLevelSubDirectories()
109 String realPath = "/system/framework/android.test.runner.jar:" + in testGuessCacheDir_RealWorldExampleWithTwoLevelSubDirectories() local
112 guessCacheDirFor(realPath) in testGuessCacheDir_RealWorldExampleWithTwoLevelSubDirectories()
119 String realPath = "/system/framework/android.test.runner.jar:" + in testGuessCacheDir_RealWorldExampleWithHyphensInPath() local
122 guessCacheDirFor(realPath) in testGuessCacheDir_RealWorldExampleWithHyphensInPath()
/aosp_15_r20/system/core/shell_and_utilities/
H A DREADME.md65 pkill pmap printenv printf prlimit ps pwd pwdx readelf readlink realpath
103 pkill pmap printenv printf prlimit ps pwd pwdx readelf readlink realpath
137 printenv printf prlimit ps pwd pwdx readelf readlink realpath renice
171 printenv printf prlimit ps pwd pwdx readelf readlink realpath renice
205 printf prlimit ps pwd pwdx **readelf** readlink realpath renice restorecon
237 printf **prlimit** ps pwd **pwdx** readlink realpath renice restorecon **rev**
265 patch pgrep pidof pkill pmap printenv printf ps pwd readlink realpath
291 readlink realpath renice restorecon rm rmdir rmmod runcon sed **sendevent**
314 pmap printenv printf pwd readlink realpath **renice** restorecon rm rmdir
335 pkill pmap printenv printf pwd readlink realpath restorecon rm rmdir
/aosp_15_r20/external/pytorch/torch/_inductor/codegen/rocm/
H A Dcompile_command.py27 return [os.path.realpath(rocm_include), os.path.realpath(ck_include)]
45 f"-L{os.path.realpath(rocm_lib_dir)}",
46 f"-L{os.path.realpath(hip_lib_dir)}",
85 return os.path.realpath(
91 return os.path.realpath(
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/DWARFLinker/Classic/
DDWARFLinkerDeclContext.h31 /// number of calls to realpath which is expensive. We assume the input are
32 /// files, and cache the realpath of their parent. This way we can quickly
36 /// Resolve a path by calling realpath and cache its result. The returned
46 SmallString<256> RealPath; in resolve() local
47 sys::fs::real_path(ParentPath, RealPath); in resolve()
49 {ParentPath, std::string(RealPath.c_str(), RealPath.size())}); in resolve()
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/DWARFLinker/
H A DDWARFLinkerDeclContext.h29 /// number of calls to realpath which is expensive. We assume the input are
30 /// files, and cache the realpath of their parent. This way we can quickly
34 /// Resolve a path by calling realpath and cache its result. The returned
44 SmallString<256> RealPath; in resolve() local
45 sys::fs::real_path(ParentPath, RealPath); in resolve()
47 {ParentPath, std::string(RealPath.c_str(), RealPath.size())}); in resolve()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm/DWARFLinker/
DDWARFLinkerDeclContext.h29 /// number of calls to realpath which is expensive. We assume the input are
30 /// files, and cache the realpath of their parent. This way we can quickly
34 /// Resolve a path by calling realpath and cache its result. The returned
44 SmallString<256> RealPath; in resolve() local
45 sys::fs::real_path(ParentPath, RealPath); in resolve()
47 {ParentPath, std::string(RealPath.c_str(), RealPath.size())}); in resolve()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/DWARFLinker/Classic/
DDWARFLinkerDeclContext.h31 /// number of calls to realpath which is expensive. We assume the input are
32 /// files, and cache the realpath of their parent. This way we can quickly
36 /// Resolve a path by calling realpath and cache its result. The returned
46 SmallString<256> RealPath; in resolve() local
47 sys::fs::real_path(ParentPath, RealPath); in resolve()
49 {ParentPath, std::string(RealPath.c_str(), RealPath.size())}); in resolve()

12345678910>>...118