aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-23 20:31:03 +0100
committerKim Alvefur <zash@zash.se>2022-02-23 20:31:03 +0100
commitaf95bb77e6932b17c1ad1e3f334595e52113d142 (patch)
tree0773fdbfbc966235177c828dc08222957f2b9987 /teal-src
parent04aa101da3dc40c92b1c3ce8e3503367d9dcc5f2 (diff)
downloadprosody-af95bb77e6932b17c1ad1e3f334595e52113d142.tar.gz
prosody-af95bb77e6932b17c1ad1e3f334595e52113d142.zip
util.poll: Add support for the poll() API
Might be better than select(), more portable than epoll.
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/poll.d.tl4
1 files changed, 3 insertions, 1 deletions
diff --git a/teal-src/util/poll.d.tl b/teal-src/util/poll.d.tl
index 28fd982b..8df56d57 100644
--- a/teal-src/util/poll.d.tl
+++ b/teal-src/util/poll.d.tl
@@ -17,10 +17,12 @@ end
local record lib
new : function () : state
- ENOENT : integer
EEXIST : integer
+ EMFILE : integer
+ ENOENT : integer
enum api_backend
"epoll"
+ "poll"
"select"
end
api : api_backend