|
System.Posix.Poll | Portability | Haskell 2-pre | Stability | provisional | Maintainer | simons@cryp.to |
|
|
|
Description |
A foreign function interface to the POSIX system call
poll(2). Your program should link the threaded
runtime-system when using this module in blocking
fashion.
|
|
Synopsis |
|
|
|
Documentation |
|
|
The marshaled version of:
struct pollfd
{
int fd; /* file descriptor */
short events; /* requested events */
short revents; /* returned events */
};
| Constructors | | Instances | |
|
|
|
Marshaled Enum representing the various poll(2)
flags.
| Constructors | PollIn | there is data to read
| PollPri | there is urgent data to read
| PollOut | writing now will not block
| PollErr | error condition
| PollHup | hung up
| PollNVal | invalid request: fd not open
|
| Instances | |
|
|
|
The system routine poll(2) may block, obviously; so it
is declared as a "safe" FFI call. In the threaded
runtime-system, this means that a blocking invocation of
poll will not block any other execution threads. Thus,
you should link your programs with -threaded when you
use this module. Further details can be found at
http://www.haskell.org//pipermail/glasgow-haskell-users/2005-February/007762.html.
In the non-threaded runtime-system, using poll in
blocking fashion will block all other threads too.
|
|
Produced by Haddock version 2.4.2 |