ia64/xen-unstable

view tools/libxc/xc_physdev.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 39bfbd5ae9b8
children b3a255e88810
line source
1 /******************************************************************************
2 * xc_physdev.c
3 *
4 * API for manipulating physical-device access permissions.
5 *
6 * Copyright (c) 2004, Rolf Neugebauer (Intel Research Cambridge)
7 * Copyright (c) 2004, K A Fraser (University of Cambridge)
8 */
10 #include "xc_private.h"
12 int xc_physdev_pci_access_modify(int xc_handle,
13 u32 domid,
14 int bus,
15 int dev,
16 int func,
17 int enable)
18 {
19 errno = ENOSYS;
20 return -1;
21 }