[c] split file mmap to standalone c file and testing on debian 7.0