aboutsummaryrefslogtreecommitdiff
path: root/include/base/mem.h
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-20 20:12:21 -0800
committerNicholas <nbnoll@eml.cc>2021-11-20 20:12:21 -0800
commit138fb272fae79587de3469493b55e4d18eadc722 (patch)
tree447d2af80b8c2ea080253e76d33e128c9b27d3f6 /include/base/mem.h
parentc9a32c1a43d2bdded07eaa45732c3a6e195a5442 (diff)
Feat: added buffered io from plan9
As we no longer have the FILE type, we need to buffer our reading and writing so that we don't have to make so many syscalls. The API is nice so that we can buffer other readers. We will update it so that it eats io·Readers/io·Writers.
Diffstat (limited to 'include/base/mem.h')
-rw-r--r--include/base/mem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/base/mem.h b/include/base/mem.h
index 3f1b6e1..6f14c8e 100644
--- a/include/base/mem.h
+++ b/include/base/mem.h
@@ -57,7 +57,9 @@ void mem·freearena(mem·Arena *A);
extern mem·Allocator mem·ArenaAllocator;
-/* generalized memxxx functions */
-void memset64(void *dst, uint64 val, uintptr size);
-
+/* mem functions */
+int mem·move(void *dst, void *src, uintptr size);
+void *mem·findc(void *dst, uintptr len, int c);
+int mem·set(void *dst, int val, uintptr size);
+int mem·set64(void *dst, uint64 val, uintptr size);