/external/python/cpython3/Tools/scripts/ |
D | pysource.py | 33 def _open(fullpath): argument 35 size = os.stat(fullpath).st_size 37 print_debug("%s: permission denied: %s" % (fullpath, err)) 41 print_debug("%s: the file is too big: %d bytes" % (fullpath, size)) 45 return open(fullpath, "rb") 47 print_debug("%s: access denied: %s" % (fullpath, err)) 50 def has_python_ext(fullpath): argument 51 return fullpath.endswith(".py") or fullpath.endswith(".pyw") 53 def looks_like_python(fullpath): argument 54 infile = _open(fullpath) [all …]
|
D | findnocoding.py | 52 def needs_declaration(fullpath): argument 54 infile = open(fullpath, 'rb') 102 for fullpath in pysource.walk_python_files(args, is_python): 104 print("Testing for coding: %s" % fullpath) 105 result = needs_declaration(fullpath) 107 print(fullpath)
|
/external/python/cpython2/Tools/scripts/ |
D | pysource.py | 33 def _open(fullpath): argument 35 size = os.stat(fullpath).st_size 37 print_debug("%s: permission denied: %s" % (fullpath, err)) 41 print_debug("%s: the file is too big: %d bytes" % (fullpath, size)) 45 return open(fullpath, 'rU') 47 print_debug("%s: access denied: %s" % (fullpath, err)) 50 def has_python_ext(fullpath): argument 51 return fullpath.endswith(".py") or fullpath.endswith(".pyw") 53 def looks_like_python(fullpath): argument 54 infile = _open(fullpath) [all …]
|
D | findnocoding.py | 52 def needs_declaration(fullpath): argument 54 infile = open(fullpath, 'rU') 101 for fullpath in pysource.walk_python_files(args, is_python): 103 print "Testing for coding: %s" % fullpath 104 result = needs_declaration(fullpath) 106 print fullpath
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | common.h | 45 char fullpath[PATH_MAX]; \ 53 snprintf(fullpath, sizeof(fullpath), "%s%s", basepath, \ 55 pathlen = strlen(fullpath); \ 57 if ((dp = opendir(fullpath)) == NULL) \ 64 if (fullpath[pathlen - 1] == '/') { \ 65 fullpath[pathlen - 1] = '\0'; \ 68 sprintf(fullpath + pathlen, "/%s", direntp->d_name); \ 69 stat(fullpath, &st); \ 75 fullpath + start);
|
/external/python/cpython2/Python/ |
D | dynload_beos.c | 163 char fullpath[PATH_MAX]; in _PyImport_GetDynLoadFunc() local 175 (void)getcwd( fullpath, PATH_MAX ); in _PyImport_GetDynLoadFunc() 176 (void)strncat( fullpath, "/", PATH_MAX ); in _PyImport_GetDynLoadFunc() 177 (void)strncat( fullpath, pathname, PATH_MAX ); in _PyImport_GetDynLoadFunc() 180 printf( "load_add_on( %s )\n", fullpath ); in _PyImport_GetDynLoadFunc() 183 (void)strcpy( fullpath, pathname ); in _PyImport_GetDynLoadFunc() 186 the_id = load_add_on( fullpath ); in _PyImport_GetDynLoadFunc() 193 printf( "load_add_on( %s ) failed", fullpath ); in _PyImport_GetDynLoadFunc() 199 fullpath ); in _PyImport_GetDynLoadFunc() 203 fullpath ); in _PyImport_GetDynLoadFunc() [all …]
|
/external/ltp/testcases/kernel/controllers/libcontrollers/ |
D | libcontrollers.c | 53 if (lstat(fullpath, &statbuffer) < 0) { in scan_shares_files() 54 error_function("Can not read stat for file ", fullpath); in scan_shares_files() 64 && (strcmp(fullpath, "/dev/cpuctl/cpu.shares") != 0) in scan_shares_files() 66 *shares_pointer += read_shares_file(fullpath); in scan_shares_files() 76 path_pointer = fullpath + strlen(fullpath); in scan_shares_files() 80 if ((dp = opendir(fullpath)) == NULL) { /* Error in opening directory */ in scan_shares_files() 81 error_function("Can't open ", fullpath); in scan_shares_files() 107 error_function("Could not close dir ", fullpath); in scan_shares_files()
|
D | libcontrollers.h | 46 char fullpath[PATH_MAX]; variable 48 char fullpath[1024]; /* Guess */ variable
|
/external/rust/crates/nix/test/ |
D | test_stat.rs | 178 let fullpath = tempdir.path().join(filename); in test_fchmodat() localVariable 179 File::create(&fullpath).unwrap(); in test_fchmodat() 188 let file_stat1 = stat(&fullpath).unwrap(); in test_fchmodat() 197 let file_stat2 = stat(&fullpath).unwrap(); in test_fchmodat() 219 let fullpath = tempdir.path().join("file"); in test_utimes() localVariable 220 drop(File::create(&fullpath).unwrap()); in test_utimes() 222 utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)).unwrap(); in test_utimes() 223 assert_times_eq(9990, 5550, &fs::metadata(&fullpath).unwrap()); in test_utimes() 236 let fullpath = tempdir.path().join("symlink"); in test_lutimes() localVariable 238 symlink(&target, &fullpath).unwrap(); in test_lutimes() [all …]
|
/external/python/pycparser/ |
D | _clean_tables.py | 16 fullpath = os.path.join(path, file) 17 if os.path.isdir(fullpath): 18 shutil.rmtree(fullpath, ignore_errors=False) 20 os.unlink(fullpath) 21 print('Deleted', fullpath)
|
/external/autotest/client/profilers/powertop/src/ |
D | urbnum.c | 66 char fullpath[4096]; in update_urbnum() local 73 sprintf(fullpath, "%s/power/active_duration", path); in update_urbnum() 74 file = fopen(fullpath, "r"); in update_urbnum() 80 sprintf(fullpath, "%s/power/connected_duration", path); in update_urbnum() 81 file = fopen(fullpath, "r"); in update_urbnum() 100 sprintf(fullpath, "%s/product", path); in update_urbnum() 101 file = fopen(fullpath, "r"); in update_urbnum() 107 sprintf(fullpath, "%s/manufacturer", path); in update_urbnum() 108 file = fopen(fullpath, "r"); in update_urbnum()
|
/external/libchrome/build/ |
D | get_syzygy_binaries.py | 209 fullpath = os.path.join(output_dir, relpath) 210 fulldir = os.path.dirname(fullpath) 212 if os.path.exists(fullpath): 214 if os.path.isdir(fullpath): 215 raise Exception('Directory exists where file expected: %s' % fullpath) 221 actual_md5 = _Md5(fullpath) 223 raise Exception('File has local changes: %s' % fullpath) 226 _LOGGER.debug('Deleting file "%s".', fullpath) 229 os.unlink(fullpath) 352 fullpath = os.path.normpath(os.path.join(fulldir, entry.filename)) [all …]
|
/external/bcc/src/cc/ |
D | bcc_elf.c | 458 char fullpath[PATH_MAX]; in find_debug_via_debuglink() local 475 snprintf(fullpath, sizeof(fullpath),"%s/%s", bindir, name); in find_debug_via_debuglink() 476 if (strcmp(fullpath, binpath) != 0 && access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 477 res = strdup(fullpath); in find_debug_via_debuglink() 482 snprintf(fullpath, sizeof(fullpath), "%s/.debug/%s", bindir, name); in find_debug_via_debuglink() 483 if (access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 484 res = strdup(fullpath); in find_debug_via_debuglink() 489 snprintf(fullpath, sizeof(fullpath), "/usr/lib/debug%s/%s", bindir, name); in find_debug_via_debuglink() 490 if (access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 491 res = strdup(fullpath); in find_debug_via_debuglink() [all …]
|
/external/python/cpython3/Lib/ |
D | zipimport.py | 208 fullpath = _bootstrap_external._path_join(path, '__init__.py') 210 fullpath = f'{path}.py' 213 toc_entry = self._files[fullpath] 253 fullpath = _bootstrap_external._path_join(self.archive, path) 254 mod.__path__ = [fullpath] 324 fullpath = path + suffix 325 if fullpath in self._files: 587 def _unmarshal_code(self, pathname, fullpath, fullname, data): argument 590 'path': fullpath, 603 source_bytes = _get_pyc_source(self, fullpath) [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/ |
D | ares-test-ns.cc | 158 std::string fullpath = rootdir_ + nc.first; in ContainerFilesystem() local 159 int idx = fullpath.rfind('/'); in ContainerFilesystem() 160 std::string dir = fullpath.substr(0, idx); in ContainerFilesystem() 163 new TransientFile(fullpath, nc.second))); in ContainerFilesystem() 169 std::string fullpath = rootdir_ + mountpt_; in ContainerFilesystem() local 170 EnsureDirExists(fullpath); in ContainerFilesystem()
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter.py | 219 fullpath = os.path.join(directory, name) 220 if os.path.isfile(fullpath): 223 self._files.append(fullpath) 224 elif (not os.path.islink(fullpath) 225 and os.path.isdir(fullpath)): 226 directories.append(fullpath)
|
/external/llvm-project/lldb/examples/python/ |
D | lldb_module_utils.py | 65 print('Module: "%s"' % (module.file.fullpath), end=' ', file=result) 72 print(' Compile Unit: %s' % (cu.file.fullpath), file=result) 167 print('Module: "%s"' % (module.file.fullpath), end=' ', file=result) 174 print(' Compile Unit: %s' % (cu.file.fullpath), file=result) 178 path = cu.GetSupportFileAtIndex(j).fullpath
|
/external/autotest/client/tests/unixbench/ |
D | unixbench.patch | 42 - execl(fullpath, fullpath, "0", dur_str, count_str, start_str, 0); 43 + execl(fullpath, fullpath, "0", dur_str, count_str, start_str, (char *)0);
|
/external/python/cpython3/Python/ |
D | pathconfig.c | 623 wchar_t fullpath[MAXPATHLEN]; in _PyPathConfig_ComputeSysPath0() local 625 wchar_t fullpath[MAX_PATH]; in _PyPathConfig_ComputeSysPath0() local 630 if (!_Py_wgetcwd(fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0() 633 path0 = fullpath; in _PyPathConfig_ComputeSysPath0() 686 Py_ARRAY_LENGTH(fullpath), in _PyPathConfig_ComputeSysPath0() 687 fullpath, in _PyPathConfig_ComputeSysPath0() 689 path0 = fullpath; in _PyPathConfig_ComputeSysPath0() 707 if (_Py_wrealpath(path0, fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0() 708 path0 = fullpath; in _PyPathConfig_ComputeSysPath0()
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 262 .containsExactly(fullpath("base/the^file.jar")); in testGetClassPathFromManifest_pathWithStrangeCharacter() 270 .containsExactly(fullpath("base/with/relative/dir")); in testGetClassPathFromManifest_relativeDirectory() 278 .containsExactly(fullpath("base/with/relative.jar")); in testGetClassPathFromManifest_relativeJar() 286 .containsExactly(fullpath("base/current.jar")); in testGetClassPathFromManifest_jarInCurrentDirectory() 293 .containsExactly(fullpath("/with/absolute/dir")); in testGetClassPathFromManifest_absoluteDirectory() 300 .containsExactly(fullpath("/with/absolute.jar")); in testGetClassPathFromManifest_absoluteJar() 308 fullpath("/with/absolute.jar"), in testGetClassPathFromManifest_multiplePaths() 309 fullpath("base/relative.jar"), in testGetClassPathFromManifest_multiplePaths() 310 fullpath("base/relative/dir")) in testGetClassPathFromManifest_multiplePaths() 318 .containsExactly(fullpath("base/relative.jar")); in testGetClassPathFromManifest_leadingBlanks() [all …]
|
/external/autotest/client/cros/video/ |
D | chameleon_screenshot_capturer.py | 97 fullpath = os.path.join(self.dest_dir, filename) 103 img.crop(box).save(fullpath) 105 return fullpath
|
/external/fsck_msdos/ |
D | dir.c | 97 static char *fullpath(struct dosDirEntry *); 164 fullpath(struct dosDirEntry *dir) in fullpath() function 426 fullpath(dir), dir->size, physicalSize); in checksize() 438 fullpath(dir)); in checksize() 625 fullpath(dir)); in readDosDirSection() 762 fullpath(dir), 2); in readDosDirSection() 802 fullpath(&dirent), 0); in readDosDirSection() 842 fullpath(&dirent), in readDosDirSection() 846 fullpath(&dirent)); in readDosDirSection() 878 fullpath(&dirent)); in readDosDirSection() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 329 .containsExactly(fullpath("base/the^file.jar")); in testGetClassPathFromManifest_pathWithStrangeCharacter() 337 .containsExactly(fullpath("base/with/relative/dir")); in testGetClassPathFromManifest_relativeDirectory() 345 .containsExactly(fullpath("base/with/relative.jar")); in testGetClassPathFromManifest_relativeJar() 353 .containsExactly(fullpath("base/current.jar")); in testGetClassPathFromManifest_jarInCurrentDirectory() 360 .containsExactly(fullpath("/with/absolute/dir")); in testGetClassPathFromManifest_absoluteDirectory() 367 .containsExactly(fullpath("/with/absolute.jar")); in testGetClassPathFromManifest_absoluteJar() 375 fullpath("/with/absolute.jar"), in testGetClassPathFromManifest_multiplePaths() 376 fullpath("base/relative.jar"), in testGetClassPathFromManifest_multiplePaths() 377 fullpath("base/relative/dir")) in testGetClassPathFromManifest_multiplePaths() 385 .containsExactly(fullpath("base/relative.jar")); in testGetClassPathFromManifest_leadingBlanks() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CLDRModify.java | 542 String fullpath = k.getFullXPath(path); in main() local 543 System.out.println("\t=\t" + fullpath); in main() 1294 String fullpath = cldrFileToFilter.getFullXPath(xpath); 1295 …XPathParts parts = XPathParts.getFrozenInstance(fullpath).cloneAsThawed(); // not frozen, for setA… 1310 remove(fullpath, "Superfluous given: " 1313 remove(fullpath, "Can’t replace: " 1318 replace(fullpath, newPath, value, "Moving 0/1"); 1330 String fullpath = cldrFileToFilter.getFullXPath(xpath); 1332 …XPathParts parts = XPathParts.getFrozenInstance(fullpath).cloneAsThawed(); // not frozen, for addA… 1336 replace(fullpath, newPath, value); [all …]
|
/external/pdfium/core/fxge/ |
D | cfx_folderfontinfo.cpp | 163 ByteString fullpath = path; in ScanPath() local 165 fullpath += "\\"; in ScanPath() 167 fullpath += "/"; in ScanPath() 170 fullpath += filename; in ScanPath() 171 bFolder ? ScanPath(fullpath) : ScanFile(fullpath); in ScanPath()
|