Changeset 745 for trunk/server/lib/replace/system/select.h
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/replace/system/select.h
r414 r745 39 39 #endif 40 40 41 #ifdef HAVE_POLL 42 43 #include <poll.h> 44 45 #else 46 47 /* Type used for the number of file descriptors. */ 48 typedef unsigned long int nfds_t; 49 50 /* Data structure describing a polling request. */ 51 struct pollfd 52 { 53 int fd; /* File descriptor to poll. */ 54 short int events; /* Types of events poller cares about. */ 55 short int revents; /* Types of events that actually occurred. */ 56 }; 57 58 /* Event types that can be polled for. These bits may be set in `events' 59 to indicate the interesting event types; they will appear in `revents' 60 to indicate the status of the file descriptor. */ 61 #define POLLIN 0x001 /* There is data to read. */ 62 #define POLLPRI 0x002 /* There is urgent data to read. */ 63 #define POLLOUT 0x004 /* Writing now will not block. */ 64 #define POLLRDNORM 0x040 /* Normal data may be read. */ 65 #define POLLRDBAND 0x080 /* Priority data may be read. */ 66 #define POLLWRNORM 0x100 /* Writing now will not block. */ 67 #define POLLWRBAND 0x200 /* Priority data may be written. */ 68 #define POLLERR 0x008 /* Error condition. */ 69 #define POLLHUP 0x010 /* Hung up. */ 70 #define POLLNVAL 0x020 /* Invalid polling request. */ 71 72 /* define is in "replace.h" */ 73 int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout); 74 41 75 #endif 76 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.