Lines Matching refs:file_
162 return file_.is_valid(); in IsValid()
166 return file_.get(); in GetPlatformFile()
170 return file_.release(); in TakePlatformFile()
179 file_.reset(); in Close()
192 return lseek64(file_.get(), static_cast<off64_t>(offset), in Seek()
196 return lseek(file_.get(), static_cast<off_t>(offset), in Seek()
212 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read()
234 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos()
248 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort()
258 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort()
264 if (IsOpenAppend(file_.get())) in Write()
276 rv = HANDLE_EINTR(pwrite(file_.get(), data + bytes_written, in Write()
298 rv = HANDLE_EINTR(write(file_.get(), data + bytes_written, in WriteAtCurrentPos()
316 return HANDLE_EINTR(write(file_.get(), data, size)); in WriteAtCurrentPosNoBestEffort()
325 if (CallFstat(file_.get(), &file_info)) in GetLength()
336 return !CallFtruncate(file_.get(), length); in SetLength()
349 return !CallFutimes(file_.get(), times); in SetTimes()
358 if (CallFstat(file_.get(), &file_info)) in GetInfo()
367 return CallFcntlFlock(file_.get(), true); in Lock()
372 return CallFcntlFlock(file_.get(), false); in Unlock()
512 file_.reset(descriptor); in DoInitialize()
524 return !HANDLE_EINTR(fdatasync(file_.get())); in DoFlush()
526 return !HANDLE_EINTR(fsync(file_.get())); in DoFlush()
531 DCHECK(!file_.is_valid()); in SetPlatformFile()
532 file_.reset(file); in SetPlatformFile()