io_trywritetimeout(3diet)

io_trywritetimeout3diet

Write to a descriptor without blocking

Usage

#include <io.h>

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

Overview

io_trywritetimeout is identical to io_trywrite, with the following exception: if

•

io_trywrite returns -1 (the descriptor is not ready for writing), and

•

the descriptor has a timeout, and

•

the write attempt was after the descriptor's timeout,

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

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.