15int64_t copy_fd_to_fd(
int in,
int out);
16int64_t copy_fd_to_stream(
int fd, FILE *output);
18int64_t copy_file_to_file(
const char *input,
const char *output);
19int64_t copy_file_to_buffer(
const char *path,
char **
buffer,
size_t *len);
21int64_t copy_stream_to_buffer(FILE *input,
char **
buffer,
size_t *len);
22int64_t copy_stream_to_fd(FILE *input,
int fd);
23int64_t copy_stream_to_stream(FILE *input, FILE *output);