#ifndef _POLL_LOADED #define _POLL_LOADED #pragma __nostandard #include #if __CRTL_VER >= 70311000 /**************************************************************************** ** ** - definitions for the poll() function ** ***************************************************************************** ** Header introduced by the X/Open CAE Specification, Issue 4, Version 2 ***************************************************************************** ** ** Copyright 2003 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** */ #ifdef __cplusplus extern "C" { #endif #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 64 #endif /* ** pollfd structure */ struct pollfd { int fd; short events; short revents; }; /* ** Declare type nfds_t used for the number of file descriptors. */ typedef unsigned int nfds_t; /* ** The following symbolic constants may be OR'ed together to form ** the events or revents in the pollfd structure. */ #define POLLIN 01 /* Data other than high-priority data may be read without blocking. */ #define POLLNORM POLLIN /* Legacy - Equivalent to POLLIN */ #define POLLRDNORM 0100 /* Normal data may be read without blocking. */ #define POLLRDBAND 0200 /* Priority data may be read without blocking. */ #define POLLPRI 02 /* High priority data may be read without blocking. */ #define POLLOUT 04 /* Normal data may be written without blocking. */ #define POLLWRNORM POLLOUT /* Equivalent to POLLOUT. */ #define POLLWRBAND 01000 /* Priority data may be written. */ #define POLLERR 010 /* An error has occurred (revents only). */ #define POLLHUP 020 /* Device has been disconnected (revents only). */ #define POLLNVAL 040 /* Invalid fd member (revents only). */ #define INFTIM (-1) /* Infinite poll timeout */ int poll(struct pollfd __fd_array[], nfds_t __nfds, int __timeout); /* ** Restore the user's pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #endif #pragma __standard #endif /* _POLL_LOADED */