ia64/xen-unstable

view tools/vnet/libxutil/file_stream.h @ 5131:3615dfd94bdb

bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)

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