Commit 44881f01 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add create_mmap_buf() call to pack.c.

Given a filename, open() and mmap() it as the data field of a Buf.

Tag the Buf with 'mmaped' boolean to make sure free_buf knows
to munmap rather than xfree the data structure, and so we can
call fatal_abort if xfer_buf_data or grow_buf are called.
parent a96281c6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment