From: Andre Noll Date: Sun, 15 Feb 2015 15:42:05 +0000 (+0100) Subject: Simplify and rename mmap_full_file(). X-Git-Tag: v1.0.0~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=cd5cfb4c2dbbf5615c78d1e439f0cbfb08437b43;hp=cd5cfb4c2dbbf5615c78d1e439f0cbfb08437b43 Simplify and rename mmap_full_file(). There is only one caller which maps the file privately into read-only memory. Moreover, this caller does not care about the file descriptor from which the mapping was created. This commit removes the argument from mmap_full_file() which control the type of the map and the result pointer for the file descriptor, thereby simplifying the function slightly. Rename it to mmap_file_ro() to indicate that read-only private mappings are implied. ---