1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #ifndef _SYS_LX_POLL_H 27 #define _SYS_LX_POLL_H 28 29 #pragma ident "%Z%%M% %I% %E% SMI" 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /* 36 * These events are identical between Linux and Solaris 37 */ 38 #define LX_POLLIN 0x001 39 #define LX_POLLPRI 0x002 40 #define LX_POLLOUT 0x004 41 #define LX_POLLERR 0x008 42 #define LX_POLLHUP 0x010 43 #define LX_POLLNVAL 0x020 44 #define LX_POLLRDNORM 0x040 45 #define LX_POLLRDBAND 0x080 46 47 #define LX_POLL_COMMON_EVENTS (LX_POLLIN | LX_POLLPRI | LX_POLLOUT | \ 48 LX_POLLERR | LX_POLLHUP | LX_POLLNVAL | LX_POLLRDNORM | LX_POLLRDBAND) 49 50 /* 51 * These events differ between Linux and Solaris 52 */ 53 #define LX_POLLWRNORM 0x100 54 #define LX_POLLWRBAND 0x200 55 56 #define LX_POLL_SUPPORTED_EVENTS \ 57 (LX_POLL_COMMON_EVENTS | LX_POLLWRNORM | LX_POLLWRBAND) 58 59 #ifdef __cplusplus 60 } 61 #endif 62 63 #endif /* _SYS_LX_POLL_H */