Being modifying write_1g function to be able to write to a temporary buffer instead of straight to fd_out.

Split out make_magic to be able to write magic wherever we want later.
This commit is contained in:
Con Kolivas 2011-03-12 14:13:28 +11:00
parent 9444441d51
commit c75a50f723
6 changed files with 67 additions and 37 deletions

View file

@ -26,7 +26,7 @@
void create_pthread(pthread_t *thread, pthread_attr_t *attr,
void * (*start_routine)(void *), void *arg);
void join_pthread(pthread_t th, void **thread_return);
ssize_t write_1g(int fd, void *buf, i64 len);
ssize_t write_1g(rzip_control *control, int fd, void *buf, i64 len);
ssize_t read_1g(int fd, void *buf, i64 len);
void prepare_streamout_threads(rzip_control *control);
void close_streamout_threads(rzip_control *control);