Commit 86098226 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 729596 - Use ftruncate in szip instead of posix_fallocate. r=taras

parent 3fa41913
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ int main(int argc, char* argv[])
  size_t offset = sizeof(SeekableZStreamHeader) + nChunks * sizeof(uint32_t);

  /* Give enough room for the header and the offset table, and map them */
  ret = posix_fallocate(outFd, 0, offset);
  ret = ftruncate(outFd, offset);
  MOZ_ASSERT(ret == 0);
  MappedPtr headerMap;
  headerMap.Assign(mmap(NULL, offset, PROT_READ | PROT_WRITE, MAP_SHARED,