iob_addfile_close - Man Page

add file region to I/O batch

Syntax

#include <iob.h>

int 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).

Return Value

Returns 1 on success, 0 on failure.  In the failure case, the file descriptor has been closed.

See Also

iob_reset(3), iob_send(3), iob_addbuf(3), iob_addfile(3)

Referenced By

iob_addfile(3).