aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-06-02 14:54:32 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-06-02 14:54:32 -0700
commit0fae7444c66080616eba01f7702bdb2d9b493166 (patch)
tree2f88b79ea21f4ca2c512eb0ff05f548ffe27ae5d /include
parentcdc50fd76fd0e286f40416f579d60f14e19aa9f5 (diff)
prototype of dway. needs testing
Diffstat (limited to 'include')
-rw-r--r--include/libn.h5
-rw-r--r--include/u.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/include/libn.h b/include/libn.h
index 5201b1c..38f0a3a 100644
--- a/include/libn.h
+++ b/include/libn.h
@@ -294,7 +294,10 @@ int bufio·read(io·Buffer *buf, int sz, int n, void *out);
typedef struct mmap·Reader
{
vlong len;
- void* buf;
+ union {
+ byte *buf;
+ ubyte *ubuf;
+ };
} mmap·Reader;
mmap·Reader mmap·open(byte *name);
diff --git a/include/u.h b/include/u.h
index d6d6f16..b430cc5 100644
--- a/include/u.h
+++ b/include/u.h
@@ -14,8 +14,8 @@
// Modern type aliases
typedef char byte;
-typedef unsigned char ubyte;
-typedef signed char sbyte;
+typedef unsigned char ubyte, uchar;
+typedef signed char sbyte, schar;
typedef unsigned long ulong;
typedef signed long slong;