Home
last modified time | relevance | path

Searched refs:dir_name (Results 1 – 25 of 39) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir05.c62 static char dir_name[256]; variable
177 if (mkdir(dir_name, 0777) != 0) { in main()
180 dir_name, errno, strerror(errno)); in main()
183 TEST(rmdir(dir_name)); in main()
188 dir_name, TEST_ERRNO, strerror(TEST_ERRNO)); in main()
191 if (stat(dir_name, &stat_buf) != 0) { in main()
194 dir_name); in main()
198 dir_name); in main()
222 sprintf(dir_name, "./dir_%d", getpid()); in setup()
/external/e2fsprogs/lib/e2p/
Diod.c27 int iterate_on_dir (const char * dir_name, in iterate_on_dir() argument
36 max_len = pathconf(dir_name, _PC_NAME_MAX); in iterate_on_dir()
56 dir = opendir (dir_name); in iterate_on_dir()
70 if ((*func)(dir_name, de, private)) in iterate_on_dir()
/external/autotest/server/cros/chaos_lib/
Dchaos_analyzer.py22 def __init__(self, dir_name, file_names, failures_only): argument
42 self._traces.append(os.path.join(dir_name, file_name))
44 for root, dir_name, file_names in os.walk(dir_name):
52 for root, dir_name, file_names in os.walk(root):
57 for root, dir_name, file_names in os.walk(root):
206 def _get_all_test_infos(self, dir_name, failures_only, packet_capture_only): argument
208 for root, dir, files in os.walk(dir_name):
Dchaos_parser.py295 for root, dir_name, file_name in os.walk(path):
355 if not arguments.dir_name:
358 if not os.path.exists(arguments.dir_name):
360 parser = ChaosParser(arguments.dir_name, arguments.create_file,
/external/e2fsprogs/misc/
Dlsattr.c139 static int lsattr_dir_proc (const char * dir_name, struct dirent * de, in lsattr_dir_proc() argument
144 int dir_len = strlen(dir_name); in lsattr_dir_proc()
148 if (dir_len && dir_name[dir_len-1] == '/') in lsattr_dir_proc()
149 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc()
151 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc()
De4defrag.c1677 char dir_name[PATH_MAX + 1]; in main() local
1719 memset(dir_name, 0, PATH_MAX + 1); in main()
1752 if (get_mount_point(argv[i], dir_name, PATH_MAX) < 0) in main()
1754 if (lstat64(dir_name, &buf) < 0) { in main()
1770 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); in main()
1790 if (realpath(argv[i], dir_name) == NULL) { in main()
1830 if (dir_name[mount_dir_len] != '\0') { in main()
1835 if (strncmp(lost_found_dir, dir_name, in main()
1838 (dir_name[strnlen(lost_found_dir, in main()
1840 dir_name[strnlen(lost_found_dir, in main()
[all …]
Dchattr.c286 static int chattr_dir_proc (const char * dir_name, struct dirent * de, in chattr_dir_proc() argument
294 path = malloc(strlen (dir_name) + 1 + strlen (de->d_name) + 1); in chattr_dir_proc()
301 sprintf(path, "%s/%s", dir_name, de->d_name); in chattr_dir_proc()
/external/google-breakpad/src/common/
Ddwarf_line_to_module.cc81 string dir_name; in DefineFile() local
85 dir_name = compilation_dir_; in DefineFile()
89 dir_name = directory_it->second; in DefineFile()
99 string full_name = ExpandPath(name, dir_name); in DefineFile()
/external/e2fsprogs/ext2ed/
Ddir_com.c220 char *ptr,full_dir_name [500],dir_name [500],temp [500],temp2 [500]; in type_dir___cd() local
226 ptr=parse_word (command_line,dir_name); in type_dir___cd()
242 strcpy (dir_name,full_dir_name); in type_dir___cd()
247 strncpy (dir_name,full_dir_name,ptr-full_dir_name); in type_dir___cd()
248 dir_name [ptr-full_dir_name]=0; in type_dir___cd()
254 strcpy (name_search,dir_name); /* name_search is used to hold the required entry name */ in type_dir___cd()
256 if (dir_entry_ptr->name_len != strlen (dir_name) || in type_dir___cd()
257 strncmp (dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len)!=0) in type_dir___cd()
309 …wprintw (command_win,"Error - Directory entry %s not found.\n",dir_name); /* Hmm, an invalid path … in type_dir___cd()
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
Dpath.py68 dirs[:] = [dir_name for dir_name in dirs if should_include_dir(dir_name)]
/external/e2fsprogs/debugfs/
Dfilefrag.c44 const char *dir_name; member
195 cp = malloc(strlen(fs->dir_name) + strlen(name) + 2); in filefrag_dir_proc()
198 fs->dir_name, name); in filefrag_dir_proc()
202 sprintf(cp, "%s/%s", fs->dir_name, name); in filefrag_dir_proc()
241 fs->dir_name = fs->name; in dir_iterate()
259 fs->dir_name = p->name; in dir_iterate()
/external/toolchain-utils/
Dtc_enter_chroot.py33 def CreateAndOwnDir(self, dir_name): argument
35 if not os.path.exists(dir_name):
36 command = 'mkdir -p ' + dir_name
37 command += ' || sudo mkdir -p ' + dir_name
42 if os.stat(dir_name).st_uid != pw.pw_uid:
43 command = 'sudo chown -f ' + self.owner + ' ' + dir_name
/external/autotest/client/bin/
Dsite_sysinfo_unittest.py53 dir_name = os.path.dirname(file_path)
54 if not os.path.exists(dir_name):
55 os.makedirs(dir_name)
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem.py1630 def mkdir(self, dir_name, mode=PERM_DEF): argument
1643 if dir_name.endswith(self.sep):
1644 dir_name = dir_name[:-1]
1646 parent_dir, _ = self.path.split(dir_name)
1654 dir_name = self.filesystem.NormalizePath(dir_name)
1655 if self.filesystem.Exists(dir_name):
1656 raise OSError(errno.EEXIST, 'Fake object already exists', dir_name)
1657 head, tail = self.path.split(dir_name)
1660 raise OSError(errno.EACCES, 'Permission Denied', dir_name)
1665 def makedirs(self, dir_name, mode=PERM_DEF): argument
[all …]
/external/libmicrohttpd/src/examples/
Ddemo_https.c313 char dir_name[128]; in update_directory() local
340 snprintf (dir_name, sizeof (dir_name), in update_directory()
344 if (0 != stat (dir_name, &sbuf)) in update_directory()
354 if (MHD_NO == list_directory (&rdc, dir_name)) in update_directory()
Ddemo.c312 char dir_name[128]; in update_directory() local
339 snprintf (dir_name, sizeof (dir_name), in update_directory()
343 if (0 != stat (dir_name, &sbuf)) in update_directory()
353 if (MHD_NO == list_directory (&rdc, dir_name)) in update_directory()
/external/autotest/client/cros/cellular/wardmodem/
Dmodem_configuration.py174 dir_name = os.path.dirname(current_module.__file__)
175 full_path = os.path.join(dir_name, CONF_DIR_NAME, conf_file)
/external/autotest/server/hosts/
Dremote.py238 dir_name = self.run("mktemp -d %s" % template).stdout.rstrip()
239 self.tmp_dirs.append(dir_name)
240 return dir_name
/external/webrtc/webrtc/base/
Dfilerotatingstream_unittest.cc25 void Init(const std::string& dir_name, in Init() argument
32 test_path.AppendFolder(dir_name); in Init()
187 void Init(const std::string& dir_name, size_t max_total_log_size) { in Init() argument
191 test_path.AppendFolder(dir_name); in Init()
/external/webrtc/webrtc/tools/converter/
Dconverter.cc155 std::string Converter::FindFullFileName(std::string dir_name, in FindFullFileName() argument
157 return dir_name + SEPARATOR + file_name; in FindFullFileName()
/external/autotest/client/tests/ltp/patches/
Dgetdents.patch114 char *dir_name = NULL;
176 char *dir_name = NULL;
237 char *dir_name = NULL;
240 if ((fd = open(dir_name, O_RDONLY)) == -1)
298 char *dir_name = NULL;
/external/bison/lib/
Ddirname.c32 dir_name (char const *file) in dir_name() function
Ddirname.h36 char *dir_name (char const *file);
/external/autotest/server/
Dbase_utils.py112 dir_name = tempfile.mkdtemp(prefix="autoserv-")
116 __tmp_dirs[pid].append(dir_name)
117 return dir_name
/external/jsoncpp/devtools/
Dantglob.py108 def is_pruned_dir( dir_name ): argument
110 if fnmatch.fnmatch( dir_name, pattern ):

12