aio: ignore return code of fcntl

Keep coverity happy

Signed-off-by: Steve Bennett <steveb@workware.net.au>
exec, file: set umask before mkstemp

Set umask so that temp files are created with
permissions 0600.

Courtesy of coverity.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: Simplify Jim_GetIndex() for int conversion

This approach avoids a coverity warning

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: Squelch a coverity false positive

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Add test
aio: Fix conflict between onexception and writable

onexecption was using the wrong location

Signed-off-by: Steve Bennett <steveb@workware.net.au>
event.test: Fix test on Haiku

Haiku doesn't seem to trigger the "readable" event
on a connected socket with no data, so use the "writable" event instead
since this seems to work on all platforms.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Add md5 command.
Add base64 command.
Add totp / hotp command for One-Time Password generation.
Add rudimentary tests for md5 and base64.
Add rudimentary ØMQ command.
Remove unused SEND_BUFFER_SIZE define.
Revise and add the modules aes, base64, hex, md5, thotp, z85, zeromq.

This commit includes tests and some examples.
Fixed some memory leaks.
Add some more comments to the zeromq examples.
Add support for DEALER, ROUTER and PAIR flag.
Add zeromq inproc example.
Increment reference count on version string.

It seems the version string gets garbage collected otherwise
and `package require foo` returns a currupted version string.
Remove forced version string for compiled extensions.

The package loader handles a missing `package provide` already.
Remove unused defines.