ref: 37567f07d18aa69824d41dca45ecdbd46e583f2a
parent: f317d233f46bdc85c02c0a991ac2a4788ad34fdb
author: aiju <devnull@localhost>
date: Sat May 6 10:33:52 EDT 2017
update ape/bio.h (thanks jpm)
--- a/sys/include/ape/bio.h
+++ b/sys/include/ape/bio.h
@@ -41,6 +41,7 @@
uchar* ebuf; /* pointer to end of buffer */
uchar* gbuf; /* pointer to good data in buf */
void (*errorf)(char *); /* called on error if not nil */
+ int (*iof)(Biobufhdr*, void *, long); /* called to do i/o */
};
struct Biobuf
@@ -82,6 +83,7 @@
long Bwrite(Biobufhdr*, void*, long);
void Blethal(Biobufhdr*, void(*)(char*));
void Berror(Biobufhdr*, char*, ...);
+void Biofn(Biobufhdr*, int(*)(Biobufhdr*, void*, long));
#pragma varargck argpos Bprint 2
#pragma varargck argpos Berror 2