1io_tryreadtimeout(3)       Library Functions Manual       io_tryreadtimeout(3)
2
3
4

NAME

6       io_tryreadtimeout - read from a descriptor without blocking
7

SYNTAX

9       #include <io.h>
10
11       int io_tryreadtimeout(int64 fd,char* buf,int64 len);
12

DESCRIPTION

14       io_tryreadtimeout is identical to io_tryread, with the following excep‐
15       tion: if
16
17
18       ·  io_tryread returns -1 (the descriptor is not ready for reading), and
19
20       ·  the descriptor has a timeout, and
21
22       ·  the read attempt was after the descriptor's timeout,
23
24       then io_tryreadtimeout instead returns -2, with errno set to ETIMEDOUT.
25

SEE ALSO

27       io_nonblock(3), io_waitread(3), io_tryread(3)
28
29
30
31                                                          io_tryreadtimeout(3)
Impressum