diff options
| author | the lemons <citrons@mondecitronne.com> | 2023-02-05 19:06:16 -0600 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2023-02-05 19:06:16 -0600 |
| commit | 3af50b956b8887b64c3c29b30a0008be866b24c4 (patch) | |
| tree | af2a6f736505585192f852342ae988a297024133 /procfs.h | |
initial commit
Diffstat (limited to 'procfs.h')
| -rw-r--r-- | procfs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/procfs.h b/procfs.h new file mode 100644 index 0000000..7b81a13 --- /dev/null +++ b/procfs.h @@ -0,0 +1,15 @@ +#ifndef CORE_PROCFS_H +#define CORE_PROCFS_H + +#include <stdlib.h> +#include <stddef.h> +#include <sys/types.h> + +#ifndef PAGE_SIZE +#define PAGE_SIZE (4096) +#endif + +int procfs_open(pid_t pid); +int read_page(int fd, uintptr_t index, uint8_t *data); + +#endif |
