Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 25 of 2084) sorted by relevance

12345678910>>...84

/external/python/cpython3/Lib/
Dglob.py40 dirname, basename = os.path.split(pathname)
48 if os.path.isdir(dirname):
51 if not dirname:
53 yield from _glob2(dirname, basename, dironly)
55 yield from _glob1(dirname, basename, dironly)
60 if dirname != pathname and has_magic(dirname):
61 dirs = _iglob(dirname, recursive, True)
63 dirs = [dirname]
71 for dirname in dirs:
72 for name in glob_in_dir(dirname, basename, dironly):
[all …]
/external/python/cpython2/Lib/
Dglob.py38 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/
Dbindtextdom.c134 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/flatbuffers/tests/
DphpUnionVectorTest.php3 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Constants.php"));
4 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "ByteBuffer.php"));
5 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "FlatbufferBuilder.php")…
6 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Table.php"));
7 require join(DIRECTORY_SEPARATOR, array(dirname(dirname(__FILE__)), "php", "Struct.php"));
9 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Attacker.php'));
10 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'BookReader.php'));
11 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Character.php'));
12 require join(DIRECTORY_SEPARATOR, array(dirname(__FILE__), "php", 'Movie.php'));
/external/clang/tools/scan-build-py/tests/unit/
Dtest_libear.py14 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/autotest/client/tools/
Dhtml_report.py1378 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/curl/tests/libtest/
Dtest613.pl19 my $dirname = $ARGV[1];
20 mkdir $dirname || errout "$!";
21 chdir $dirname;
51 my $dirname = $ARGV[1];
55 unlink "$dirname/rofile.txt";
56 unlink "$dirname/plainfile.txt";
57 rmdir "$dirname/asubdir";
59 rmdir $dirname || die "$!";
/external/ltp/testcases/commands/mv/
Dmv_tests.sh45 local dirname=$4
53 dirname=$dirname/d.$dircnt
54 ROD_SILENT mkdir -p $dirname
59 ROD_SILENT touch $dirname/f.$fcnt
70 local dirname=$3
74 echo "$dirname:" 1>>tst_mv.exp
78 dirname=$dirname/d.$dircnt
80 echo "$dirname:" 1>>tst_mv.exp
/external/ltp/testcases/kernel/fs/ftest/
Dftest06.c92 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 …]
Dftest02.c86 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/network/nfs/nfs_stress/
Dnfs05_make_tree.c83 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/commands/gzip/
Dgzip_tests.sh41 local dirname=$4
48 dirname=$dirname/d.$dircnt
49 ROD_SILENT mkdir -p $dirname
53 ROD_SILENT touch $dirname/f.$fcnt
64 local dirname=$3
69 echo "$dirname:" 1> tst_gzip.exp
72 dirname=$dirname/d.$dircnt
74 echo "$dirname:" 1>> tst_gzip.exp
/external/python/cpython3/Tools/scripts/
Dfindlinksto.py24 for dirname in dirs:
25 os.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)
/external/python/cpython2/Tools/scripts/
Dfindlinksto.py24 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)
/external/autotest/client/cros/
Downership.py111 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/chromium-trace/
Dsystrace.py17 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/curl/scripts/
Dupdatemanpages.pl249 foreach my $dirname (@dirlist) {
254 opendir($dir_handle, $dirname);
271 if(-e ($dirname . $file . ".dist")) {
272 $filedate = getdate(($dirname . $file . ".dist"));
275 $filedate = getdate(($dirname . $file));
287 --since="$filedate" $dirname$file | grep ^Date:`;
301 print STDERR "Warning: " . ($dirname . $file) . ": found no " .
308 processfile(($dirname . $file), $thisdate);
309 print $dirname . $file . " page updated to $thisdate\n";
/external/libedit/src/
Dfilecomplete.c148 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/clang/tools/diag-build/
Ddiag-build.sh36 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/selinux/python/sepolgen/src/sepolgen/
Dmodule.py52 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/python/cpython3/Lib/test/
Dtest_pkgutil.py22 self.dirname = tempfile.mkdtemp()
23 self.addCleanup(shutil.rmtree, self.dirname)
24 sys.path.insert(0, self.dirname)
36 package_dir = os.path.join(self.dirname, pkg)
66 zip_file = os.path.join(self.dirname, zip)
96 d = os.path.join(self.dirname, package_name)
101 for t in pkgutil.walk_packages(path=[self.dirname]):
106 pkg1_dir = os.path.join(self.dirname, pkg1)
118 pkg2_dir = os.path.join(self.dirname, pkg2)
136 actual= [e[1] for e in pkgutil.walk_packages([self.dirname])]
[all …]
/external/skqp/tools/skqp/
Ddownload_model28 dirname = os.path.dirname(path)
29 if dirname and not os.path.exists(dirname):
31 os.makedirs(dirname)
34 if not os.path.exists(dirname):
47 os.chdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, target_dir))
/external/skia/tools/skqp/
Ddownload_model28 dirname = os.path.dirname(path)
29 if dirname and not os.path.exists(dirname):
31 os.makedirs(dirname)
34 if not os.path.exists(dirname):
47 os.chdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, target_dir))
/external/dtc/
Dfstree.c26 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/python/cpython3/Lib/test/test_tools/
D__init__.py7 basepath = os.path.dirname( # <src/install dir>
8 os.path.dirname( # Lib
9 os.path.dirname( # test
10 os.path.dirname(__file__)))) # test_tools
24 return support.load_package_tests(os.path.dirname(__file__), *args)

12345678910>>...84