/external/python/cpython2/Lib/ |
D | glob.py | 38 dirname, basename = os.path.split(pathname) 45 if os.path.isdir(dirname): 48 if not dirname: 55 if dirname != pathname and has_magic(dirname): 56 dirs = iglob(dirname) 58 dirs = [dirname] 63 for dirname in dirs: 64 for name in glob_in_dir(dirname, basename): 65 yield os.path.join(dirname, name) 71 def glob1(dirname, pattern): argument [all …]
|
/external/e2fsprogs/intl/ |
D | bindtextdom.c | 134 const char *dirname = *dirnamep; in __libc_rwlock_define() local 136 if (dirname == NULL) in __libc_rwlock_define() 138 *dirnamep = binding->dirname; in __libc_rwlock_define() 144 char *result = binding->dirname; in __libc_rwlock_define() 145 if (strcmp (dirname, result) != 0) in __libc_rwlock_define() 147 if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0) in __libc_rwlock_define() 152 result = strdup (dirname); in __libc_rwlock_define() 154 size_t len = strlen (dirname) + 1; in __libc_rwlock_define() 157 memcpy (result, dirname, len); in __libc_rwlock_define() 163 if (binding->dirname != INTUSE(_nl_default_dirname)) in __libc_rwlock_define() [all …]
|
/external/clang/tools/scan-build-py/tests/unit/ |
D | test_libear.py | 14 dirname = None 17 dirname = tmpdir 18 self.assertIsNotNone(dirname) 19 self.assertFalse(os.path.exists(dirname)) 22 dirname = None 26 dirname = tmpdir 29 self.assertIsNotNone(dirname) 30 self.assertFalse(os.path.exists(dirname))
|
/external/curl/tests/libtest/ |
D | test613.pl | 19 my $dirname = $ARGV[1]; 20 mkdir $dirname || errout "$!"; 21 chdir $dirname; 47 my $dirname = $ARGV[1]; 51 unlink "$dirname/rofile.txt"; 52 unlink "$dirname/plainfile.txt"; 53 rmdir "$dirname/asubdir"; 55 rmdir $dirname || die "$!";
|
/external/ltp/testcases/commands/mv/ |
D | mv_tests.sh | 46 local dirname=$4 54 dirname=$dirname/d.$dircnt 55 ROD_SILENT mkdir -p $dirname 60 ROD_SILENT touch $dirname/f.$fcnt 71 local dirname=$3 75 echo "$dirname:" 1>>tst_mv.exp 79 dirname=$dirname/d.$dircnt 81 echo "$dirname:" 1>>tst_mv.exp
|
/external/autotest/client/tools/ |
D | html_report.py | 1378 def make_html_file(metadata, results, tag, host, output_file_name, dirname): argument 1508 … output, '<td align="left"><A HREF=\"%s\">Debug</A></td>' % os.path.join(dirname, res['subdir'], "… 1541 def parse_result(dirname, line, results_data): argument 1589 result['log'] = get_exec_log(dirname, tag) 1700 def create_report(dirname, html_path='', output_file_name=None): argument 1712 res_dir = os.path.abspath(dirname) 1714 status_file_name = os.path.join(dirname, 'status') 1715 sysinfo_dir = os.path.join(dirname, 'sysinfo') 1727 parse_result(dirname, line, results_data) 1739 if get_kvm_version(dirname) is not None: [all …]
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs05_make_tree.c | 83 static void run_targets(const char *dirname, char *cfile, pid_t tid) in run_targets() argument 91 SAFE_ASPRINTF(&output_file, "%s/cmd.out", dirname); in run_targets() 97 dirname, subdir, tid, i, k); in run_targets() 143 char *dirname; in thread_fn() local 149 SAFE_ASPRINTF(&dirname, "%s.%ld", hostname, tid); in thread_fn() 151 SAFE_MKDIR(dirname, 0755); in thread_fn() 152 dirfd = SAFE_OPEN(dirname, O_DIRECTORY); in thread_fn() 192 const char *const cmd_make[] = {"make", "-s", "-C", dirname, NULL}; in thread_fn() 194 "make", "-C", dirname, "-s", "clean", NULL}; in thread_fn() 198 run_targets(dirname, cfile, tid); in thread_fn() [all …]
|
/external/ltp/testcases/kernel/fs/ftest/ |
D | ftest06.c | 92 static char dirname[MAXPATHLEN]; variable 140 snprintf(dirname, ARRAY_SIZE(dirname), in main() 145 mkdir(dirname, 0755); in main() 148 if (chdir(dirname) < 0) in main() 150 dirname); in main() 152 dirlen = strlen(dirname); in main() 207 ft_mkname(name, dirname, k, j); in main() 237 execl("/bin/rm", "rm", "-rf", dirname, NULL); in main() 244 dirname); in main() 276 ft_mkname(fname, dirname, me, count); in crfile() [all …]
|
D | ftest02.c | 86 static char dirname[MAXPATHLEN]; variable 126 strcat(dirname, cwd); in main() 128 strcat(dirname, tmpname); in main() 133 mkdir(dirname, 0755); in main() 135 if (chdir(dirname) < 0) { in main() 136 tst_resm(TBROK, "\tCan't chdir(%s), error %d.", dirname, errno); in main() 140 dirlen = strlen(dirname); in main() 192 ft_mkname(name, dirname, k, j); in main() 223 execl("/bin/rm", "rm", "-rf", dirname, NULL); in main() 231 dirname); in main() [all …]
|
/external/ltp/testcases/commands/gzip/ |
D | gzip_tests.sh | 42 local dirname=$4 49 dirname=$dirname/d.$dircnt 50 ROD_SILENT mkdir -p $dirname 54 ROD_SILENT touch $dirname/f.$fcnt 65 local dirname=$3 70 echo "$dirname:" 1> tst_gzip.exp 73 dirname=$dirname/d.$dircnt 75 echo "$dirname:" 1>> tst_gzip.exp
|
/external/python/cpython2/Tools/scripts/ |
D | findlinksto.py | 24 for dirname in dirs: 25 os.path.walk(dirname, visit, prog) 27 def visit(prog, dirname, names): argument 28 if os.path.islink(dirname): 31 if os.path.ismount(dirname): 32 print 'descend into', dirname 34 name = os.path.join(dirname, name)
|
D | checkpyc.py | 21 for dirname in sys.path: 23 names = os.listdir(dirname) 25 print 'Cannot list directory', repr(dirname) 28 print 'Checking ', repr(dirname), '...' 32 name = os.path.join(dirname, name)
|
/external/chromium-trace/ |
D | systrace.py | 17 os.path.join(os.path.dirname(__file__), 'catapult', 'systrace')) 22 for dirname, _, filenames in os.walk(base_dir): 23 if '.git' in dirname: 30 pyc_path = os.path.join(dirname, filename) 31 py_path = os.path.join(dirname, root + '.py') 41 os.removedirs(dirname) 47 RemoveAllStalePycFiles(os.path.dirname(__file__))
|
/external/autotest/client/cros/ |
D | ownership.py | 111 dirname = os.path.dirname(__file__) 112 mock_certfile = os.path.join(dirname, constants.MOCK_OWNER_CERT) 113 mock_signedpolicyfile = os.path.join(dirname, 249 dirname = os.path.dirname(__file__) 250 mock_keyfile = os.path.join(dirname, constants.MOCK_OWNER_KEY) 251 mock_certfile = os.path.join(dirname, constants.MOCK_OWNER_CERT) 262 dirname = os.path.dirname(__file__) 263 return utils.read_file(os.path.join(dirname, constants.MOCK_OWNER_KEY)) 271 dirname = os.path.dirname(__file__) 272 return cert_extract_pubkey_der(os.path.join(dirname,
|
/external/clang/tools/diag-build/ |
D | diag-build.sh | 36 if [[ -x $(dirname $0)/clang ]]; then 37 CC=$(dirname $0)/clang 49 if [[ -x $(dirname $0)/clang++ ]]; then 50 CXX=$(dirname $0)/clang++ 60 if [[ -x $(dirname $0)/diagtool ]]; then 61 diagtool=$(dirname $0)/diagtool
|
/external/libedit/src/ |
D | filecomplete.c | 148 static char *filename = NULL, *dirname = NULL, *dirpath = NULL; in fn_filename_completion_function() local 170 nptr = el_realloc(dirname, (len + 1) * in fn_filename_completion_function() 173 el_free(dirname); in fn_filename_completion_function() 174 dirname = NULL; in fn_filename_completion_function() 177 dirname = nptr; in fn_filename_completion_function() 178 (void)strncpy(dirname, text, len); in fn_filename_completion_function() 179 dirname[len] = '\0'; in fn_filename_completion_function() 189 el_free(dirname); in fn_filename_completion_function() 190 dirname = NULL; in fn_filename_completion_function() 202 if (dirname == NULL) { in fn_filename_completion_function() [all …]
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | module.py | 52 self.dirname = None 55 return self.dirname 58 return self.dirname + "/" + self.modname + ".te" 61 return self.dirname + "/" + self.modname + ".fc" 64 return self.dirname + "/" + self.modname + ".if" 67 return self.dirname + "/" + self.modname + ".pp" 70 return self.dirname + "/Makefile" 73 self.dirname = parent_dirname + "/" + self.modname 74 os.mkdir(self.dirname)
|
/external/dtc/ |
D | fstree.c | 26 static struct node *read_fstree(const char *dirname) in read_fstree() argument 33 d = opendir(dirname); in read_fstree() 35 die("Couldn't opendir() \"%s\": %s\n", dirname, strerror(errno)); in read_fstree() 46 tmpname = join_path(dirname, de->d_name); in read_fstree() 82 struct dt_info *dt_from_fs(const char *dirname) in dt_from_fs() argument 86 tree = read_fstree(dirname); in dt_from_fs()
|
/external/ply/ply/ply/ |
D | ygen.py | 40 dirname = os.path.dirname(__file__) 41 shutil.copy2(os.path.join(dirname, 'yacc.py'), os.path.join(dirname, 'yacc.py.bak')) 42 with open(os.path.join(dirname, 'yacc.py'), 'r') as f: 63 with open(os.path.join(dirname, 'yacc.py'), 'w') as f:
|
/external/ltp/lib/ |
D | tst_fs_link_count.c | 109 char dirname[PATH_MAX]; in tst_fs_fill_subdirs_() local 137 sprintf(dirname, "%s/testdir%d", dir, i); in tst_fs_fill_subdirs_() 139 if (mkdir(dirname, 0755) == 0) in tst_fs_fill_subdirs_() 162 dirname); in tst_fs_fill_subdirs_() 166 "unexpectedly: %s", dirname, in tst_fs_fill_subdirs_() 178 sprintf(dirname, "%s/testdir%d", dir, j); in tst_fs_fill_subdirs_() 179 SAFE_RMDIR(cleanup, dirname); in tst_fs_fill_subdirs_()
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | __init__.py | 7 from os.path import dirname 10 this_dir = dirname(__file__) 11 top_dir = dirname(dirname(this_dir))
|
/external/ltp/testcases/commands/cp/ |
D | cp_tests.sh | 35 local dirname=$1 42 dirname=$dirname/dir$dircnt 43 ROD mkdir -p $dirname 47 ROD touch $dirname/file$fcnt
|
/external/vulkan-validation-layers/build-android/ |
D | build.py | 49 dirname = os.path.dirname(dst_file) 50 if not os.path.exists(dirname): 51 os.makedirs(dirname) 57 dirname = os.path.dirname(dst_file) 58 if not os.path.exists(dirname): 59 os.makedirs(dirname) 63 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
|
/external/autotest/site_utils/ |
D | job_directories.py | 123 self.dirname = resultsdir 172 for path in glob.glob(os.path.join(self.dirname, '*', 177 dirname = os.path.dirname(path) 178 _remove_log_directory_contents(dirname) 181 if not os.listdir(self.dirname): 182 shutil.rmtree(self.dirname)
|
/external/fmtlib/doc/ |
D | build.py | 26 def create_build_env(dirname='virtualenv'): argument 28 if not os.path.exists(dirname): 29 check_call(['virtualenv', dirname]) 32 activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py') 61 doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__))) 64 os.path.join(os.path.dirname(doc_dir), 'fmt'))
|