@ -40,7 +40,11 @@ int64 io_waituntil2(int64 milliseconds) {
if (e->wantread) y[i].events|=EPOLLIN;
if (e->wantwrite) y[i].events|=EPOLLOUT;
}
#ifdef EPOLLRDNORM
if (!e->canread && (y[i].events&(EPOLLIN|EPOLLPRI|EPOLLRDNORM|EPOLLRDBAND))) {
#else
if (!e->canread && (y[i].events&(EPOLLIN|EPOLLPRI))) {
#endif
e->canread=1;
e->next_read=first_readable;
first_readable=y[i].data.fd;
@ -2,7 +2,7 @@
.SH NAME
iob_addbuf \- add buffer to I/O batch
.SH SYNTAX
.B #include <io.h>
.B #include <iob.h>
void \fBiob_addbuf\fP(io_batch* b,const void* buf,uint64 n);
.SH DESCRIPTION
iob_addbuf_free \- add buffer to I/O batch, with deallocation
void \fBiob_addbuf_free\fP(io_batch* b,const void* buf,uint64 n);
iob_addfile \- add file region to I/O batch
void \fBiob_addfile\fP(io_batch* b,int64 fd,uint64 off,uint64 n);
iob_addfile_close \- add file region to I/O batch
void \fBiob_addfile_close\fP(io_batch* b,int64 fd,uint64 off,uint64 n);
iob_adds \- add buffer to I/O batch
void \fBiob_adds\fP(io_batch* b,const char* s);
iob_adds_free \- add buffer to I/O batch
void \fBiob_adds_free\fP(io_batch* b,const char* s);
iob_new \- create new I/O batch
io_batch* \fBiob_new\fP(int hint_entries);
iob_prefetch \- prefetch data for I/O batch
void \fBiob_prefetch\fP(io_batch* b,uint64 n);
iob_send \- send I/O batch
int64 \fBiob_send\fP(int64 s,io_batch* b);