00001 /* 00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin 00003 Copyright (C) 2005- The University of Notre Dame 00004 This software is distributed under the GNU General Public License. 00005 See the file COPYING for details. 00006 */ 00007 00008 #ifndef COPY_STREAM_H 00009 #define COPY_STREAM_H 00010 00011 #include <stdio.h> 00012 00013 int copy_stream_to_stream( FILE *input, FILE *output ); 00014 int copy_stream_to_buffer( FILE *input, char **buffer ); 00015 int copy_stream_to_fd( FILE *input, int fd ); 00016 int copy_fd_to_stream( int fd, FILE *output ); 00017 void copy_fd_pair( int leftin, int leftout, int rightin, int rightout ); 00018 00019 #endif