#ifndef CYGONCE_ISO_SYS_POLL_H #define CYGONCE_ISO_SYS_POLL_H /*======================================================================== // // sys/poll.h // // poll() definitions // //======================================================================== //####COPYRIGHTBEGIN#### // // ------------------------------------------- // The contents of this file are subject to the Red Hat eCos Public License // Version 1.1 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://www.redhat.com/ // // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations under // the License. // // The Original Code is eCos - Embedded Configurable Operating System, // released September 30, 1998. // // The Initial Developer of the Original Code is Red Hat. // Portions created by Red Hat are // Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc. // All Rights Reserved. // ------------------------------------------- // //####COPYRIGHTEND#### //======================================================================== */ /* CONFIGURATION */ #include /* Configuration header */ struct pollfd { int fd; short events; short revents; }; typedef unsigned int nfds_t; #define POLLIN 0x01 #define POLLRDNORM 0x02 #define POLLRDBAND 0x04 #define POLLPRI 0x08 #define POLLOUT 0x10 #define POLLWRNORM POLLOUT #define POLLWRBAND 0x20 #define POLLERR 0x40 #define POLLHUP 0x80 #define POLLNVAL 0x100 __externC int poll(struct pollfd fds[], nfds_t nfds, int timeout); /* ------------------------------------------------------------------- */ #endif /* CYGONCE_ISO_SYS_POLL_H multiple inclusion protection */ /* EOF sys/poll.h */