/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/dtc/ |
D | checks.c | 103 TRACE(c, "%s", node->fullpath); in check_nodes_props() 175 propname, node->fullpath); in check_is_string() 194 propname, node->fullpath); in check_is_cell() 216 child->fullpath); in check_duplicate_node_names() 231 prop->name, node->fullpath); in check_duplicate_property_names() 250 node->name[n], node->fullpath); in check_node_name_chars() 261 node->name[n], node->fullpath); in check_node_name_chars_strict() 270 node->fullpath); in check_node_name_format() 289 node->fullpath); in check_unit_address_vs_reg() 293 node->fullpath); in check_unit_address_vs_reg() [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/bcc/src/cc/ |
D | bcc_elf.c | 400 char fullpath[PATH_MAX]; in find_debug_via_debuglink() local 416 snprintf(fullpath, sizeof(fullpath),"%s/%s", bindir, name); in find_debug_via_debuglink() 417 if (strcmp(fullpath, binpath) != 0 && access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 418 res = strdup(fullpath); in find_debug_via_debuglink() 423 snprintf(fullpath, sizeof(fullpath), "%s/.debug/%s", bindir, name); in find_debug_via_debuglink() 424 if (access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 425 res = strdup(fullpath); in find_debug_via_debuglink() 430 snprintf(fullpath, sizeof(fullpath), "/usr/lib/debug%s/%s", bindir, name); in find_debug_via_debuglink() 431 if (access(fullpath, F_OK) != -1) { in find_debug_via_debuglink() 432 res = strdup(fullpath); in find_debug_via_debuglink() [all …]
|
/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/python/cpython3/Python/ |
D | pathconfig.c | 295 wchar_t fullpath[MAXPATHLEN]; in _PyPathConfig_ComputeArgv0() local 297 wchar_t fullpath[MAX_PATH]; in _PyPathConfig_ComputeArgv0() local 308 _Py_wgetcwd(fullpath, Py_ARRAY_LENGTH(fullpath)); in _PyPathConfig_ComputeArgv0() 309 argv0 = fullpath; in _PyPathConfig_ComputeArgv0() 352 Py_ARRAY_LENGTH(fullpath), in _PyPathConfig_ComputeArgv0() 353 fullpath, in _PyPathConfig_ComputeArgv0() 355 argv0 = fullpath; in _PyPathConfig_ComputeArgv0() 372 if (_Py_wrealpath(argv0, fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeArgv0() 373 argv0 = fullpath; in _PyPathConfig_ComputeArgv0()
|
/external/autotest/client/site_tests/kernel_CrosECSysfs/ |
D | kernel_CrosECSysfs.py | 39 fullpath = os.path.join(self.sysfs_path, filename) 40 return self._read_file(fullpath) 49 fullpath = os.path.join(self.sysfs_path, filename) 50 content = self._read_file(fullpath) 53 raise error.TestFail("no '%s' field in %s" % (field, fullpath))
|
/external/v8/tools/dev/ |
D | gen-tags.py | 56 def Exclude(fullpath, exclude_arches): argument 58 if ("/%s/" % arch) in fullpath: return True 81 fullpath = os.path.join(root, file) 82 if Exclude(fullpath, exclude_arches): continue 83 gtags.write(fullpath + os.linesep)
|
/external/python/cpython3/Modules/ |
D | zipimport.c | 323 PyObject *path, *fullpath, *item; in get_module_info() local 342 fullpath = PyUnicode_FromFormat("%U%s", path, zso->suffix); in get_module_info() 343 if (fullpath == NULL) { in get_module_info() 347 item = PyDict_GetItem(self->files, fullpath); in get_module_info() 348 Py_DECREF(fullpath); in get_module_info() 548 PyObject *pkgpath, *fullpath, *subname; in zipimport_zipimporter_load_module_impl() local 555 fullpath = PyUnicode_FromFormat("%U%c%U%U", in zipimport_zipimporter_load_module_impl() 559 if (fullpath == NULL) in zipimport_zipimporter_load_module_impl() 562 pkgpath = Py_BuildValue("[N]", fullpath); in zipimport_zipimporter_load_module_impl() 742 PyObject *subname, *path, *fullpath; in zipimport_zipimporter_get_source_impl() local [all …]
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter.py | 214 fullpath = os.path.join(directory, name) 215 if os.path.isfile(fullpath): 218 self._files.append(fullpath) 219 elif (not os.path.islink(fullpath) 220 and os.path.isdir(fullpath)): 221 directories.append(fullpath)
|
/external/fsck_msdos/ |
D | dir.c | 94 static char *fullpath(struct dosDirEntry *); 164 fullpath(struct dosDirEntry *dir) in fullpath() function 409 fullpath(dir), dir->size, physicalSize); in checksize() 421 fullpath(dir)); in checksize() 507 fullpath(dir)); in readDosDirSection() 634 fullpath(dir), 2); in readDosDirSection() 674 fullpath(&dirent), 0); in readDosDirSection() 690 fullpath(&dirent)); in readDosDirSection() 716 fullpath(&dirent)); in readDosDirSection() 720 fullpath(&dirent), in readDosDirSection() [all …]
|
/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/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/cldr/tools/java/org/unicode/cldr/util/ |
D | XMLSource.java | 133 String fullpath = getFullPath(path); in isDraft() local 135 if (fullpath.indexOf("[@draft=") < 0) return false; in isDraft() 136 return parts.set(fullpath).containsAttribute("draft"); in isDraft() 645 String fullpath = getFullPathAtDPath(path); in toString() local 646 … result.append(fullpath).append(" =\t ").append(value).append(CldrUtility.LINE_SEPARATOR); in toString() 661 String fullpath = getFullPathAtDPath(path); in toString() local 662 … result.append(fullpath).append(" =\t ").append(value).append(CldrUtility.LINE_SEPARATOR); in toString() 1464 String fullpath = CLDRFile.getKey(typeNo, code); in addFallbackCode() local 1465 String distinguishingPath = addFallbackCodeToConstructedItems(fullpath, value, alt); in addFallbackCode() 1471 …private static void addFallbackCode(String fullpath, String value, String alt) { // assumes no all… in addFallbackCode() argument [all …]
|
/external/pdfium/core/fxge/ |
D | cfx_folderfontinfo.cpp | 147 ByteString fullpath = path; in ScanPath() local 149 fullpath += "\\"; in ScanPath() 151 fullpath += "/"; in ScanPath() 154 fullpath += filename; in ScanPath() 155 bFolder ? ScanPath(fullpath) : ScanFile(fullpath); in ScanPath()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CLDRModify.java | 550 String fullpath = k.getFullXPath(path); in main() local 551 System.out.println("\t=\t" + fullpath); in main() 1288 String fullpath = cldrFileToFilter.getFullXPath(xpath); 1289 parts.set(fullpath); 1304 remove(fullpath, "Superfluous given: " 1307 remove(fullpath, "Can’t replace: " 1312 replace(fullpath, newPath, value, "Moving 0/1"); 1322 String fullpath = cldrFileToFilter.getFullXPath(xpath); 1324 parts.set(fullpath); 1328 replace(fullpath, newPath, value); [all …]
|
/external/autotest/server/cros/multimedia/ |
D | browser_facade_adapter.py | 68 def http_server_url_of(self, fullpath): argument 76 return self._browser_proxy.http_server_url_of(fullpath)
|
/external/autotest/client/cros/multimedia/ |
D | browser_facade_native.py | 59 def http_server_url_of(self, fullpath): argument 67 return self._resource.http_server_url_of(fullpath)
|
/external/pdfium/core/fxge/android/ |
D | cfpf_skiafontmgr.cpp | 441 ByteString fullpath(path); in ScanPath() local 442 fullpath += "/"; in ScanPath() 443 fullpath += filename; in ScanPath() 445 ScanPath(fullpath); in ScanPath() 447 ScanFile(fullpath); in ScanPath()
|