added first five functions in vmmap.c