Move the write() ahead of the mmap() call.
Ensure the file has been create with the appropriate length before mmap()'ing the buffer.
Please register or sign in to comment
Ensure the file has been create with the appropriate length before mmap()'ing the buffer.