summaryrefslogtreecommitdiff
path: root/procfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'procfs.h')
-rw-r--r--procfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/procfs.h b/procfs.h
index b36c242..28ef784 100644
--- a/procfs.h
+++ b/procfs.h
@@ -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);