ia64/xen-unstable

view tools/xfrd/select.h @ 2422:2274a0386cc9

bitkeeper revision 1.1159.69.5 (4138e882jA1YaR_OfTfNHe_uT4PDIg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Fri Sep 03 21:56:18 2004 +0000 (2004-09-03)
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_ */