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