io_trywritetimeout

Langue: en

Autres versions - même langue

Version: 374632 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

io_trywritetimeout - write to a descriptor without blocking

SYNTAX

#include <io.h>

int io_trywritetimeout(int64 fd,const char* buf,int64 len);

DESCRIPTION

io_trywritetimeout is identical to io_trywrite, with the following exception: if
[bu]
io_trywrite returns -1 (the descriptor is not ready for writing), and
[bu]
the descriptor has a timeout, and
[bu]
the write attempt was after the descriptor's timeout,

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

SEE ALSO

io_nonblock(3), io_waitwrite(3), io_trywrite(3)