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$
25 */
26
27
28 #ifndef _IBCS2_POLL_H
29 #define _IBCS2_POLL_H 1
30
31 /* iBCS2 poll commands */
32 #define IBCS2_POLLIN 0x0001
33 #define IBCS2_POLLPRI 0x0002
34 #define IBCS2_POLLOUT 0x0004
35 #define IBCS2_POLLERR 0x0008
36 #define IBCS2_POLLHUP 0x0010
37 #define IBCS2_POLLNVAL 0x0020
38 #define IBCS2_POLLRDNORM 0x0040
39 #define IBCS2_POLLWRNORM 0x0004
40 #define IBCS2_POLLRDBAND 0x0080
41 #define IBCS2_POLLWRBAND 0x0100
42 #define IBCS2_READPOLL (IBCS2_POLLIN|IBCS2_POLLRDNORM|IBCS2_POLLRDBAND)
43 #define IBCS2_WRITEPOLL (IBCS2_POLLOUT|IBCS2_POLLWRNORM|IBCS2_POLLWRBAND)
44
45 struct ibcs2_poll {
46 int fd;
47 short events;
48 short revents;
49 };
50
51 #endif /* _IBCS2_POLL_H */
Cache object: bb30748c5d0e41a5f51fff28d3b78d22
|