ia64/xen-unstable

annotate tools/vnet/libxutil/file_stream.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 9f22db685802
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_ */