home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / libgpod0 / TODO < prev   
Encoding:
Text File  |  2005-09-28  |  691 b   |  19 lines

  1. mremap not available under MacOS
  2.  
  3. > I spoke too soon, I found a replacement rather quickly: realloc
  4. > So the code in the function that uses mremap now reads:
  5. >     //new_address = mremap (buffer->mmap->mmap_area, buffer->mmap- 
  6. > >size,
  7. >                   //buffer->mmap->size + IPOD_MMAP_SIZE, 0);
  8. >     new_address = realloc(buffer->mmap->mmap_area, buffer->mmap->size +
  9. >                           IPOD_MMAP_SIZE);
  10.  
  11. I wouldn't expect that to do the right thing, ie stuff written to the
  12. realloc'ed zone will probably not end up being written to the on-disk
  13. file. Implementing mremap as a combination of munmap + mmap when it's
  14. not available will probably be much better
  15.  
  16. Christophe
  17.