diff options
Diffstat (limited to 'procfs.h')
-rw-r--r-- | procfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include <stdlib.h> #include <stddef.h> #include <sys/types.h> +#include <sys/mman.h> #ifndef PAGE_SIZE #define PAGE_SIZE (4096) @@ -15,6 +16,7 @@ int read_page(int fd, uintptr_t index, uint8_t *data); struct procfs_map { uintptr_t base; uintptr_t max; + int prot; }; ssize_t procfs_maps(pid_t pid, struct procfs_map **maps); |