ia64/xen-unstable

annotate tools/vnet/libxutil/file_stream.h @ 5132:9f22db685802

bitkeeper revision 1.1536 (429399e9qNO_CnmTploLs7q5t-754Q)

Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
author cl349@firebug.cl.cam.ac.uk
date Tue May 24 21:17:29 2005 +0000 (2005-05-24)
parents 3615dfd94bdb
children
rev   line source
cl349@5131 1 /*
cl349@5131 2 * Copyright (C) 2001 - 2004 Mike Wray <mike.wray@hp.com>
cl349@5131 3 *
cl349@5131 4 * This library is free software; you can redistribute it and/or modify
cl349@5131 5 * it under the terms of the GNU Lesser General Public License as published by
cl349@5131 6 * the Free Software Foundation; either version 2.1 of the License, or
cl349@5131 7 * (at your option) any later version.
cl349@5131 8 *
cl349@5131 9 * This library is distributed in the hope that it will be useful,
cl349@5131 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cl349@5131 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cl349@5131 12 * GNU Lesser General Public License for more details.
cl349@5131 13 *
cl349@5131 14 * You should have received a copy of the GNU Lesser General Public License
cl349@5131 15 * along with this library; if not, write to the Free Software
cl349@5131 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cl349@5131 17 */
cl349@5131 18
cl349@5131 19 #ifndef _XUTIL_FILE_STREAM_H_
cl349@5131 20 #define _XUTIL_FILE_STREAM_H_
cl349@5131 21
cl349@5131 22 #ifndef __KERNEL__
cl349@5131 23 #include "iostream.h"
cl349@5131 24 #include <stdio.h>
cl349@5131 25
cl349@5131 26 extern IOStream *file_stream_new(FILE *f);
cl349@5131 27 extern IOStream *file_stream_fopen(const char *file, const char *flags);
cl349@5131 28 extern IOStream *file_stream_fdopen(int fd, const char *flags);
cl349@5131 29 extern IOStream get_stream_stdout(void);
cl349@5131 30 extern IOStream get_stream_stderr(void);
cl349@5131 31 extern IOStream get_stream_stdin(void);
cl349@5131 32
cl349@5131 33 extern int file_stream_setvbuf(IOStream *io, char *buf, int mode, size_t size);
cl349@5131 34 #endif
cl349@5131 35 #endif /* !_XUTIL_FILE_STREAM_H_ */