Lines Matching defs:output_file

31 #include "output_file.h"
70 int (*open)(struct output_file *, int fd);
71 int (*skip)(struct output_file *, int64_t);
72 int (*pad)(struct output_file *, int64_t);
73 int (*write)(struct output_file *, void *, int);
74 void (*close)(struct output_file *);
78 int (*write_data_chunk)(struct output_file *out, unsigned int len,
80 int (*write_fill_chunk)(struct output_file *out, unsigned int len,
82 int (*write_skip_chunk)(struct output_file *out, int64_t len);
83 int (*write_end_chunk)(struct output_file *out);
86 struct output_file {
101 struct output_file out;
109 struct output_file out;
117 struct output_file out;
125 static int file_open(struct output_file *out, int fd)
133 static int file_skip(struct output_file *out, int64_t cnt)
146 static int file_pad(struct output_file *out, int64_t len)
159 static int file_write(struct output_file *out, void *data, int len)
176 static void file_close(struct output_file *out)
191 static int gz_file_open(struct output_file *out, int fd)
205 static int gz_file_skip(struct output_file *out, int64_t cnt)
218 static int gz_file_pad(struct output_file *out, int64_t len)
242 static int gz_file_write(struct output_file *out, void *data, int len)
259 static void gz_file_close(struct output_file *out)
275 static int callback_file_open(struct output_file *out, int fd)
280 static int callback_file_skip(struct output_file *out, int64_t off)
298 static int callback_file_pad(struct output_file *out, int64_t len)
303 static int callback_file_write(struct output_file *out, void *data, int len)
311 static void callback_file_close(struct output_file *out)
348 static int write_sparse_skip_chunk(struct output_file *out, int64_t skip_len)
374 static int write_sparse_fill_chunk(struct output_file *out, unsigned int len,
410 static int write_sparse_data_chunk(struct output_file *out, unsigned int len,
451 int write_sparse_end_chunk(struct output_file *out)
484 static int write_normal_data_chunk(struct output_file *out, unsigned int len,
502 static int write_normal_fill_chunk(struct output_file *out, unsigned int len,
527 static int write_normal_skip_chunk(struct output_file *out, int64_t len)
532 int write_normal_end_chunk(struct output_file *out)
544 void output_file_close(struct output_file *out)
552 static int output_file_init(struct output_file *out, int block_size,
615 static struct output_file *output_file_new_gz(void)
628 static struct output_file *output_file_new_normal(void)
641 struct output_file *output_file_open_callback(int (*write)(void *, const void *, int),
667 struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t len,
671 struct output_file *out;
691 int write_data_chunk(struct output_file *out, unsigned int len, void *data)
697 int write_fill_chunk(struct output_file *out, unsigned int len,
703 int write_fd_chunk(struct output_file *out, unsigned int len,
752 int write_file_chunk(struct output_file *out, unsigned int len,
769 int write_skip_chunk(struct output_file *out, int64_t len)