Searched refs:stat_req (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | stat.cpp | 88 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync() local 90 if (!stat_req) { in Sync() 95 auto err = CheckFsStat(fileInfo, stat_req.get()); in Sync() 107 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf, arg).val_; in Sync() 109 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf).val_; in Sync() 133 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Async() local 135 if (!stat_req) { in Async() 139 auto err = CheckFsStat(*fileInfo, stat_req.get()); in Async() 143 arg->stat_ = stat_req->statbuf; in Async()
|
H A D | utimes.cpp | 52 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync() local 54 if (!stat_req) { in Sync() 60 int ret = uv_fs_stat(nullptr, stat_req.get(), path.get(), nullptr); in Sync() 75 double atime = static_cast<double>(stat_req->statbuf.st_atim.tv_sec) + in Sync() 76 static_cast<double>(stat_req->statbuf.st_atim.tv_nsec) / NS; in Sync()
|
H A D | read_lines.cpp | 48 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in GetFileSize() local 50 if (!stat_req) { in GetFileSize() 55 int ret = uv_fs_stat(nullptr, stat_req.get(), path.c_str(), nullptr); in GetFileSize() 61 offset = static_cast<int64_t>(stat_req->statbuf.st_size); in GetFileSize()
|
H A D | move.cpp | 90 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in CopyAndDeleteFile() local 92 if (!stat_req) { in CopyAndDeleteFile() 96 int ret = uv_fs_stat(nullptr, stat_req.get(), src.c_str(), nullptr); in CopyAndDeleteFile()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | file_fs_impl.cpp | 75 if (!stat_req) { in GetUvStat() 79 auto state = CheckFsStat(fileInfo, stat_req.get()); in GetUvStat() 83 uv_stat_t* tempBuf = new (std::nothrow) uv_stat_t(stat_req->statbuf); in GetUvStat() 113 if (!stat_req) { in GetFsAccess() 444 if (!stat_req) { in RestoreTime() 454 static_cast<double>(stat_req->statbuf.st_atim.tv_nsec) / NS; in RestoreTime() 456 static_cast<double>(stat_req->statbuf.st_mtim.tv_nsec) / NS; in RestoreTime() 1054 if (!stat_req) { in GetFileSize() 1065 offset = static_cast<int64_t>(stat_req->statbuf.st_size); in GetFileSize() 1196 if (!stat_req) { in Utimes() [all …]
|
H A D | move_file.cpp | 81 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in CopyAndDeleteFile() local 83 if (!stat_req) { in CopyAndDeleteFile() 87 int ret = uv_fs_stat(nullptr, stat_req.get(), src.c_str(), nullptr); in CopyAndDeleteFile() 128 return ChangeTime(dest, stat_req.get()); in CopyAndDeleteFile()
|
/ohos5.0/foundation/filemanagement/user_file_service/utils/ |
H A D | file_util.h | 94 unique_ptr<uv_fs_t, decltype(fs_req_cleanup)*> stat_req = { in GetStat() local 96 if (!stat_req) { in GetStat() 100 auto err = CheckFsStatByPath(path, stat_req.get()); in GetStat() 102 statEntity = StatEntity { stat_req->statbuf }; in GetStat()
|