1poll.h(3HEAD)                       Headers                      poll.h(3HEAD)
2
3
4

NAME

6       poll.h, poll - definitions for the poll() function
7

SYNOPSIS

9       #include <poll.h>
10
11

DESCRIPTION

13       The  <poll.h>  header  defines the pollfd structure, which includes the
14       following members:
15
16       int fd           the following descriptor being polled
17
18
19       short events     the input event flags (see below)
20
21
22       short revents    the output event flags (see below)
23
24
25
26       The <poll.h> header defines the following type through typedef:
27
28       nfds_t    an unsigned integer type used for the number of file descrip‐
29                 tors
30
31
32
33       The  implementation  supports  one  or more programming environments in
34       which the width of nfds_t is no greater than the width  of  type  long.
35       The  names  of these programming environments can be obtained using the
36       confstr() function or the getconf utility.  See  confstr(3C)  and  get‐
37       conf(1).
38
39
40       The following symbolic constants are defined, zero or more of which can
41       be OR'ed together to form the events or revents members  in the  pollfd
42       structure:
43
44       POLLIN        Data  other  than  high-priority data can be read without
45                     blocking.
46
47
48       POLLRDNORM    Normal data can be read without blocking.
49
50
51       POLLRDBAND    Priority data can be read without blocking.
52
53
54       POLLPRI       High priority data can be read without blocking.
55
56
57       POLLOUT       Normal data can be written without blocking.
58
59
60       POLLWRNORM    Equivalent to POLLOUT.
61
62
63       POLLWRBAND    Priority data can be written.
64
65
66       POLLERR       An error has occurred (revents only).
67
68
69       POLLHUP       Device has been disconnected (revents only).
70
71
72       POLLNVAL      Invalid fd member (revents only).
73
74
75
76       The significance and semantics of normal, priority,  and  high-priority
77       data are file and device-specific.
78

ATTRIBUTES

80       See attributes(5) for descriptions of the following attributes:
81
82
83
84
85       ┌─────────────────────────────┬─────────────────────────────┐
86       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
87       ├─────────────────────────────┼─────────────────────────────┤
88       │Interface Stability          │Standard                     │
89       └─────────────────────────────┴─────────────────────────────┘
90

SEE ALSO

92       getconf(1), poll(2), confstr(3C), attributes(5), standards(5)
93
94
95
96SunOS 5.11                        9 Sep 2004                     poll.h(3HEAD)
Impressum