teal-src/util/signal.d.tl
author Kim Alvefur <zash@zash.se>
Mon, 16 Aug 2021 12:45:14 +0200
changeset 11746 9c450185bac1
parent 11583 ec4f0ec3c0d5
child 12631 b8ce0f61855b
permissions -rw-r--r--
mod_c2s,mod_s2s: Fire event just before writes Could allow e.g. a XEP-0198 implementation to efficiently send ack requests at optimal times without using timers or nextTick.

local record lib
	enum signal
		"SIGABRT"
		"SIGALRM"
		"SIGBUS"
		"SIGCHLD"
		"SIGCLD"
		"SIGCONT"
		"SIGFPE"
		"SIGHUP"
		"SIGILL"
		"SIGINT"
		"SIGIO"
		"SIGIOT"
		"SIGKILL"
		"SIGPIPE"
		"SIGPOLL"
		"SIGPROF"
		"SIGQUIT"
		"SIGSEGV"
		"SIGSTKFLT"
		"SIGSTOP"
		"SIGSYS"
		"SIGTERM"
		"SIGTRAP"
		"SIGTTIN"
		"SIGTTOU"
		"SIGURG"
		"SIGUSR1"
		"SIGUSR2"
		"SIGVTALRM"
		"SIGWINCH"
		"SIGXCPU"
		"SIGXFSZ"
	end
	signal : function (integer | signal, function, boolean) : boolean
	raise : function (integer | signal)
	kill : function (integer, integer | signal)
	-- enum : integer
end
return lib