Rizin
unix-like reverse engineering framework and cli tools
|
#include <file_io.h>
Public Attributes | |
const char * | src_name |
char * | dest_name |
int | src_fd |
File descriptor of the source file. More... | |
int | dest_fd |
File descriptor of the target file. More... | |
bool | src_eof |
True once end of the source file has been detected. More... | |
bool | src_has_seen_input |
bool | flush_needed |
For –flush-timeout: True when flushing is needed. More... | |
bool | dest_try_sparse |
off_t | dest_pending_sparse |
struct stat | src_st |
Stat of the source file. More... | |
struct stat | dest_st |
Stat of the destination file. More... | |
int file_pair::dest_fd |
File descriptor of the target file.
Definition at line 47 of file file_io.h.
Referenced by io_close(), io_close_dest(), io_copy_attrs(), io_open_dest_real(), io_wait(), io_write(), and io_write_buf().
char* file_pair::dest_name |
Destination filename converted from src_name or pointer to static "(stdout)" when writing to standard output.
Definition at line 41 of file file_io.h.
Referenced by io_close(), io_close_dest(), io_copy_attrs(), io_open_dest_real(), io_wait(), io_write(), and io_write_buf().
off_t file_pair::dest_pending_sparse |
This is used only if dest_try_sparse is true. This holds the number of zero bytes we haven't written out, because we plan to make that byte range a sparse chunk.
Definition at line 66 of file file_io.h.
Referenced by io_close(), and io_write().
struct stat file_pair::dest_st |
Stat of the destination file.
Definition at line 66 of file file_io.h.
Referenced by io_close_dest(), and io_open_dest_real().
bool file_pair::dest_try_sparse |
If true, we look for long chunks of zeros and try to create a sparse file.
Definition at line 61 of file file_io.h.
Referenced by io_close(), io_open_dest_real(), and io_write().
bool file_pair::flush_needed |
For –flush-timeout: True when flushing is needed.
Definition at line 57 of file file_io.h.
Referenced by coder_normal(), and io_read().
bool file_pair::src_eof |
True once end of the source file has been detected.
Definition at line 50 of file file_io.h.
Referenced by coder_normal(), and io_read().
int file_pair::src_fd |
File descriptor of the source file.
Definition at line 44 of file file_io.h.
Referenced by io_close_src(), io_fix_src_pos(), io_open_dest_real(), io_open_src(), io_open_src_real(), io_pread(), io_read(), and io_wait().
bool file_pair::src_has_seen_input |
For –flush-timeout: True if at least one byte has been read since the previous flush or the start of the file.
Definition at line 54 of file file_io.h.
Referenced by coder_normal(), and io_read().
const char* file_pair::src_name |
Name of the source filename (as given on the command line) or pointer to static "(stdin)" when reading from standard input.
Definition at line 37 of file file_io.h.
Referenced by coder_normal(), io_close_src(), io_open_dest_real(), io_open_src(), io_open_src_real(), io_pread(), io_read(), io_wait(), parse_block_header(), parse_indexes(), print_info_basic(), and print_info_robot().
struct stat file_pair::src_st |
Stat of the source file.
Definition at line 66 of file file_io.h.
Referenced by coder_run(), io_close_src(), io_copy_attrs(), io_open_dest_real(), io_open_src_real(), and parse_indexes().