Searched refs:file_map (Results 1 – 1 of 1) sorted by relevance
63 static void *file_map; /* pointer of the mapped file */ variable82 munmap(file_map, sb.st_size); in cleanup()84 free(file_map); in cleanup()85 file_map = NULL; in cleanup()113 file_ptr = file_map + offset; in ulseek()119 file_ptr = file_map + (sb.st_size - offset); in ulseek()122 if (file_ptr < file_map) { in ulseek()126 return file_ptr - file_map; in ulseek()256 file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in mmap_file()259 if (file_map == MAP_FAILED) { in mmap_file()[all …]