Commit Graph

6 Commits (3c68ae0dcc42df25e018b631eadd99aca96103fd)

Author SHA1 Message Date
leitner c2a2a15c12 document the return value expected from the callback given to iob_write
remove unused #include in iob_reset
if iob_addfile_close fails, it now closes the fd
if iob_addbuf_munmap fails, it now munmaps the buf
if iob_addbuf_free fails, it now frees the buf
some win32 cross-compile fixes for iarray
leitner 8b17690318 use callback based infrastructure to reset iob's
leitner 11da04b651 fix descriptor leak in iob_addfile_close if the range was 0 (oops)
leitner b48ce77792 add iob_write (to write an io batch through a callback)
leitner f26451c086 slight optimization for sending 0 bytes from a file
(also fixes a FreeBSD-current sendfile breakage)
leitner 3996ade63e add iob_addfile_close (iob_reset will close the files)