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.

23 lines
612 B

.TH io_tryreadtimeout 3
io_tryreadtimeout \- read from a descriptor without blocking
.B #include <io.h>
int \fBio_tryreadtimeout\fP(int64 fd,char* buf,int64 len);
io_tryreadtimeout is identical to io_tryread, with the following
exception: if
.RS 0
.IP \[bu] 3
io_tryread returns -1 (the descriptor is not ready for reading), and
.IP \[bu]
the descriptor has a timeout, and
.IP \[bu]
the read attempt was after the descriptor's timeout,
then io_tryreadtimeout instead returns -2, with errno set to ETIMEDOUT.
io_nonblock(3), io_waitread(3), io_tryread(3)