---
name: "io_timeout"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/io_timeout"
---

# io\_timeout(3)

set time limit on descriptor

## NAME

io\_timeout - set time limit on descriptor

## SYNTAX

**#include \<libowfat/io.h\>**

void **io\_timeout**(int64 fd,tai6464 deadline);

## DESCRIPTION

The io library keeps track of an optional \`\`timeout'' for each descriptor. The timeout is a specific moment in time, stored in a tai6464 variable.

io\_timeout(*d*,*t*) sets the timeout for descriptor *d* to *t*.

io\_timeout has no return value; it always succeeds. (Space to store the timeout was already allocated as part of the descriptor.) It has no effect if *d* is not the number of a descriptor.

Note that you have to call io\_timeouted to be notified of timeouts, just like you are calling io\_canread or io\_canwrite for read and write notification.

## SEE ALSO

[io\_waituntil(3)](/io_waituntil/3.md), [io\_timeouted(3)](/io_timeouted/3.md)
