io_tryreadtimeout(3) - Linux man page
Name
io_tryreadtimeout - read from a descriptor without blockingSyntax
#include <io.h>int io_tryreadtimeout(int64 fd,char* buf,int64 len);
Description
io_tryreadtimeout is identical to io_tryread, with the following exception: if
- [bu]
- io_tryread returns -1 (the descriptor is not ready for reading), and
- [bu]
- the descriptor has a timeout, and
- [bu]
- the read attempt was after the descriptor's timeout,
then io_tryreadtimeout instead returns -2, with errno set to ETIMEDOUT.