Lines Matching defs:offset
253 off_t offset = 0;
255 while (offset < st.st_size) {
256 size_t count = static_cast<size_t>((st.st_size - offset) > SSIZE_MAX ? SSIZE_MAX : st.st_size - offset);
257 ssize_t ret = sendfile(destFd, srcFd, &offset, count);
259 HIVIEW_LOGI("sendfile cycle num:%{public}d, ret:%{public}zd, offset:%{public}lld, size:%{public}lld",
260 cycleNum, ret, static_cast<long long>(offset), static_cast<long long>(st.st_size));
263 if (ret < 0 || offset > st.st_size) {
264 HIVIEW_LOGE("sendfile fail, ret:%{public}zd, offset:%{public}lld, size:%{public}lld",
265 ret, static_cast<long long>(offset), static_cast<long long>(st.st_size));