Searched refs:statbf (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | read_text.cpp | 89 struct stat statbf; in Sync() local 92 if ((!sfd) || (fstat(sfd.GetFD(), &statbf) == -1)) { in Sync() 97 if (position > statbf.st_size) { in Sync() 102 len = (!hasLen || len > static_cast<size_t>(statbf.st_size)) ? statbf.st_size : len; in Sync() 135 struct stat statbf; in AsyncExec() local 141 if (fstat(sfd.GetFD(), &statbf) == -1) { in AsyncExec() 145 if (position > statbf.st_size) { in AsyncExec() 149 len = (!hasLen || len > static_cast<size_t>(statbf.st_size)) ? statbf.st_size : len; in AsyncExec()
|
H A D | copy_file.cpp | 56 struct stat statbf; in CopyFileCore() local 57 if (fstat(srcFile.fdg.GetFD(), &statbf) == -1) { in CopyFileCore() 62 int ret = open(destFile.path.get(), O_WRONLY | O_CREAT, statbf.st_mode); in CopyFileCore()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | read_text.cpp | 75 struct stat statbf; in ReadTextAsync() local 94 if (fstat(sfd.GetFD(), &statbf) < 0) { in ReadTextAsync() 99 if (offset > statbf.st_size) { in ReadTextAsync() 104 len = (!hasLen || len > statbf.st_size) ? statbf.st_size : len; in ReadTextAsync() 179 struct stat statbf; in Sync() local 180 if ((!sfd) || (fstat(sfd.GetFD(), &statbf) < 0)) { in Sync() 186 if (offset > statbf.st_size) { in Sync() 192 len = (!hasLen || len > statbf.st_size) ? statbf.st_size : len; in Sync()
|
H A D | copy_file.cpp | 63 static NError SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& statbf) in SendFileCore() argument 72 size_t size = static_cast<size_t>(statbf.st_size); in SendFileCore() 145 struct stat statbf; in OpenFile() local 146 if (fstat(srcFile.fdg->GetFD(), &statbf) < 0) { in OpenFile() 167 if (statbf.st_size == 0) { in OpenFile() 170 return SendFileCore(srcFile, destFile, statbf); in OpenFile()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | copy_file.cpp | 96 static int SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& statbf) in SendFileCore() argument 105 size_t size = static_cast<size_t>(statbf.st_size); in SendFileCore() 172 struct stat statbf; in OpenFile() local 173 if (fstat(srcFile.fdg->GetFD(), &statbf) < 0) { in OpenFile() 179 UV_FS_O_TRUNC, statbf.st_mode); in OpenFile() 194 return SendFileCore(srcFile, destFile, statbf); in OpenFile()
|
H A D | file_fs_impl.cpp | 1156 struct stat statbf; in ReadText() local 1157 if ((!sfd) || (fstat(sfd.GetFD(), &statbf) < 0)) { in ReadText() 1163 if (offset > statbf.st_size) { in ReadText() 1169 len = (!hasLen || len > statbf.st_size) ? statbf.st_size : len; in ReadText()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/ |
H A D | file_n_exporter.cpp | 532 struct stat statbf; in CopyExec() local 533 if (stat(path.c_str(), &statbf) == FAILED) { in CopyExec() 539 if (S_ISREG(statbf.st_mode)) { in CopyExec() 546 } else if (S_ISDIR(statbf.st_mode)) { in CopyExec() 641 struct stat statbf; in MoveExec() local 642 if (stat(path.c_str(), &statbf) == FAILED) { in MoveExec() 647 if (S_ISREG(statbf.st_mode)) { in MoveExec() 655 } else if (S_ISDIR(statbf.st_mode)) { in MoveExec()
|