summaryrefslogtreecommitdiff
path: root/src/util/map.h
blob: 14a48e1ca225ca2db473f22d5268db4e82253d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdbool.h>
#include <sys/stat.h>

struct map {
  char *addr;
  char *end;
  struct stat sb;
  int fd;
};

struct map *open_map(const char *fname, bool *isdir);
void close_map(struct map *m);