/external/libyuv/files/ |
D | setup_links.py | 202 def __init__(self, source_path, link_path): argument 206 self._link_path = link_path 239 def symlink(source_path, link_path): argument 242 unicode(link_path), unicode(source_path), flag): 261 for source_path, link_path in FILES.iteritems(): 263 source_path, link_path, check_fn=os.path.isfile, check_msg='files') 333 for source, link_path in self._links_db.iteritems(): 336 if os.path.islink(link_path) or sys.platform.startswith('win'): 339 logging.debug('Removing link to %s at %s', source, link_path) 341 if os.path.exists(link_path): [all …]
|
D | cleanup_links.py | 42 for source, link_path in self._links_db.iteritems(): 45 if os.path.islink(link_path) or sys.platform.startswith('win'): 48 logging.debug('Removing link to %s at %s', source, link_path) 50 if os.path.exists(link_path): 51 if sys.platform.startswith('win') and os.path.isdir(link_path): 52 subprocess.check_call(['rmdir', '/q', '/s', link_path], 55 os.remove(link_path)
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 267 link_path = self.os.path.join(directory, 'link') 269 self.create_symlink(link_path, base_name) 274 self.os.stat(link_path, follow_symlinks=False)[ 287 link_path = self.os.path.join(directory, 'link') 289 self.create_symlink(link_path, base_name) 294 self.os.stat(link_path, follow_symlinks=False)[ 305 link_path = self.os.path.join(directory, 'link') 307 self.create_symlink(link_path, base_name) 311 self.os.lstat(link_path)[stat.ST_SIZE]) 322 link_path = self.os.path.join(directory, 'link') [all …]
|
D | fake_open_test.py | 463 link_path = self.make_path('foo', 'bar', 'baz') 467 self.create_symlink(link_path, target) 468 self.assert_equal_paths(target, self.os.readlink(link_path)) 469 fh = self.open(link_path, 'r') 476 link_path = self.make_path('foo', 'bar', 'TBD') 479 self.create_symlink(link_path, target) 482 with self.open(link_path, 'w') as fh: 491 link_path = self.os.path.join( 499 self.assertFalse(self.os.path.exists(link_path)) 503 with self.open(link_path, 'w') as fh: [all …]
|
D | test_utils.py | 245 link_path = self.make_path('link') 247 self.os.symlink(self.base_path, link_path) 249 self.os.remove(link_path) 306 def create_symlink(self, link_path, target_path): argument 310 self.create_dir(self.os.path.dirname(link_path)) 311 self.os.symlink(target_path, link_path)
|
D | fake_pathlib_test.py | 906 link_path = self.make_path('foo', 'bar', 'baz') 908 self.create_symlink(link_path, target) 909 self.assertEqual(self.os.readlink(self.path(link_path)), target) 952 link_path = self.make_path('link') 954 self.os.symlink(self.path(file_path), link_path) 955 self.assertTrue(self.os.path.exists(link_path)) 956 self.os.remove(link_path) 957 self.os.symlink(self.path(file_path), self.path(link_path)) 958 self.assertTrue(self.os.path.exists(link_path)) 1010 link_path = self.pathlib.Path(link_path_string) [all …]
|
D | fake_filesystem_test.py | 715 link_path = dir_path + "/link" 716 link_target = link_path + "/link" 717 self.os.symlink(link_target, link_path) 719 errno.ELOOP, self.os.path.getsize, link_path)
|
/external/llvm-project/lldb/source/Host/posix/ |
D | HostProcessPosix.cpp | 58 char link_path[PATH_MAX]; in GetMainModule() local 59 if (snprintf(link_path, PATH_MAX, "/proc/%" PRIu64 "/exe", m_process) != 1) { in GetMainModule() 64 error = FileSystem::Instance().Readlink(FileSpec(link_path), file_spec); in GetMainModule()
|
/external/autotest/client/cros/ |
D | network_chroot.py | 254 link_path = os.readlink(src_path) 255 os.symlink(link_path, dst_path) 270 link_path = self.chroot_path(src_path) 271 os.symlink(target_path, link_path)
|
/external/oss-fuzz/infra/base-images/base-sanitizer-libs-builder/ |
D | msan_build.py | 211 link_path = os.readlink(file_path) 212 if os.path.isabs(link_path): 214 link_path = os.path.relpath(link_path, 217 os.symlink(link_path, target_file_path)
|
/external/python/cpython3/Lib/venv/ |
D | __init__.py | 138 link_path = os.path.join(env_dir, 'lib64') 139 if not os.path.exists(link_path): # Issue #21643 140 os.symlink('lib', link_path)
|
/external/ImageMagick/MagickCore/ |
D | utility.c | 1017 link_path[MagickPathExtent]; in GetExecutionPath() local 1022 (void) FormatLocaleString(link_path,MagickPathExtent,"/proc/%.20g/exe", in GetExecutionPath() 1024 count=readlink(link_path,execution_path,PATH_MAX); in GetExecutionPath() 1027 (void) FormatLocaleString(link_path,MagickPathExtent,"/proc/%.20g/file", in GetExecutionPath() 1029 count=readlink(link_path,execution_path,PATH_MAX); in GetExecutionPath()
|
/external/llvm/lib/Support/Unix/ |
D | Path.inc | 158 char link_path[MAXPATHLEN]; 159 if (realpath(exe_path, link_path)) 160 return link_path; 191 char link_path[MAXPATHLEN]; 192 if (realpath(DLInfo.dli_fname, link_path)) 193 return link_path;
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Path.inc | 159 char link_path[MAXPATHLEN]; 160 if (realpath(exe_path, link_path)) 161 return link_path; 192 char link_path[MAXPATHLEN]; 193 if (realpath(DLInfo.dli_fname, link_path)) 194 return link_path;
|
/external/rust/cxx/gen/build/src/ |
D | lib.rs | 408 let ref link_path = include_dir.join(rel_path); in generate_bridge() 409 let _ = out::symlink_file(header_path, link_path); in generate_bridge()
|
/external/libusb/libusb/os/ |
D | sunos_usb.c | 113 const char *node_path, const char *match, char **link_path) in sunos_physpath_to_devlink() argument 118 *link_path = NULL; in sunos_physpath_to_devlink() 119 larg.linkpp = link_path; in sunos_physpath_to_devlink() 133 if (*link_path == NULL) { in sunos_physpath_to_devlink()
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem.py | 1842 link_path = self._follow_link(resolved_components, current_dir) 1846 target_components = self._path_components(link_path) 1887 link_path = link.contents 1889 if self.is_windows_fs and link_path.startswith('\\\\?\\'): 1890 link_path = link_path[4:] 1891 sep = self._path_separator(link_path) 1895 if not self._starts_with_root_path(link_path): 1902 components.append(link_path) 1903 link_path = sep.join(components) 1906 return self.normpath(link_path)
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/ |
D | Path.inc | 190 char link_path[MAXPATHLEN]; 191 if (realpath(exe_path, link_path)) 192 return link_path; 283 char link_path[MAXPATHLEN]; 284 if (realpath(DLInfo.dli_fname, link_path)) 285 return link_path;
|
/external/ltp/testcases/kernel/fs/fsstress/ |
D | fsstress.c | 261 int link_path(pathname_t *, pathname_t *); 938 int link_path(pathname_t * name1, pathname_t * name2) in link_path() function 954 rval = link_path(&newname1, &newname2); in link_path() 974 rval = link_path(&newname1, &newname2); in link_path() 982 rval = link_path(&newname1, &newname2); in link_path() 2142 e = link_path(&f, &l) < 0 ? errno : 0; in link_f()
|
/external/e2fsprogs/contrib/ |
D | fsstress.c | 288 int link_path(pathname_t *, pathname_t *); 965 int link_path(pathname_t * name1, pathname_t * name2) in link_path() function 981 rval = link_path(&newname1, &newname2); in link_path() 1001 rval = link_path(&newname1, &newname2); in link_path() 1009 rval = link_path(&newname1, &newname2); in link_path() 2167 e = link_path(&f, &l) < 0 ? errno : 0; in link_f()
|
/external/python/cpython2/Lib/test/ |
D | test_os.py | 411 link_path = join(sub2_path, "link") 424 os.symlink(os.path.abspath(t2_path), link_path) 470 if root == link_path:
|
/external/llvm-project/llvm/lib/Support/Unix/ |
D | Path.inc | 200 char link_path[PATH_MAX]; 201 if (realpath(exe_path, link_path)) 202 return link_path; 308 char link_path[PATH_MAX]; 309 if (realpath(DLInfo.dli_fname, link_path)) 310 return link_path;
|
/external/python/cpython3/Lib/test/ |
D | test_posix.py | 2008 link_path = os.path.join(base_path, "link") 2015 os.symlink("target", link_path) 2022 os.link(source_path, link_path, follow_symlinks=True) 2025 os.link(source_path, link_path, follow_symlinks=False)
|
D | test_os.py | 1162 self.link_path = join(sub2_path, "link") 1180 os.symlink(os.path.abspath(t2_path), self.link_path) 1268 if root == self.link_path:
|