16 # define IO_BUFFER_SIZE 8192
18 # define IO_BUFFER_SIZE (BUFSIZ & ~7U)
81 #ifndef TUKLIB_DOSLIKE
95 extern void io_allow_sandbox(
void);
void io_no_sparse(void)
Disable creation of sparse files when decompressing.
void io_write_to_user_abort_pipe(void)
Write a byte to user_abort_pipe[1].
bool io_write(file_pair *pair, const io_buf *buf, size_t size)
Writes a buffer to the destination file.
void io_init(void)
Initialize the I/O module.
bool io_open_dest(file_pair *pair)
Open the destination file.
void io_close(file_pair *pair, bool success)
Closes the file descriptors and frees possible allocated memory.
void io_fix_src_pos(file_pair *pair, size_t rewind_size)
Fix the position in src_fd.
file_pair * io_open_src(const char *src_name)
Open the source file.
size_t io_read(file_pair *pair, io_buf *buf, size_t size)
Reads from the source file to a buffer.
bool io_pread(file_pair *pair, io_buf *buf, size_t size, off_t pos)
Read from source file from given offset to a buffer.
bool flush_needed
For –flush-timeout: True when flushing is needed.
off_t dest_pending_sparse
int dest_fd
File descriptor of the target file.
int src_fd
File descriptor of the source file.
bool src_eof
True once end of the source file has been detected.