Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
io_tryreadtimeout(3)	    Library Functions Manual	    io_tryreadtimeout(3)

NAME
     io_tryreadtimeout - read from a descriptor without blocking

SYNTAX
     #include <libowfat/io.h>

     int io_tryreadtimeout(int64 fd,char* buf,int64 len);

DESCRIPTION
     io_tryreadtimeout is identical to io_tryread, with the following exception:
     if

     *	io_tryread returns -1 (the descriptor is not ready for reading), and

     *	the descriptor has a timeout, and

     *	the read attempt was after the descriptor's timeout,

     then io_tryreadtimeout instead returns -2, with errno set to ETIMEDOUT.

SEE ALSO
     io_nonblock(3), io_waitread(3), io_tryread(3)

							    io_tryreadtimeout(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=libowfat_io_tryreadtimeout&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help