direct-io.hg

view tools/vnet/vnetd/select.h @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 0a4b76b6b5a0
children 71b0f00f6344
line source
1 /*
2 * Copyright (C) 2003 - 2004 Mike Wray <mike.wray@hp.com>.
3 *
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2.1 of the
7 * License, or (at your option) any later version. This library is
8 * distributed in the hope that it will be useful, but WITHOUT ANY
9 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE.
11 * See the GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17 #ifndef _VFC_SELECT_H_
18 #define _VFC_SELECT_H_
20 /** Set of file descriptors for select.
21 */
22 typedef struct SelectSet {
23 int n;
24 fd_set rd, wr, er;
25 } SelectSet;
27 extern void SelectSet_zero(SelectSet *set);
28 extern void SelectSet_add_read(SelectSet *set, int fd);
29 extern void SelectSet_add_write(SelectSet *set, int fd);
30 extern int SelectSet_select(SelectSet *set, struct timeval *timeout);
32 #endif /* ! _VFC_SELECT_H_ */