---
name: "iob_addfile_close"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/iob_addfile_close/3diet"
---

# iob\_addfile\_close(3diet)

add file region to I/O batch

## NAME

iob\_addfile\_close - add file region to I/O batch

## SYNTAX

**#include \<iob.h\>**

void **iob\_addfile\_close**(io\_batch\* b,int64 fd,uint64 off,uint64 n);

## DESCRIPTION

iob\_addfile\_close schedules *n* bytes from the file descriptor *fd* starting at offset *off* to be written with the I/O batch *b*.

You may not close *fd* before iob\_send indicates it is done.

**iob\_reset** will call io\_close(fd).

## SEE ALSO

[iob\_reset(3)](/iob_reset/3.md), [iob\_send(3)](/iob_send/3.md), [iob\_addbuf(3)](/iob_addbuf/3.md), [iob\_addfile(3)](/iob_addfile/3.md)
