1 2 3 4 5 6 7 8 9 10 11
#include <sys/stat.h> struct map { char *addr; char *end; struct stat sb; int fd; }; struct map *open_map(const char *fname); void close_map(struct map *m);