aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2007-12-24 06:52:34 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2007-12-24 06:52:34 -0500
commitad18b27eefc2caa293d0b0c114f72a9a86686c36 (patch)
tree07656c688ba1c3008247ac5d598ee9a906e20cdf
parent10b870085b4d99e107ef0d68eb0c35031a5a8d93 (diff)
downloadluasignal-ad18b27eefc2caa293d0b0c114f72a9a86686c36.tar.gz
luasignal-ad18b27eefc2caa293d0b0c114f72a9a86686c36.zip
document available functions
-rw-r--r--src/signal.luadoc39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/signal.luadoc b/src/signal.luadoc
new file mode 100644
index 0000000..f5767c8
--- /dev/null
+++ b/src/signal.luadoc
@@ -0,0 +1,39 @@
+---
+-- LuaSignal - Signal handling library for Lua 5.1
+module "signal"
+---
+-- Set a signal handler.
+-- @param signal String name of the signal to be handled (i.e. INT, ALRM)
+-- @param handler Function to be called when the signal is received. Also, the
+-- string "ignore" can be passed to cause the signal to be
+-- ignored, "default" to cause the signal to use Lua's default
+-- handler, and "cdefault" to cause the signal to use your
+-- system's default behavior (since Lua overrides some signal
+-- handlers to provide things like error messages and stack
+-- traces)
+function signal(signal, handler)
+---
+-- Pause program execution for a given amount of time. This is a thin wrapper
+-- around the alarm() POSIX function.
+-- @param signal String name of the signal to be handled (i.e. INT, ALRM)
+-- @return See your system's man page for the alarm() function
+function alarm(signal)
+---
+-- Send a signal to a process. This is a thin wrapper around the kill() POSIX
+-- function.
+-- @param pid PID of the process to receive the signal
+-- @param signal String name of the signal to be handled (i.e. INT, ALRM)
+-- @return See your system's man page for the kill() function
+function kill(pid, signal)
+---
+-- Send a signal to the current process. This is a thin wrapper around the
+-- raise() POSIX function.
+-- @param signal String name of the signal to be handled (i.e. INT, ALRM)
+-- @return See your system's man page for the raise() function
+function raise(signal)
+---
+-- Currently untested. Do not use.
+function suspend()
+---
+-- Currently untested. Do not use.
+function mask()