/external/chromium_org/third_party/webrtc/base/ |
D | unixfilesystem.cc | 92 std::string pathname(path.pathname()); in CreateFolder() local 93 int len = pathname.length(); in CreateFolder() 94 if ((len == 0) || (pathname[len - 1] != '/')) in CreateFolder() 98 int res = ::stat(pathname.c_str(), &st); in CreateFolder() 110 } while ((len > 0) && (pathname[len - 1] != '/')); in CreateFolder() 112 if (!CreateFolder(Pathname(pathname.substr(0, len)), mode)) { in CreateFolder() 116 LOG(LS_INFO) << "Creating folder: " << pathname; in CreateFolder() 117 return (0 == ::mkdir(pathname.c_str(), mode)); in CreateFolder() 127 if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { in OpenFile() 135 int fd = open(filename.pathname().c_str(), in CreatePrivateFile() [all …]
|
D | win32filesystem.cc | 33 bool Win32Filesystem::CreateFolder(const Pathname &pathname) { in CreateFolder() argument 34 if (pathname.pathname().empty() || !pathname.filename().empty()) in CreateFolder() 38 if (!Utf8ToWindowsFilename(pathname.pathname(), &path16)) in CreateFolder() 52 if (!pathname.parent_folder().empty()) { in CreateFolder() 53 Pathname parent(pathname); in CreateFolder() 54 parent.SetFolder(pathname.parent_folder()); in CreateFolder() 66 if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { in OpenFile() 163 ToUtf16(filename.pathname()).c_str(), in CreatePrivateFile() 182 LOG(LS_INFO) << "Deleting file " << filename.pathname(); in DeleteFile() 187 return ::DeleteFile(ToUtf16(filename.pathname()).c_str()) != 0; in DeleteFile() [all …]
|
D | pathutils.cc | 58 Pathname::Pathname(const std::string& pathname) in Pathname() argument 60 SetPathname(pathname); in Pathname() 91 std::string Pathname::pathname() const { in pathname() function in rtc::Pathname 92 std::string pathname(folder_); in pathname() local 93 pathname.append(basename_); in pathname() 94 pathname.append(extension_); in pathname() 95 if (pathname.empty()) { in pathname() 97 pathname.push_back('.'); in pathname() 98 pathname.push_back(folder_delimiter_); in pathname() 100 return pathname; in pathname() [all …]
|
D | fileutils.cc | 62 directory_ = dir.pathname(); in DirectoryIterator() 66 std::string d = dir.pathname() + '*'; in DirectoryIterator() 156 new_dir.SetFolder(new_path.pathname()); in DirectoryIterator() 158 old_dir.SetFolder(old_path.pathname()); in DirectoryIterator() 164 if (di->Iterate(old_dir.pathname())) { in DirectoryIterator() 170 source.SetFolder(old_dir.pathname()); in DirectoryIterator() 171 dest.SetFolder(new_path.pathname()); in DirectoryIterator() 193 subdir.SetFolder(folder.pathname()); in DirectoryIterator() 229 LOG(LS_INFO) << "Path " << path.pathname() << std::endl; in DirectoryIterator() 237 path.SetFolder(temporary_path.pathname()); in DirectoryIterator() [all …]
|
D | filelock_unittest.cc | 33 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in Run() 44 temp_file_ = Pathname(temp_dir_.pathname(), kLockFile); in SetUp() 60 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 62 EXPECT_FALSE(Filesystem::IsAbsent(temp_file_.pathname())); in TEST_F() 64 EXPECT_TRUE(Filesystem::IsAbsent(temp_file_.pathname())); in TEST_F() 68 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 73 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 76 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 81 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
|
D | pathutils_unittest.cc | 22 EXPECT_FALSE(path.pathname().empty()); in TEST() 23 EXPECT_EQ(std::string("/"), path.pathname()); in TEST() 29 EXPECT_FALSE(path.pathname().empty()); in TEST() 30 EXPECT_EQ(std::string("foo"), path.pathname()); in TEST() 36 EXPECT_FALSE(path.pathname().empty()); in TEST() 37 EXPECT_EQ(kCWD, path.pathname()); in TEST() 43 EXPECT_FALSE(path.pathname().empty()); in TEST() 44 EXPECT_EQ(kCWD, path.pathname()); in TEST()
|
D | fileutils.h | 152 virtual bool CreateFolder(const Pathname &pathname) = 0; 195 virtual bool IsFolder(const Pathname& pathname) = 0; 198 virtual bool IsFile(const Pathname& pathname) = 0; 202 virtual bool IsAbsent(const Pathname& pathname) = 0; 205 virtual bool IsTemporaryPath(const Pathname& pathname) = 0; 290 static bool CreateFolder(const Pathname &pathname) { in CreateFolder() argument 291 return EnsureDefaultFilesystem()->CreateFolder(pathname); in CreateFolder() 335 static bool IsFolder(const Pathname& pathname) { in IsFolder() argument 336 return EnsureDefaultFilesystem()->IsFolder(pathname); in IsFolder() 339 static bool IsFile(const Pathname &pathname) { in IsFile() argument [all …]
|
D | unixfilesystem.h | 59 virtual bool CreateFolder(const Pathname &pathname, mode_t mode); 62 virtual bool CreateFolder(const Pathname &pathname); 76 virtual bool IsFolder(const Pathname& pathname); 79 virtual bool IsTemporaryPath(const Pathname& pathname); 82 virtual bool IsFile(const Pathname& pathname); 86 virtual bool IsAbsent(const Pathname& pathname);
|
D | diskcache.cc | 267 Pathname pathname; in IdToFilename() local 268 pathname.SetFolder(folder_); in IdToFilename() 269 pathname.SetBasename(buffer); in IdToFilename() 270 pathname.SetExtension(extension); in IdToFilename() 276 return pathname.pathname(); in IdToFilename() 281 Pathname pathname(filename); in FilenameToId() local 283 if (1 != sscanf(pathname.extension().c_str(), ".%u", &tempdex)) in FilenameToId() 288 size_t buffer_size = pathname.basename().length() + 1; in FilenameToId() 290 decode(buffer, buffer_size, pathname.basename().data(), in FilenameToId() 291 pathname.basename().length(), '%'); in FilenameToId()
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
D | kernel_wrap_newlib.cc | 188 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { in WRAP() 189 *newfd = ki_open(pathname, oflag, mode); in WRAP() 193 int WRAP(stat)(const char* pathname, struct stat* buf) { in WRAP() 194 ERRNO_RTN(ki_stat(pathname, buf)); in WRAP() 197 int WRAP(mkdir)(const char* pathname, mode_t mode) { in WRAP() 198 ERRNO_RTN(ki_mkdir(pathname, mode)); in WRAP() 201 int WRAP(rmdir)(const char* pathname) { in WRAP() 202 ERRNO_RTN(ki_rmdir(pathname)); in WRAP() 205 int WRAP(chdir)(const char* pathname) { in WRAP() 206 ERRNO_RTN(ki_chdir(pathname)); in WRAP() [all …]
|
D | kernel_wrap_glibc.cc | 191 int WRAP(chdir)(const char* pathname) { in WRAP() 192 ERRNO_RTN(ki_chdir(pathname)); in WRAP() 256 int WRAP(mkdir)(const char* pathname, mode_t mode) { in WRAP() 257 RTN_ERRNO_IF(ki_mkdir(pathname, mode) < 0); in WRAP() 282 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { in WRAP() 283 *newfd = ki_open(pathname, oflag, mode); in WRAP() 307 int WRAP(rmdir)(const char* pathname) { in WRAP() 308 RTN_ERRNO_IF(ki_rmdir(pathname) < 0); in WRAP() 329 int WRAP(stat)(const char* pathname, struct nacl_abi_stat* nacl_buf) { in WRAP() 332 int res = ki_stat(pathname, &buf); in WRAP() [all …]
|
D | kernel_wrap_bionic.cc | 147 int WRAP(chdir)(const char* pathname) { in WRAP() 148 ERRNO_RTN(ki_chdir(pathname)); in WRAP() 242 int WRAP(mkdir)(const char* pathname, mode_t mode) { in WRAP() 243 ERRNO_RTN(ki_mkdir(pathname, mode)); in WRAP() 267 int WRAP(open)(const char* pathname, int oflag, mode_t mode, int* newfd) { in WRAP() 268 *newfd = ki_open(pathname, oflag, mode); in WRAP() 294 int WRAP(rmdir)(const char* pathname) { in WRAP() 295 ERRNO_RTN(ki_rmdir(pathname)); in WRAP() 313 int WRAP(stat)(const char* pathname, struct nacl_abi_stat* nacl_buf) { in WRAP() 316 int res = ki_stat(pathname, &buf); in WRAP() [all …]
|
D | kernel_wrap_real.h | 21 int _real_mkdir(const char* pathname, mode_t mode); 29 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd); 32 int _real_rmdir(const char* pathname); 34 int _real_getcwd(char* pathname, size_t len);
|
D | kernel_wrap_dummy.cc | 34 int _real_mkdir(const char* pathname, mode_t mode) { in _real_mkdir() argument 51 int _real_open(const char* pathname, int oflag, mode_t mode, int* newfd) { in _real_open() argument 64 int _real_rmdir(const char* pathname) { in _real_rmdir() argument 81 int _real_getcwd(char* pathname, size_t len) { in _real_getcwd() argument
|
/external/e2fsprogs/lib/ext2fs/ |
D | namei.c | 25 const char *pathname, size_t pathlen, int follow, 32 char *pathname; in follow_link() local 66 pathname = buffer; in follow_link() 68 pathname = (char *)&(ei.i_block[0]); in follow_link() 69 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1, in follow_link() 83 const char *pathname, int pathlen, in dir_namei() argument 94 if ((c = *pathname) == '/') { in dir_namei() 96 pathname++; in dir_namei() 100 thisname = pathname; in dir_namei() 102 c = *(pathname++); in dir_namei() [all …]
|
/external/javassist/src/main/javassist/ |
D | ClassPoolTail.java | 126 JarClassPath(String pathname) throws NotFoundException { in JarClassPath() argument 128 jarfile = new JarFile(pathname); in JarClassPath() 129 jarfileURL = new File(pathname).getCanonicalFile() in JarClassPath() 134 throw new NotFoundException(pathname); in JarClassPath() 241 public ClassPath insertClassPath(String pathname) in insertClassPath() argument 244 return insertClassPath(makePathObject(pathname)); in insertClassPath() 247 public ClassPath appendClassPath(String pathname) in appendClassPath() argument 250 return appendClassPath(makePathObject(pathname)); in appendClassPath() 253 private static ClassPath makePathObject(String pathname) in makePathObject() argument 256 String lower = pathname.toLowerCase(); in makePathObject() [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | toolutil.cpp | 103 getLongPathname(const char *pathname) { in getLongPathname() argument 107 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 111 const char *basename=findBasename(pathname); in getLongPathname() 112 if(basename!=pathname) { in getLongPathname() 114 … uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 115 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 117 pathname=info.cFileName; in getLongPathname() 122 return pathname; in getLongPathname() 181 uprv_mkdir(const char *pathname, UErrorCode *status) { in uprv_mkdir() argument 185 retVal = _mkdir(pathname); in uprv_mkdir() [all …]
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
D | toolutil.cpp | 102 getLongPathname(const char *pathname) { in getLongPathname() argument 106 HANDLE file=FindFirstFileA(pathname, &info); in getLongPathname() 110 const char *basename=findBasename(pathname); in getLongPathname() 111 if(basename!=pathname) { in getLongPathname() 113 … uprv_memmove(info.cFileName+(basename-pathname), info.cFileName, uprv_strlen(info.cFileName)+1); in getLongPathname() 114 uprv_memcpy(info.cFileName, pathname, basename-pathname); in getLongPathname() 116 pathname=info.cFileName; in getLongPathname() 121 return pathname; in getLongPathname() 180 uprv_mkdir(const char *pathname, UErrorCode *status) { in uprv_mkdir() argument 184 retVal = _mkdir(pathname); in uprv_mkdir() [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | path.c | 92 char *pathname = get_pathname(); in mkpath() local 95 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath() 99 return cleanup_path(pathname); in mkpath() 105 char *pathname = get_pathname(); in perf_path() local 112 memcpy(pathname, perf_dir, len); in perf_path() 114 pathname[len++] = '/'; in perf_path() 116 len += vsnprintf(pathname + len, PATH_MAX - len, fmt, args); in perf_path() 120 return cleanup_path(pathname); in perf_path()
|
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
D | ftmac.c | 273 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument 280 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes() 298 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument 304 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path() 539 const UInt8* pathname ) in count_faces() argument 555 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces() 694 const UInt8* pathname, in FT_New_Face_From_LWFN() argument 704 if ( noErr != FT_FSPathMakeRes( pathname, &res ) ) in FT_New_Face_From_LWFN() 793 const UInt8* pathname, in FT_New_Face_From_Suitcase() argument 804 if ( noErr != FT_FSPathMakeRes( pathname, &res_ref ) ) in FT_New_Face_From_Suitcase() [all …]
|
/external/qemu/distrib/libselinux/src/ |
D | android.c | 1011 static int pkgdir_selabel_lookup(const char *pathname, in pkgdir_selabel_lookup() argument 1023 if (!strncmp(pathname, DATA_DATA_PREFIX, sizeof(DATA_DATA_PREFIX)-1)) { in pkgdir_selabel_lookup() 1024 pathname += sizeof(DATA_DATA_PREFIX) - 1; in pkgdir_selabel_lookup() 1025 } else if (!strncmp(pathname, DATA_USER_PREFIX, sizeof(DATA_USER_PREFIX)-1)) { in pkgdir_selabel_lookup() 1026 pathname += sizeof(DATA_USER_PREFIX) - 1; in pkgdir_selabel_lookup() 1027 while (isdigit(*pathname)) in pkgdir_selabel_lookup() 1028 pathname++; in pkgdir_selabel_lookup() 1029 if (*pathname == '/') in pkgdir_selabel_lookup() 1030 pathname++; in pkgdir_selabel_lookup() 1036 if (!(*pathname)) in pkgdir_selabel_lookup() [all …]
|
/external/emma/core/java12/com/vladium/util/ |
D | Files.java | 106 String pathname = tokenizer.nextToken (); in pathToFiles() local 108 if (canonical) pathname = canonicalizePathname (pathname); in pathToFiles() 110 if (pathnames.add (pathname)) in pathToFiles() 112 _result.add (new File (pathname)); in pathToFiles() 127 public static String canonicalizePathname (final String pathname) in canonicalizePathname() argument 129 if (pathname == null) throw new IllegalArgumentException ("null input: pathname"); in canonicalizePathname() 133 return new File (pathname).getCanonicalPath (); in canonicalizePathname() 137 return new File (pathname).getAbsolutePath (); in canonicalizePathname()
|
/external/libselinux/src/ |
D | android.c | 1037 static int pkgdir_selabel_lookup(const char *pathname, in pkgdir_selabel_lookup() argument 1049 if (!strncmp(pathname, DATA_DATA_PREFIX, sizeof(DATA_DATA_PREFIX)-1)) { in pkgdir_selabel_lookup() 1050 pathname += sizeof(DATA_DATA_PREFIX) - 1; in pkgdir_selabel_lookup() 1051 } else if (!strncmp(pathname, DATA_USER_PREFIX, sizeof(DATA_USER_PREFIX)-1)) { in pkgdir_selabel_lookup() 1052 pathname += sizeof(DATA_USER_PREFIX) - 1; in pkgdir_selabel_lookup() 1053 while (isdigit(*pathname)) in pkgdir_selabel_lookup() 1054 pathname++; in pkgdir_selabel_lookup() 1055 if (*pathname == '/') in pkgdir_selabel_lookup() 1056 pathname++; in pkgdir_selabel_lookup() 1062 if (!(*pathname)) in pkgdir_selabel_lookup() [all …]
|
/external/chromium_org/base/process/ |
D | process_handle_freebsd.cc | 26 char pathname[PATH_MAX]; in GetProcessExecutablePath() local 30 length = sizeof(pathname); in GetProcessExecutablePath() 32 if (sysctl(mib, arraysize(mib), pathname, &length, NULL, 0) < 0 || in GetProcessExecutablePath() 37 return FilePath(std::string(pathname)); in GetProcessExecutablePath()
|
/external/chromium_org/sandbox/linux/services/ |
D | broker_process.cc | 45 int sys_open(const char* pathname, int flags) { in sys_open() argument 50 return open(pathname, flags, mode); in sys_open() 52 return syscall(__NR_openat, AT_FDCWD, pathname, flags, mode); in sys_open() 218 int BrokerProcess::Access(const char* pathname, int mode) const { in Access() argument 219 return PathAndFlagsSyscall(kCommandAccess, pathname, mode); in Access() 222 int BrokerProcess::Open(const char* pathname, int flags) const { in Open() argument 223 return PathAndFlagsSyscall(kCommandOpen, pathname, flags); in Open() 231 const char* pathname, int flags) const { in PathAndFlagsSyscall() argument 235 if (!pathname) in PathAndFlagsSyscall() 254 !GetFileNameIfAllowedToOpen(pathname, flags, NULL)) { in PathAndFlagsSyscall() [all …]
|