ia64/xen-unstable

view tools/xfrd/select.h @ 1820:3d4f8eb89670

bitkeeper revision 1.1106.1.2 (40faa780dekT3E5arFwcbQDu1MbX6g)

Cleaned up Xen's instruction emulator.
author kaf24@scramble.cl.cam.ac.uk
date Sun Jul 18 16:38:24 2004 +0000 (2004-07-18)
parents 0e23f01219c6
children
line source
1 #ifndef _XFRD_SELECT_H_
2 #define _XFRD_SELECT_H_
4 /** Set of file descriptors for select.
5 */
6 typedef struct SelectSet {
7 int n;
8 fd_set rd, wr, er;
9 } SelectSet;
11 extern void SelectSet_zero(SelectSet *set);
12 extern void SelectSet_add_read(SelectSet *set, int fd);
13 extern void SelectSet_add_write(SelectSet *set, int fd);
14 extern int SelectSet_select(SelectSet *set, struct timeval *timeout);
16 #endif /* ! _XFRD_SELECT_H_ */