aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/poll.d.tl
blob: 6fce771e621d31f0c671bd1a188e36cf2d84b5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local record state
	enum waiterr
		"timeout"
		"signal"
	end
	add : function (state, number, boolean, boolean) : boolean
	add : function (state, number, boolean, boolean) : nil, string, number
	set : function (state, number, boolean, boolean) : boolean
	set : function (state, number, boolean, boolean) : nil, string, number
	del : function (state, number) : boolean
	del : function (state, number) : nil, string, number
	wait : function (state, number) : number, boolean, boolean
	wait : function (state, number) : nil, string, number
	wait : function (state, number) : nil, waiterr
	getfd : function (state) : number
end

local record lib
	new : function () : state
	ENOENT : number
	EEXIST : number
end

return lib