From af95bb77e6932b17c1ad1e3f334595e52113d142 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 23 Feb 2022 20:31:03 +0100 Subject: util.poll: Add support for the poll() API Might be better than select(), more portable than epoll. --- teal-src/util/poll.d.tl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'teal-src/util') 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 -- cgit v1.2.3