iob_addfile - Man Page
add file region to I/O batch
Syntax
#include <iob.h>
int iob_addfile(io_batch* b,int64 fd,uint64 off,uint64 n);
Description
iob_addfile 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.
Use iob_addfile_close if you want the file descriptor to be closed automatically by iob_reset.
Return Value
Returns 1 on success, 0 on failure.
See Also
iob_reset(3), iob_send(3), iob_addbuf(3), iob_addfile_close(3)
Referenced By
iob_addbuf(3), iob_addbuf_free(3), iob_addfile_close(3), iob_adds(3), iob_adds_free(3), iob_new(3), iob_prefetch(3), iob_send(3).