16# define IO_BUFFER_SIZE 8192
18# define IO_BUFFER_SIZE (BUFSIZ & ~7U)
54 bool src_has_seen_input;
66 off_t dest_pending_sparse;
95extern void io_allow_sandbox(
void);
char buf[N_BUF]
Definition spewG.c:36
void io_no_sparse(void)
Disable creation of sparse files when decompressing.
Definition file_io.c:151
file_pair * io_open_src(const char *src_name)
Open the source file.
Definition file_io.c:760
void io_write_to_user_abort_pipe(void)
Write a byte to user_abort_pipe[1].
Definition file_io.c:135
bool io_pread(file_pair *pair, io_buf *buf, size_t size, uint64_t pos)
Read from source file from given offset to a buffer.
Definition file_io.c:1234
bool io_write(file_pair *pair, const io_buf *buf, size_t size)
Writes a buffer to the destination file.
Definition file_io.c:1320
void io_init(void)
Initialize the I/O module.
Definition file_io.c:95
bool io_open_dest(file_pair *pair)
Open the destination file.
Definition file_io.c:1016
void io_close(file_pair *pair, bool success)
Closes the file descriptors and frees possible allocated memory.
Definition file_io.c:1077
void io_fix_src_pos(file_pair *pair, size_t rewind_size)
Fix the position in src_fd.
Definition file_io.c:1126
bool io_seek_src(file_pair *pair, uint64_t pos)
Seek to the given absolute position in the source file.
Definition file_io.c:1211
#define IO_BUFFER_SIZE
Definition file_io.h:16
size_t io_read(file_pair *pair, io_buf *buf, size_t size)
Reads from the source file to a buffer.
Definition file_io.c:1141
unsigned char u8
Definition harness.c:16
uint64_t u64
Definition zstd_decompress.c:63
uint32_t u32
Definition zstd_decompress.c:62