Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
632 B

.TH iob_addfile 3
iob_addfile \- add file region to I/O batch
.B #include <iob.h>
int \fBiob_addfile\fP(io_batch* b,int64 fd,uint64 off,uint64 n);
iob_addfile schedules \fIn\fR bytes from the file descriptor \fIfd\fR
starting at offset \fIoff\fR to be written with the I/O batch \fIb\fR.
You may not close \fIfd\fR before iob_send indicates it is done.
Use \fBiob_addfile_close\fR if you want the file descriptor to be closed
automatically by \fBiob_reset\fR.
Returns 1 on success, 0 on failure.
iob_reset(3), iob_send(3), iob_addbuf(3), iob_addfile_close(3)