utils: add {un,}map_file to read an entire file
authorRan Benita <ran234@gmail.com>
Thu, 14 Mar 2013 12:33:40 +0000 (14:33 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 1 Apr 2013 17:20:56 +0000 (18:20 +0100)
commite4bceec8809f2563af6786678442fa70d4cd728c
tree0f88944082cd39e844231904527a8c1abb8777af
parent99f6e6fc28d91907203f9a19feb4d48878f28cad
utils: add {un,}map_file to read an entire file

This wraps the current mmap call and adds a fallback implementation for
systems which do not have mmap (e.g. mingw).

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
configure.ac
src/utils.c [new file with mode: 0644]
src/utils.h
src/xkbcomp/rules.c