select: Wrap the select(2) POSIX function
While tinkering on a project, I frequently found myself
having to make FFI calls to
select(2). This package provides an interface to that system call.
Changes in version 0.4:
Introduce an interface to
Add functions with various amounts of abstraction; in particular,
selectin previous versions.
select(2)in case of interruption by signals.
Remove dependence on the vector package.
Behavior with write and exception file descriptors is under-tested. Feedback is welcome.
This package is far from complete, and should be tested throughly before being relied upon.
Return the error code specified by errno if
Possibly move the select retry code from C to Haskell.
Reorder functions to make the documentation more logical.
Use hsc2hs's #const to get preprocessor constants (removes some of FdSet's cbits.c).
NOTE: I feel I'm occupying prime namespace realestate with a package name like select. I'll happily let myself be chased away if someone more qualified wants to use this package name. Let me know.
|Versions||0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.0.1|
|Dependencies||base (==4.*) [details]|
|Copyright||2012 Gard Spreemann|
|Maintainer||Gard Spreemann <firstname.lastname@example.org>|
|Uploaded||by GardSpreemann at Sun Oct 7 13:01:57 UTC 2012|
|Downloads||2611 total (66 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI
For package maintainers and hackage trustees