Home | History | Annotate | Download | only in libsparse

Lines Matching refs:output_file

33 #include "output_file.h"
63 int (*open)(struct output_file *, int fd);
64 int (*skip)(struct output_file *, int64_t);
65 int (*pad)(struct output_file *, int64_t);
66 int (*write)(struct output_file *, void *, int);
67 void (*close)(struct output_file *);
71 int (*write_data_chunk)(struct output_file *out, unsigned int len,
73 int (*write_fill_chunk)(struct output_file *out, unsigned int len,
75 int (*write_skip_chunk)(struct output_file *out, int64_t len);
76 int (*write_end_chunk)(struct output_file *out);
79 struct output_file {
94 struct output_file out;
102 struct output_file out;
110 struct output_file out;
118 static int file_open(struct output_file *out, int fd)
126 static int file_skip(struct output_file *out, int64_t cnt)
139 static int file_pad(struct output_file *out, int64_t len)
152 static int file_write(struct output_file *out, void *data, int len)
169 static void file_close(struct output_file *out)
184 static int gz_file_open(struct output_file *out, int fd)
198 static int gz_file_skip(struct output_file *out, int64_t cnt)
211 static int gz_file_pad(struct output_file *out, int64_t len)
235 static int gz_file_write(struct output_file *out, void *data, int len)
252 static void gz_file_close(struct output_file *out)
268 static int callback_file_open(struct output_file *out __unused, int fd __unused)
273 static int callback_file_skip(struct output_file *out, int64_t off)
291 static int callback_file_pad(struct output_file *out __unused, int64_t len __unused)
296 static int callback_file_write(struct output_file *out, void *data, int len)
303 static void callback_file_close(struct output_file *out)
340 static int write_sparse_skip_chunk(struct output_file *out, int64_t skip_len)
366 static int write_sparse_fill_chunk(struct output_file *out, unsigned int len,
401 static int write_sparse_data_chunk(struct output_file *out, unsigned int len,
442 int write_sparse_end_chunk(struct output_file *out)
475 static int write_normal_data_chunk(struct output_file *out, unsigned int len,
493 static int write_normal_fill_chunk(struct output_file *out, unsigned int len,
518 static int write_normal_skip_chunk(struct output_file *out, int64_t len)
523 int write_normal_end_chunk(struct output_file *out)
535 void output_file_close(struct output_file *out)
541 static int output_file_init(struct output_file *out, int block_size,
604 static struct output_file *output_file_new_gz(void)
617 static struct output_file *output_file_new_normal(void)
630 struct output_file *output_file_open_callback(int (*write)(void *, const void *, int),
656 struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t len,
660 struct output_file *out;
683 int write_data_chunk(struct output_file *out, unsigned int len, void *data)
689 int write_fill_chunk(struct output_file *out, unsigned int len,
695 int write_fd_chunk(struct output_file *out, unsigned int len,
746 int write_file_chunk(struct output_file *out, unsigned int len,
763 int write_skip_chunk(struct output_file *out, int64_t len)