Searched defs:dir (Results 26 - 50 of 649) sorted by relevance

1234567891011>>

/external/google-breakpad/src/client/linux/minidump_writer/
H A Ddirectory_reader_unittest.cc50 DIR *const dir = opendir("/proc/self"); local
51 ASSERT_TRUE(dir != NULL);
54 while ((dent = readdir(dir)))
57 closedir(dir);
/external/guava/guava/src/com/google/common/io/
H A DPatternFilenameFilter.java59 @Override public boolean accept(@Nullable File dir, String fileName) { argument
/external/libchrome/base/files/
H A Ddir_reader_posix_unittest.cc32 const char* dir = temp_dir.path().value().c_str(); local
33 ASSERT_TRUE(dir);
38 PCHECK(chdir(dir) == 0);
50 DirReaderPosix reader(dir);
85 PCHECK(rmdir(dir) == 0);
H A Dscoped_temp_dir_unittest.cc20 // Against an existing dir, it should get destroyed when leaving scope.
23 ScopedTempDir dir; local
24 EXPECT_TRUE(dir.Set(test_path));
25 EXPECT_TRUE(dir.IsValid());
30 ScopedTempDir dir; local
31 EXPECT_TRUE(dir.Set(test_path));
32 // Now the dir doesn't exist, so ensure that it gets created.
35 FilePath path = dir.Take();
37 EXPECT_FALSE(dir.IsValid());
43 ScopedTempDir dir; local
54 ScopedTempDir dir; local
73 ScopedTempDir dir; local
85 ScopedTempDir dir; local
100 ScopedTempDir dir; local
[all...]
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory_symlink/
H A Dcreate_directory_symlink.pass.cpp54 const path dir = env.create_dir("dir"); local
55 const path dir_sym = env.create_symlink(dir, "dir_sym");
62 TEST_CHECK(equivalent(dest, dir));
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_hard_link/
H A Dcreate_hard_link.pass.cpp67 const path dir = env.create_dir("dir"); local
71 fs::create_hard_link(dir, dest, ec);
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/
H A Dis_empty.pass.cpp69 const path dir = env.create_dir("dir"); local
70 const path dir2 = env.create_dir("dir/dir2");
71 permissions(dir, perms::none);
83 const path dir = env.create_dir("dir"); local
84 const path file1 = env.create_file("dir/file", 42);
85 permissions(dir, perms::none);
88 TEST_CHECK(is_empty(dir, ec) == false);
92 TEST_CHECK_THROW(filesystem_error, is_empty(dir));
[all...]
/external/libmojo/mojo/public/tools/bindings/generators/
H A Drun_cpp_generator.py24 dir = None variable
26 dir = sys.argv[2] variable
27 cpp = mojom_cpp_generator.Generator(module, ".", dir)
/external/ltp/lib/
H A Dtst_dir_is_empty.c31 DIR *dir = SAFE_OPENDIR(cleanup_fn, name); local
34 while ((entry = SAFE_READDIR(cleanup_fn, dir)) != NULL) {
46 SAFE_CLOSEDIR(cleanup_fn, dir);
/external/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_utils.h29 DIR *dir; local
35 dir = SAFE_OPENDIR(NULL, name);
37 while ((dent = SAFE_READDIR(NULL, dir))) {
49 SAFE_CLOSEDIR(NULL, dir);
55 SAFE_CLOSEDIR(NULL, dir);
/external/strace/tests/
H A Dattach-p-cmd-p.c73 static const char dir[] = "attach-p-cmd.test -p"; local
75 int rc = chdir(dir);
80 pid, pid, dir, rc, errno2name(), pid);
/external/strace/tests-m32/
H A Dattach-p-cmd-p.c73 static const char dir[] = "attach-p-cmd.test -p"; local
75 int rc = chdir(dir);
80 pid, pid, dir, rc, errno2name(), pid);
/external/strace/tests-mx32/
H A Dattach-p-cmd-p.c73 static const char dir[] = "attach-p-cmd.test -p"; local
75 int rc = chdir(dir);
80 pid, pid, dir, rc, errno2name(), pid);
/external/syslinux/core/fs/
H A Dreaddir.c33 __export struct dirent *readdir(DIR *dir) argument
36 struct file *dd_dir = (struct file *)dir;
51 __export int closedir(DIR *dir) argument
53 struct file *dd_dir = (struct file *)dir;
/external/tcpdump/
H A Dgmt2local.c44 register int dt, dir; local
61 dir = loc->tm_year - gmt->tm_year;
62 if (dir == 0)
63 dir = loc->tm_yday - gmt->tm_yday;
64 dt += dir * 24 * 60 * 60;
/external/toybox/toys/posix/
H A Drm.c28 int dir = S_ISDIR(try->st.st_mode), or = 0, using = 0; local
33 // Intentionally fail non-recursive attempts to remove even an empty dir
35 if (dir && !(flags & (FLAG_r|FLAG_R))) goto skip;
40 if (!(dir && try->again) && ((or && isatty(0)) || (flags & FLAG_i))) {
43 fprintf(stderr, "rm %s%s%s", or ? "ro " : "", dir ? "dir " : "", s);
50 if (dir) {
72 if (!dir || try->symlink != (char *)2) perror_msg_raw(try->name);
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
H A DParserLoader.java52 File dir = new File(classDir);
53 if(dir.isDirectory()) {
56 File[] files = dir.listFiles(new ClassFilenameFilter(grammarName));
118 public boolean accept(File dir, String name) { argument
/external/compiler-rt/test/msan/Linux/
H A Dglob_altdirfunc.cc19 static void my_gl_closedir(void *dir) { argument
20 if (!dir)
22 closedir((DIR *)dir);
25 static struct dirent *my_gl_readdir(void *dir) { argument
26 if (!dir)
28 struct dirent *d = readdir((DIR *)dir);
/external/dtc/
H A Dsrcpos.h29 char *dir; member in struct:srcfile_state
/external/e2fsprogs/lib/ext2fs/
H A Dlookup.c50 errcode_t ext2fs_lookup(ext2_filsys fs, ext2_ino_t dir, const char *name, argument
63 retval = ext2fs_dir_iterate(fs, dir, 0, buf, lookup_proc, &ls);
H A Dnewdir.c32 struct ext2_dir_entry *dir = NULL; local
46 dir = (struct ext2_dir_entry *) buf;
51 retval = ext2fs_set_rec_len(fs, fs->blocksize - csum_size, dir);
63 dir->inode = dir_ino;
64 ext2fs_dirent_set_name_len(dir, 1);
65 ext2fs_dirent_set_file_type(dir, filetype);
66 dir->name[0] = '.';
68 dir->rec_len = EXT2_DIR_REC_LEN(1);
73 dir = (struct ext2_dir_entry *) (buf + dir
102 struct ext2_dir_entry *dir = NULL; local
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/
H A DVersionNumberStripper.java32 public void setDirectory(String dir){directory=dir;} argument
/external/fmtlib/support/
H A Dupdate-converity-branch.py11 def __init__(self, dir):
12 self.dir = dir
15 output = check_output(['git'] + list(args), cwd=self.dir, stderr=STDOUT)
19 dir = tempfile.mkdtemp() variable
21 git = Git(dir)
22 git('clone', '-b', 'coverity', 'git@github.com:fmtlib/fmt.git', dir)
30 shutil.rmtree(dir)
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
H A DUtil.java49 * Deletes the contents of {@code dir}. Throws an IOException if any file
50 * could not be deleted, or if {@code dir} is not a readable directory.
52 static void deleteContents(File dir) throws IOException { argument
53 File[] files = dir.listFiles();
55 throw new IOException("not a readable directory: " + dir);
/external/google-breakpad/src/common/tests/
H A Dauto_tempdir.h70 // First remove any files in the dir
71 DIR* dir = opendir(path.c_str()); local
72 if (!dir)
76 while ((entry = readdir(dir)) != NULL) {
87 EXPECT_TRUE(closedir(dir) == 0);

Completed in 670 milliseconds

1234567891011>>