Home
last modified time | relevance | path

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

12345678910>>...82

/third_party/node/test/parallel/
Dtest-path-dirname.js6 assert.strictEqual(path.dirname(__filename).substr(-13),
9 assert.strictEqual(path.posix.dirname('/a/b/'), '/a');
10 assert.strictEqual(path.posix.dirname('/a/b'), '/a');
11 assert.strictEqual(path.posix.dirname('/a'), '/');
12 assert.strictEqual(path.posix.dirname(''), '.');
13 assert.strictEqual(path.posix.dirname('/'), '/');
14 assert.strictEqual(path.posix.dirname('////'), '/');
15 assert.strictEqual(path.posix.dirname('//a'), '//');
16 assert.strictEqual(path.posix.dirname('foo'), '.');
18 assert.strictEqual(path.win32.dirname('c:\\'), 'c:\\');
[all …]
Dtest-require-unicode.js11 const dirname = path.join(tmpdir.path, '\u4e2d\u6587\u76ee\u5f55'); constant
12 fs.mkdirSync(dirname);
13 fs.writeFileSync(path.join(dirname, 'file.js'), 'module.exports = 42;');
14 fs.writeFileSync(path.join(dirname, 'package.json'),
16 assert.strictEqual(require(dirname), 42);
17 assert.strictEqual(require(path.join(dirname, 'file.js')), 42);
/third_party/gettext/gettext-runtime/intl/
Dbindtextdom.c120 const char *dirname = *dirnamep; in gl_rwlock_define() local
122 if (dirname == NULL) in gl_rwlock_define()
124 *dirnamep = binding->dirname; in gl_rwlock_define()
130 char *result = binding->dirname; in gl_rwlock_define()
131 if (result == NULL || strcmp (dirname, result) != 0) in gl_rwlock_define()
133 if (strcmp (dirname, _nl_default_dirname) == 0) in gl_rwlock_define()
138 result = strdup (dirname); in gl_rwlock_define()
140 size_t len = strlen (dirname) + 1; in gl_rwlock_define()
143 memcpy (result, dirname, len); in gl_rwlock_define()
149 if (binding->dirname != _nl_default_dirname) in gl_rwlock_define()
[all …]
/third_party/python/Lib/
Dglob.py54 dirname, basename = os.path.split(pathname)
62 if _isdir(_join(root_dir, dirname), dir_fd):
65 if not dirname:
74 if dirname != pathname and has_magic(dirname):
75 dirs = _iglob(dirname, root_dir, dir_fd, recursive, True)
77 dirs = [dirname]
85 for dirname in dirs:
86 for name in glob_in_dir(_join(root_dir, dirname), basename, dir_fd, dironly):
87 yield os.path.join(dirname, name)
93 def _glob1(dirname, pattern, dir_fd, dironly): argument
[all …]
/third_party/boost/boost/archive/
Dtmpdir.hpp33 const char *dirname; in tmpdir() local
34 dirname = std::getenv("TMP"); in tmpdir()
35 if(NULL == dirname) in tmpdir()
36 dirname = std::getenv("TMPDIR"); in tmpdir()
37 if(NULL == dirname) in tmpdir()
38 dirname = std::getenv("TEMP"); in tmpdir()
39 if(NULL == dirname){ in tmpdir()
41 dirname = "."; in tmpdir()
43 return dirname; in tmpdir()
/third_party/flutter/skia/third_party/externals/wuffs/cmd/wuffs/
Dgen.go120 func (h *genHelper) gen(dirname string, recursive bool) error {
121 for len(dirname) > 0 && dirname[len(dirname)-1] == '/' {
122 dirname = dirname[:len(dirname)-1]
127 } else if _, ok := h.seen[dirname]; ok {
130 h.seen[dirname] = struct{}{}
132 if dirname == "base" {
133 if err := h.genDir(dirname, nil); err != nil {
136 h.affected = append(h.affected, dirname)
140 if !cf.IsValidUsePath(dirname) {
141 return fmt.Errorf("invalid package path %q", dirname)
[all …]
/third_party/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'));
/third_party/libinput/test/
Dtest-quirks.c45 char *dirname; member
53 char dirname[PATH_MAX] = "/tmp/litest-quirk-test-XXXXXX"; in make_data_dir() local
58 litest_assert_notnull(mkdtemp(dirname)); in make_data_dir()
59 dir.dirname = safe_strdup(dirname); in make_data_dir()
62 rc = xasprintf(&filename, "%s/testfile.quirks", dirname); in make_data_dir()
63 litest_assert_int_eq(rc, (int)(strlen(dirname) + 16)); in make_data_dir()
83 if (dd.dirname) { in cleanup_data_dir()
84 rmdir(dd.dirname); in cleanup_data_dir()
85 free(dd.dirname); in cleanup_data_dir()
107 ctx = quirks_init_subsystem(dd.dirname, in START_TEST()
[all …]
/third_party/curl/tests/libtest/
Dtest613.pl40 my $dirname = $ARGV[1];
41 mkdir $dirname || errout "$!";
42 chdir $dirname;
72 my $dirname = $ARGV[1];
76 unlink "$dirname/rofile.txt";
77 unlink "$dirname/plainfile.txt";
78 rmdir "$dirname/asubdir";
80 rmdir $dirname || die "$!";
/third_party/glib/gio/inotify/
Dinotify-sub.c34 dup_dirname (const gchar *dirname) in dup_dirname() argument
36 gchar *d_dirname = g_strdup (dirname); in dup_dirname()
46 _ih_sub_new (const gchar *dirname, in _ih_sub_new() argument
57 sub->dirname = g_path_get_dirname (filename); in _ih_sub_new()
63 sub->dirname = dup_dirname (dirname); in _ih_sub_new()
70 IS_W ("new subscription for %s being setup\n", sub->dirname); in _ih_sub_new()
78 g_free (sub->dirname); in _ih_sub_free()
/third_party/glib/tests/
Ddirname-test.c59 gchar *dirname; in main() member
107 gchar *dirname; in main() local
109 dirname = g_path_get_dirname (dirname_checks[i].filename); in main()
110 if (strcmp (dirname, dirname_checks[i].dirname) != 0) in main()
112 dirname_checks[i].filename, dirname, in main()
113 dirname_checks[i].dirname); in main()
114 g_free (dirname); in main()
/third_party/ltp/testcases/commands/mv/
Dmv_tests.sh27 local dirname=$4
35 dirname=$dirname/d.$dircnt
36 ROD_SILENT mkdir -p $dirname
41 ROD_SILENT touch $dirname/f.$fcnt
52 local dirname=$3
56 echo "$dirname:" 1>>tst_mv.exp
60 dirname=$dirname/d.$dircnt
62 echo "$dirname:" 1>>tst_mv.exp
/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs05_make_tree.c69 static void run_targets(const char *dirname, char *cfile, pid_t tid) in run_targets() argument
77 SAFE_ASPRINTF(&output_file, "%s/cmd.out", dirname); in run_targets()
83 dirname, subdir, tid, i, k); in run_targets()
129 char *dirname; in thread_fn() local
135 SAFE_ASPRINTF(&dirname, "%s.%ld", hostname, tid); in thread_fn()
137 SAFE_MKDIR(dirname, 0755); in thread_fn()
138 dirfd = SAFE_OPEN(dirname, O_DIRECTORY); in thread_fn()
178 const char *const cmd_make[] = {"make", "-s", "-C", dirname, NULL}; in thread_fn()
180 "make", "-C", dirname, "-s", "clean", NULL}; in thread_fn()
184 run_targets(dirname, cfile, tid); in thread_fn()
[all …]
/third_party/ltp/testcases/kernel/fs/ftest/
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 …]
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 …]
/third_party/ltp/testcases/commands/gzip/
Dgzip_tests.sh23 local dirname=$4
30 dirname=$dirname/d.$dircnt
31 ROD_SILENT mkdir -p $dirname
35 ROD_SILENT touch $dirname/f.$fcnt
46 local dirname=$3
51 echo "$dirname:" 1> tst_gzip.exp
54 dirname=$dirname/d.$dircnt
56 echo "$dirname:" 1>> tst_gzip.exp
/third_party/cef/tools/yapf/yapf/yapflib/
Dfile_resources.py35 def GetDefaultStyleForDir(dirname): argument
46 dirname = os.path.abspath(dirname)
49 style_file = os.path.join(dirname, style.LOCAL_STYLE)
54 config_file = os.path.join(dirname, style.SETUP_CONFIG)
62 dirname = os.path.dirname(dirname)
63 if (not dirname or not os.path.basename(dirname) or
64 dirname == os.path.abspath(os.path.sep)):
/third_party/python/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)
/third_party/vk-gl-cts/external/vulkancts/scripts/
Dgen_framework_c.py27 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
33 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
34 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
35 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
36 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
37 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
38 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
39 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vulkan", "vu…
Dohos_gen_framework_c.py28 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
34 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
35 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
36 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
37 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
38 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
39 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vk_video", "…
40 …os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include", "vulkan", "vu…
/third_party/musl/src/locale/
Ddcngettext.c19 char *dirname; member
31 return (char *)p->dirname; in gettextdir()
37 char *bindtextdomain(const char *domainname, const char *dirname) in bindtextdomain() argument
43 if (!dirname) return gettextdir(domainname, &(size_t){0}); in bindtextdomain()
46 size_t dirlen = strnlen(dirname, PATH_MAX); in bindtextdomain()
56 !strcmp(p->dirname, dirname)) { in bindtextdomain()
70 p->dirname = p->buf + domlen + 1; in bindtextdomain()
72 memcpy(p->dirname, dirname, dirlen+1); in bindtextdomain()
85 return (char *)p->dirname; in bindtextdomain()
151 const char *dirname, *locname, *catname, *modname, *locp; in dcngettext() local
[all …]
/third_party/musl/porting/linux/user/src/locale/
Ddcngettext.c39 char *dirname; member
51 return (char *)p->dirname; in gettextdir()
57 char *bindtextdomain(const char *domainname, const char *dirname) in bindtextdomain() argument
65 if (!dirname) { in bindtextdomain()
70 size_t dirlen = strnlen(dirname, PATH_MAX); in bindtextdomain()
80 !strcmp(p->dirname, dirname)) { in bindtextdomain()
94 p->dirname = p->buf + domlen + 1; in bindtextdomain()
96 memcpy(p->dirname, dirname, dirlen+1); in bindtextdomain()
110 return (char *)p->dirname; in bindtextdomain()
194 const char *dirname, *locname, *catname, *modname, *locp; in dcngettext() local
[all …]
/third_party/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";
/third_party/icu/icu4c/source/python/icutools/databuilder/
Dutils.py15 return get_local_dirname(file.dirname)
36 def get_local_dirname(dirname): argument
37 if dirname.startswith("/"):
38 return dirname
39 elif dirname.startswith("$"):
41 sep_idx = dirname.find("/")
43 sep_idx = len(dirname)
44 variable = dirname[1:sep_idx]
46 return LOCAL_DIRNAME_SUBSTITUTIONS[variable] + dirname[sep_idx:]
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/
Dutils.py15 return get_local_dirname(file.dirname)
36 def get_local_dirname(dirname): argument
37 if dirname.startswith("/"):
38 return dirname
39 elif dirname.startswith("$"):
41 sep_idx = dirname.find("/")
43 sep_idx = len(dirname)
44 variable = dirname[1:sep_idx]
46 return LOCAL_DIRNAME_SUBSTITUTIONS[variable] + dirname[sep_idx:]

12345678910>>...82