ia64/xen-unstable

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/vnet/libxutil/file_stream.h	Tue May 24 21:17:29 2005 +0000
     1.3 @@ -0,0 +1,35 @@
     1.4 +/*
     1.5 + * Copyright (C) 2001 - 2004 Mike Wray <mike.wray@hp.com>
     1.6 + *
     1.7 + * This library is free software; you can redistribute it and/or modify
     1.8 + * it under the terms of the GNU Lesser General Public License as published by
     1.9 + * the Free Software Foundation; either version 2.1 of the License, or
    1.10 + * (at your option) any later version.
    1.11 + *
    1.12 + * This library is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 + * GNU Lesser General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU Lesser General Public License
    1.18 + * along with this library; if not, write to the Free Software
    1.19 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.20 + */
    1.21 +
    1.22 +#ifndef _XUTIL_FILE_STREAM_H_
    1.23 +#define _XUTIL_FILE_STREAM_H_
    1.24 +
    1.25 +#ifndef __KERNEL__
    1.26 +#include "iostream.h"
    1.27 +#include <stdio.h>
    1.28 +
    1.29 +extern IOStream *file_stream_new(FILE *f);
    1.30 +extern IOStream *file_stream_fopen(const char *file, const char *flags);
    1.31 +extern IOStream *file_stream_fdopen(int fd, const char *flags);
    1.32 +extern IOStream get_stream_stdout(void);
    1.33 +extern IOStream get_stream_stderr(void);
    1.34 +extern IOStream get_stream_stdin(void);
    1.35 +
    1.36 +extern int file_stream_setvbuf(IOStream *io, char *buf, int mode, size_t size);
    1.37 +#endif
    1.38 +#endif /* !_XUTIL_FILE_STREAM_H_ */