1poll.h(0P)                 POSIX Programmer's Manual                poll.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       poll.h — definitions for the poll() function
14

SYNOPSIS

16       #include <poll.h>
17

DESCRIPTION

19       The <poll.h> header shall define  the  pollfd  structure,  which  shall
20       include at least the following members:
21
22           int    fd       The following descriptor being polled.
23           short  events   The input event flags (see below).
24           short  revents  The output event flags (see below).
25
26       The <poll.h> header shall define the following type through typedef:
27
28       nfds_t        An  unsigned  integer  type  used  for the number of file
29                     descriptors.
30
31       The implementation shall support one or more  programming  environments
32       in which the width of nfds_t is no greater than the width of type long.
33       The names of these programming environments can be obtained  using  the
34       confstr() function or the getconf utility.
35
36       The <poll.h> header shall define the following symbolic constants, zero
37       or more of which may be OR'ed together to form the  events  or  revents
38       members in the pollfd structure:
39
40       POLLIN        Data  other  than  high-priority data may be read without
41                     blocking.
42
43       POLLRDNORM    Normal data may be read without blocking.
44
45       POLLRDBAND    Priority data may be read without blocking.
46
47       POLLPRI       High priority data may be read without blocking.
48
49       POLLOUT       Normal data may be written without blocking.
50
51       POLLWRNORM    Equivalent to POLLOUT.
52
53       POLLWRBAND    Priority data may be written.
54
55       POLLERR       An error has occurred (revents only).
56
57       POLLHUP       Device has been disconnected (revents only).
58
59       POLLNVAL      Invalid fd member (revents only).
60
61       The significance and semantics of normal, priority,  and  high-priority
62       data are file and device-specific.
63
64       The  following  shall be declared as a function and may also be defined
65       as a macro. A function prototype shall be provided.
66
67           int   poll(struct pollfd [], nfds_t, int);
68
69       The following sections are informative.
70

APPLICATION USAGE

72       None.
73

RATIONALE

75       None.
76

FUTURE DIRECTIONS

78       None.
79

SEE ALSO

81       The System Interfaces volume of POSIX.1‐2008, confstr(), poll()
82
83       The Shell and Utilities volume of POSIX.1‐2008, getconf
84
86       Portions of this text are reprinted and reproduced in  electronic  form
87       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
88       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
89       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
90       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
91       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
92       event of any discrepancy between this version and the original IEEE and
93       The  Open Group Standard, the original IEEE and The Open Group Standard
94       is the referee document. The original Standard can be  obtained  online
95       at http://www.unix.org/online.html .
96
97       Any  typographical  or  formatting  errors that appear in this page are
98       most likely to have been introduced during the conversion of the source
99       files  to  man page format. To report such errors, see https://www.ker
100       nel.org/doc/man-pages/reporting_bugs.html .
101
102
103
104IEEE/The Open Group                  2013                           poll.h(0P)
Impressum