This is an alarm library for Lua. It depends on alarm, signal, and SIGALRM,
which should be available in any POSIX system. See for instance`
	http://www.opengroup.org/onlinepubs/009695399/functions/alarm.html

To build the library and run a simple test, just do make.
If Lua is not installed in /usr/local, tell make:
	make LUA_TOPDIR=/var/tmp/lhf/lua-5.3.5/install

To install the library where Lua can find it, use a variant of these:
	make install
	sudo make install
	sudo make install LIBDIR=/usr/local/lib/lua/5.3

For detailed installation instructions, see
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

The library exports a single function, alarm(s,f), which tells Lua to call
f after s seconds have elapsed. This is done only once. If you want f to
be called every s seconds, call alarm(s) inside f. Call alarm() without
arguments or with s=0 to cancel any pending alarm.  Read test.lua to see
the library in action.

This code is hereby placed in the public domain and also under the MIT license.

Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

alarm library:
alarm([secs,[func]])
