File: iob_addfile_close.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.TH iob_addfile_close 3
.SH NAME
iob_addfile_close \- add file region to I/O batch
.SH SYNTAX
.B #include <libowfat/iob.h>

int \fBiob_addfile_close\fP(io_batch* b,int64 fd,uint64 off,uint64 n);
.SH DESCRIPTION
iob_addfile_close 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.

\fBiob_reset\fR will call io_close(fd).
.SH "RETURN VALUE"
Returns 1 on success, 0 on failure.  In the failure case, the file
descriptor has been closed.
.SH "SEE ALSO"
iob_reset(3), iob_send(3), iob_addbuf(3), iob_addfile(3)