view tools/security/secpol_compat.h @ 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
line source
1 /* secpol_compat.h
2 * 'translates' data types necessary to
3 * include <xen/acm.h>
4 */
5 #include <stdint.h>
7 typedef uint8_t u8;
8 typedef uint16_t u16;
9 typedef uint32_t u32;
10 typedef uint64_t u64;
11 typedef int8_t s8;
12 typedef int16_t s16;
13 typedef int32_t s32;
14 typedef int64_t s64;