Remove so_gencnt and so_gen_t. The generation counter is not used any more.
[dragonfly.git] / sys / emulation / ibcs2 / i386 / ibcs2_poll.h
1 /*
2  * Copyright (c) 1995 Steven Wallace
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. The name of the author may not be used to endorse or promote products
11  *    derived from this software without specific prior written permission
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23  *
24  * $FreeBSD: src/sys/i386/ibcs2/ibcs2_poll.h,v 1.4 1999/08/28 00:43:59 peter Exp $
25  * $DragonFly: src/sys/emulation/ibcs2/i386/Attic/ibcs2_poll.h,v 1.2 2003/06/17 04:28:35 dillon Exp $
26  */
27
28
29 #ifndef _IBCS2_POLL_H
30 #define _IBCS2_POLL_H 1
31
32 /* iBCS2 poll commands */  
33 #define IBCS2_POLLIN            0x0001
34 #define IBCS2_POLLPRI           0x0002
35 #define IBCS2_POLLOUT           0x0004
36 #define IBCS2_POLLERR           0x0008
37 #define IBCS2_POLLHUP           0x0010
38 #define IBCS2_POLLNVAL          0x0020
39 #define IBCS2_POLLRDNORM        0x0040
40 #define IBCS2_POLLWRNORM        0x0004
41 #define IBCS2_POLLRDBAND        0x0080
42 #define IBCS2_POLLWRBAND        0x0100
43 #define IBCS2_READPOLL  (IBCS2_POLLIN|IBCS2_POLLRDNORM|IBCS2_POLLRDBAND)
44 #define IBCS2_WRITEPOLL (IBCS2_POLLOUT|IBCS2_POLLWRNORM|IBCS2_POLLWRBAND)
45
46 struct ibcs2_poll {
47         int fd;
48         short events;
49         short revents;
50 };
51
52 #endif /* _IBCS2_POLL_H */