Home
last modified time | relevance | path

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

12345678910>>...60

/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/ltp/testcases/network/nfs/nfs_stress/
Dnfs05_make_tree.c262 char *dirname; /* location where compile is initated */ in init_compile() local
265 if ((dirname = malloc(sizeof(char) * 2048)) == NULL) { /* just paranoid */ in init_compile()
278 sprintf(dirname, "%s/%s.%ld", base_dir, hname, gettid()); in init_compile()
280 if (chdir(dirname) == -1) { in init_compile()
282 dirname); in init_compile()
284 free(dirname); in init_compile()
317 gettid(), dirname); in init_compile()
351 char *dirname; /* name of the directory to chdir() */ in rm_file_dir() local
356 if ((dirname = malloc(sizeof(char) * 2048)) == NULL) { /* just paranoid */ in rm_file_dir()
381 sprintf(dirname, "%s/%s.%ld", base_dir, hname, in rm_file_dir()
[all …]
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_glob.py71 dirname, basename = self._path_module.split(pathname)
73 if not dirname:
75 elif self.has_magic(dirname):
76 path_list = self.glob(dirname)
78 path_list = [dirname]
82 for dirname in path_list:
83 if basename or self._path_module.isdir(dirname):
84 name = self._path_module.join(dirname, basename)
89 for dirname in path_list:
90 sublist = self.glob1(dirname, basename)
[all …]
/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/curl/tests/libtest/
Dtest613.pl19 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/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/ltp/testcases/commands/fileutils/mkdir/
Dmkdir_tests.sh96 dirname=$3 # name of the base directory
101 echo "$dirname:" 1>>$LTPTMP/tst_mkdir.exp
105 dirname=$dirname/d.$dircnt
107 echo "$dirname:" 1>>$LTPTMP/tst_mkdir.exp
148 dirname=$LTPTMP/tst_mkdir.tmp
153 dirname=$dirname/d.$dircnt
154 mkdir -p $dirname > $LTPTMP/tst_mkdir.err 2>&1 || RC=$?
158 "Test #1: mkdir -p $dirname failed. Reason:"
164 touch $dirname/f.$fcnt
/external/ltp/testcases/commands/fileutils/mv/
Dmv_tests.sh54 local dirname=$4
62 dirname=$dirname/d.$dircnt
63 ROD_SILENT mkdir -p $dirname
68 ROD_SILENT touch $dirname/f.$fcnt
79 local dirname=$3
83 echo "$dirname:" 1>>tst_mv.exp
87 dirname=$dirname/d.$dircnt
89 echo "$dirname:" 1>>tst_mv.exp
/external/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 …]
/external/ltp/testcases/commands/gzip/
Dgzip_tests.sh62 local dirname=$4
70 dirname=$dirname/d.$dircnt
71 ROD_SILENT mkdir -p $dirname
76 ROD_SILENT touch $dirname/f.$fcnt
87 local dirname=$3
92 echo "$dirname:" 1> tst_gzip.exp
96 dirname=$dirname/d.$dircnt
98 echo "$dirname:" 1>> tst_gzip.exp
/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/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/ltp/testcases/commands/fileutils/cp/
Dcp_tests.sh97 dirname=$4 # name of the base directory
106 dirname=$dirname/d.$dircnt
107 mkdir -p $dirname > $LTPTMP/tst_cp.err 2>&1 || RC=$?
117 touch $dirname/f.$fcnt
146 dirname=$3 # name of the base directory
151 echo "$dirname:" 1>>$LTPTMP/tst_cp.exp
155 dirname=$dirname/d.$dircnt
157 echo "$dirname:" 1>>$LTPTMP/tst_cp.exp
/external/ltp/testcases/commands/fileutils/ln/
Dln_tests.sh96 dirname=$4 # name of the base directory
105 dirname=$dirname/d.$dircnt
106 mkdir -p $dirname > $LTPTMP/tst_ln.err 2>&1 || RC=$?
116 touch $dirname/f.$fcnt
145 dirname=$3 # name of the base directory
150 echo "$dirname:" 1>>$LTPTMP/tst_ln.exp
154 dirname=$dirname/d.$dircnt
156 echo "$dirname:" 1>>$LTPTMP/tst_ln.exp
/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/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/ltp/testcases/commands/unzip/
Dunzip_genfile.sh36 dirname=$1 # name of the base directory
43 dirname=$dirname/d.$dircnt
44 mkdir -p $dirname || RC=$?
53 touch $dirname/f.$fcnt
/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/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()
Dsrcpos.c30 const char *dirname; /* name of directory to search */ member
71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
75 if (!dirname || fname[0] == '/') in try_open()
78 fullname = join_path(dirname, fname); in try_open()
112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path()
183 void srcfile_add_search_path(const char *dirname) in srcfile_add_search_path() argument
190 node->dirname = xstrdup(dirname); in srcfile_add_search_path()
/external/ltp/lib/
Dtst_fs_link_count.c105 char dirname[PATH_MAX]; in tst_fs_fill_subdirs_() local
131 sprintf(dirname, "%s/testdir%d", dir, i); in tst_fs_fill_subdirs_()
133 if (mkdir(dirname, 0755) == 0) in tst_fs_fill_subdirs_()
155 dirname); in tst_fs_fill_subdirs_()
159 "unexpectedly: %s", dirname, in tst_fs_fill_subdirs_()
170 sprintf(dirname, "%s/testdir%d", dir, j); in tst_fs_fill_subdirs_()
171 SAFE_RMDIR(cleanup, dirname); in tst_fs_fill_subdirs_()
/external/vulkan-validation-layers/build-android/
Dbuild.py49 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/chromium-trace/catapult/telemetry/telemetry/page/
Dpage_unittest.py48 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
59 base_dir = os.path.dirname(__file__)
61 os.path.dirname(base_dir), 'otherdir', 'file.html')
70 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
80 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
90 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
100 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
110 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
121 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
131 story_set = story.StorySet(base_dir=os.path.dirname(__file__))
[all …]
/external/fmtlib/doc/
Dbuild.py26 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'))

12345678910>>...60