Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
637 B

.TH io_eagain 3
io_eagain \- tell io_wait that you got an EAGAIN
.B #include <libowfat/io.h>
void \fBio_eagain\fP(int64 fd);
If io_wait() said that you can read from a descriptor, you try to read
from it, and you get EAGAIN, you need to tell io_wait(). This is
important for edge triggered event notification schemes like Linux 2.4's
SIGIO, or you will lose events.
io_tryread(), io_trywrite() and io_sendfile() and iob_send() already
take care of this for you.
This function is only of interest if you integrate io_wait() with legacy
code that uses read/write directly.