diff options
| author | the lemons <citrons@mondecitronne.com> | 2023-02-07 15:15:00 -0600 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2023-02-07 15:15:58 -0600 |
| commit | 285025ee086b7631cb102c20300c8da7f2d9a52e (patch) | |
| tree | 199de44aa15d3147eb15f38a42519b2f3ed91f1f /procfs.h | |
| parent | 2f4f1462488a867dddae15802ba7dff94279fb9f (diff) | |
change behavior of jumping between maps
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); |
