11 #include "../lib/include/sblist.h"
17 MDP_P
= 1 << 3, //private (copy on write)
18 MDP_S
= 1 << 4, //shared
32 map_data_address address
;
40 /* returns a sblist (or NULL) containing map_data members by parsing /proc/pid/maps */
41 sblist
* process_maps_get(pid_t pid
);
42 /* free the memory claimed by process_maps_get */
43 void process_maps_free(sblist
* maps
);
44 /* generates a readable string from a permission byte */
45 void process_maps_perms_str(unsigned char perms
, char* outbuf5
);
46 /* returns a mapdata* for the map the addr is contained in, or NULL */
47 map_data
* find_map_for_addr(sblist
* maps
, void* addr
);
48 /* returns size of a mapping */
49 size_t process_map_size(map_data
* map
);
55 #pragma RcB2 DEP "process_maps.c"