cctools
copy_stream.h
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef COPY_STREAM_H
9 #define COPY_STREAM_H
10 
11 #include <stdio.h>
12 
13 int copy_stream_to_stream(FILE * input, FILE * output);
14 int copy_stream_to_buffer(FILE * input, char **buffer);
15 int copy_stream_to_fd(FILE * input, int fd);
16 int copy_fd_to_stream(int fd, FILE * output);
17 void copy_fd_pair(int leftin, int leftout, int rightin, int rightout);
18 
19 #endif