diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-21 16:23:23 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-21 16:23:23 +0300 |
commit | 75f9922f6d3c1e5bbbe7b90ca170392cc0f5efbc (patch) | |
tree | d79e445e87ae9a55e146c6c3b46fef6f238d23e7 /src/uio-region-rw.c | |
parent | d81411896f140981400e4fbf4aafacdbabad96cd (diff) |
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.
Diffstat (limited to 'src/uio-region-rw.c')
-rw-r--r-- | src/uio-region-rw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uio-region-rw.c b/src/uio-region-rw.c index 96cac49..1daa763 100644 --- a/src/uio-region-rw.c +++ b/src/uio-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 uio // It needs recent kernel, but may be racy as it reads / writes while process is running. @@ -9,5 +9,5 @@ int main(int argc, const char *argv[]) { - return proc_region_rw(argc, argv, io_uio_init); + return proc_region_rw(argc, argv, mem_io_uio_init); } |