diff options
author | aiju <devnull@localhost> | 2017-05-06 14:33:52 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-05-06 14:33:52 +0000 |
commit | 37567f07d18aa69824d41dca45ecdbd46e583f2a (patch) | |
tree | 747fdeacb10b5d9eae2d3cfb19d44a38d7cd35c7 /sys/include | |
parent | f317d233f46bdc85c02c0a991ac2a4788ad34fdb (diff) |
update ape/bio.h (thanks jpm)
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/ape/bio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/ape/bio.h b/sys/include/ape/bio.h index ffceaae84..444be3761 100644 --- a/sys/include/ape/bio.h +++ b/sys/include/ape/bio.h @@ -41,6 +41,7 @@ struct Biobufhdr 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 @@ int Bungetrune(Biobufhdr*); 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 |