5755899 [rkeene@sledge /home/rkeene/devel/cygwin-stuff/cyg-root/usr/include/sys]$ cat -n poll.h
 1 /* sys/poll.h
 2 
 3    Copyright 2000 Cygnus Solutions.
 4 
 5    This file is part of Cygwin.
 6 
 7    This software is a copyrighted work licensed under the terms of the
 8    Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
 9    details. */
10 
11 #ifndef _SYS_POLL_H
12 #define _SYS_POLL_H
13 
14 #include <sys/cdefs.h>
15 
16 __BEGIN_DECLS
17 
18 #define POLLIN  1       /* Set if data to read. */
19 #define POLLPRI 2       /* Set if urgent data to read. */
20 #define POLLOUT 4       /* Set if writing data wouldn't block. */
21 #define POLLERR   8     /* An error occured. */
22 #define POLLHUP  16     /* Shutdown or close happened. */
23 #define POLLNVAL 32     /* Invalid file descriptor. */
24 
25 #define NPOLLFILE 64    /* Number of canonical fd's in one call to poll(). */
26 
27 /* The following values are defined by XPG4. */
28 #define POLLRDNORM POLLIN
29 #define POLLRDBAND POLLPRI
30 #define POLLWRNORM POLLOUT
31 #define POLLWRBAND POLLOUT
32 
33 struct pollfd {
34   int fd;
35   short events;
36   short revents;
37 };
38 
39 extern int poll __P ((struct pollfd *fds, unsigned int nfds, int timeout));
40 
41 __END_DECLS
42 
43 #endif /* _SYS_POLL_H */
5755900 [rkeene@sledge /home/rkeene/devel/cygwin-stuff/cyg-root/usr/include/sys]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2001-01-31 15:09:11