Diff

teal-src/util/signal.d.tl @ 11579:ec4f0ec3c0d5

teal: Add type spec for util.signal
author Kim Alvefur <zash@zash.se>
date Thu, 20 May 2021 23:18:29 +0200
child 12627:b8ce0f61855b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/teal-src/util/signal.d.tl	Thu May 20 23:18:29 2021 +0200
@@ -0,0 +1,41 @@
+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