summaryrefslogtreecommitdiff
path: root/procfs.h
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2023-02-07 15:15:00 -0600
committerthe lemons <citrons@mondecitronne.com>2023-02-07 15:15:58 -0600
commit285025ee086b7631cb102c20300c8da7f2d9a52e (patch)
tree199de44aa15d3147eb15f38a42519b2f3ed91f1f /procfs.h
parent2f4f1462488a867dddae15802ba7dff94279fb9f (diff)
change behavior of jumping between maps
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);