ia64/xen-unstable

view tools/libxc/xc_ia64_stubs.c @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 06d84bf87159
children c03dc328bf3a b3a255e88810
line source
1 #include "xg_private.h"
2 #include "xenguest.h"
4 int xc_linux_save(int xc_handle, int io_fd, u32 dom, u32 max_iters,
5 u32 max_factor, u32 flags)
6 {
7 PERROR("xc_linux_save not implemented\n");
8 return -1;
9 }
11 int xc_linux_restore(int xc_handle, int io_fd, u32 dom, unsigned long nr_pfns,
12 unsigned int store_evtchn, unsigned long *store_mfn,
13 unsigned int console_evtchn, unsigned long *console_mfn)
14 {
15 PERROR("xc_linux_restore not implemented\n");
16 return -1;
17 }
19 int xc_vmx_build(int xc_handle,
20 u32 domid,
21 int memsize,
22 const char *image_name,
23 struct mem_map *mem_mapp,
24 const char *ramdisk_name,
25 const char *cmdline,
26 unsigned int control_evtchn,
27 unsigned long flags,
28 unsigned int vcpus,
29 unsigned int store_evtchn,
30 unsigned long *store_mfn)
31 {
32 PERROR("xc_vmx_build not implemented\n");
33 return -1;
34 }
36 int
37 xc_plan9_build(int xc_handle,
38 u32 domid,
39 const char *image_name,
40 const char *cmdline,
41 unsigned int control_evtchn, unsigned long flags)
42 {
43 PERROR("xc_plan9_build not implemented\n");
44 return -1;
45 }
47 /*
48 * Local variables:
49 * mode: C
50 * c-set-style: "BSD"
51 * c-basic-offset: 4
52 * tab-width: 4
53 * indent-tabs-mode: nil
54 * End:
55 */