From 75f9922f6d3c1e5bbbe7b90ca170392cc0f5efbc Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 21 Oct 2018 16:23:23 +0300 Subject: Refactor io utils, add *-address-rw tools Namespace io_ stuff into mem_io_ to be less likely to collision with anything else. Add io-stream utility for working with streams instead of direct buffers. Add address-rw tools for simple memory read/write, where regions aren't needed. --- src/ptrace-region-rw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ptrace-region-rw.c') diff --git a/src/ptrace-region-rw.c b/src/ptrace-region-rw.c index 135c2a5..02d6b0c 100644 --- a/src/ptrace-region-rw.c +++ b/src/ptrace-region-rw.c @@ -1,5 +1,5 @@ -#include "cli/proc-region-rw.h" -#include "io/io.h" +#include "cli/cli.h" +#include "mem/io.h" // This region-rw uses ptrace // This works with older kernels, but it also ensures non racy read/writes, as it stops the process. @@ -8,5 +8,5 @@ int main(int argc, const char *argv[]) { - return proc_region_rw(argc, argv, io_ptrace_init); + return proc_region_rw(argc, argv, mem_io_ptrace_init); } -- cgit v1.2.3