2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module stdc.posix.poll;
11 private import stdc.posix.config;
39 int poll(pollfd[], nfds_t, int);
54 const POLLRDNORM = 0x040;
55 const POLLRDBAND = 0x080;
56 const POLLPRI = 0x002;
57 const POLLOUT = 0x004;
58 const POLLWRNORM = 0x100;
59 const POLLWRBAND = 0x200;
60 const POLLERR = 0x008;
61 const POLLHUP = 0x010;
62 const POLLNVAL = 0x020;
64 int poll(pollfd*, nfds_t, int);
66 else version( darwin )
94 POLLSTANDARD = (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|
95 POLLWRBAND|POLLERR|POLLHUP|POLLNVAL)
98 int poll(pollfd*, nfds_t, int);
100 else version( freebsd )
117 POLLWRNORM = POLLOUT,
120 //POLLEXTEND = 0x0200,
121 //POLLATTRIB = 0x0400,
122 //POLLNLINK = 0x0800,
123 //POLLWRITE = 0x1000,
128 POLLSTANDARD = (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|
129 POLLWRBAND|POLLERR|POLLHUP|POLLNVAL)
132 int poll(pollfd*, nfds_t, int);