#ifndef CORE_PROCFS_H #define CORE_PROCFS_H #include #include #include #include #ifndef PAGE_SIZE #define PAGE_SIZE (4096) #endif int procfs_open(pid_t pid); int read_mem(int fd, uintptr_t addr, uint8_t *data, size_t size); int write_mem(int fd, uintptr_t addr, uint8_t *data, size_t size); typedef struct procfs_map { uintptr_t base; uintptr_t max; char name[1024]; int prot; } procfs_map; ssize_t procfs_maps(pid_t pid, struct procfs_map **maps); char procfs_state(pid_t pid); #endif