Update mmap et. al and add ftruncate