diff --git a/CHANGES b/CHANGES index 78a4058..35e2225 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ 0.27: add fmt_strm + add iob_addbuf_munmap 0.26: fix really pathological case where io_timeouted would never diff --git a/io/iob_addbuf_munmap.c b/io/iob_addbuf_munmap.c new file mode 100644 index 0000000..bd8f3c5 --- /dev/null +++ b/io/iob_addbuf_munmap.c @@ -0,0 +1,5 @@ +#include "iob_internal.h" + +int iob_addbuf_free(io_batch* b,const void* buf,uint64 n) { + return iob_addbuf_internal(b,buf,n,2); +} diff --git a/io/iob_reset.c b/io/iob_reset.c index 2f99424..027a3b0 100644 --- a/io/iob_reset.c +++ b/io/iob_reset.c @@ -1,4 +1,5 @@ #include +#include #include "byte.h" #include "iob_internal.h" @@ -7,10 +8,18 @@ void iob_reset(io_batch* b) { iob_entry* x=array_start(&b->b); l=array_length(&b->b,sizeof(iob_entry)); for (i=0; ib); byte_zero(b,sizeof(*b)); diff --git a/io/iob_send.c b/io/iob_send.c index 30e12c7..17bff80 100644 --- a/io/iob_send.c +++ b/io/iob_send.c @@ -45,7 +45,7 @@ int64 iob_send(int64 s,io_batch* b) { for (i=0; x+i