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

# io\_dontwantread(3)

signal that you do not want to read from a descriptor

## NAME

io\_dontwantread - signal that you do not want to read from a descriptor

## SYNTAX

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

void **io\_dontwantread**(int64 fd);

## DESCRIPTION

io\_dontwantread tells the next io\_wait() that you don't want to read from this descriptor for now.  Call io\_wantread() again if you change your mind.

You have to have called io\_fd on the descriptor first (io\_pipe and io\_socketpair do this for you).  Waiting on descriptors only works for sockets, fifos and pipes.  It may also work on devices and TTYs, but that is platform dependent -- you should not rely on that.

## SEE ALSO

[io\_wait(3)](/io_wait/3.md), [io\_canread(3)](/io_canread/3.md), [io\_wantread(3)](/io_wantread/3.md), [io\_fd(3)](/io_fd/3.md)
