summaryrefslogtreecommitdiff
path: root/procfs.h
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2023-02-05 19:06:16 -0600
committerthe lemons <citrons@mondecitronne.com>2023-02-05 19:06:16 -0600
commit3af50b956b8887b64c3c29b30a0008be866b24c4 (patch)
treeaf2a6f736505585192f852342ae988a297024133 /procfs.h
initial commit
Diffstat (limited to 'procfs.h')
-rw-r--r--procfs.h15
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