Lines Matching refs:fd

87   int fd = flock.GetFile()->Fd();
91 ProfileLoadSatus status = fileInfo.LoadInternal(fd, &error);
127 bool result = Save(fd);
141 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) {
143 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count));
179 bool ProfileCompilationInfo::Save(int fd) {
181 DCHECK_GE(fd, 0);
187 WriteBuffer(fd, kProfileMagic, sizeof(kProfileMagic));
188 WriteBuffer(fd, kProfileVersion, sizeof(kProfileVersion));
193 if (!WriteBuffer(fd, buffer.data(), buffer.size())) {
238 return WriteBuffer(fd, buffer.data(), buffer.size());
314 static int testEOF(int fd) {
316 return TEMP_FAILURE_RETRY(read(fd, buffer, 1));
344 int fd,
350 int bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, byte_count));
365 int fd,
376 ProfileLoadSatus status = safe_buffer.FillFromFd(fd, "ReadProfileHeader", error);
394 int fd,
398 ProfileLoadSatus status = header_buffer.FillFromFd(fd, "ReadProfileHeader", error);
414 status = location_buffer.FillFromFd(fd, "ReadProfileHeaderDexLocation", error);
424 int fd,
441 ProfileLoadSatus status = line_buffer.FillFromFd(fd, "ReadProfileLine", error);
459 bool ProfileCompilationInfo::Load(int fd) {
461 ProfileLoadSatus status = LoadInternal(fd, &error);
472 int fd, std::string* error) {
474 DCHECK_GE(fd, 0);
477 if (fstat(fd, &stat_buffer) != 0) {
488 ProfileLoadSatus status = ReadProfileHeader(fd, &number_of_lines, error);
496 status = ReadProfileLineHeader(fd, &line_header, error);
502 status = ReadProfileLine(fd, line_header, error);
510 int result = testEOF(fd);