doc: cross reference umask and sys.stat.umask.

* ext/posix/sys/stat.c (umask): Reference posix.umask.
* lib/posix/compat.lua (umask): Reference posix.sys.stat.umask.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
specs: move stdlib function specs to their own spec-file.

* specs/posix_spec.yaml (abort, getenv, grantpt, mkdtemp, mkstemp)
(openpt, ptsname, realpath, unlockpt, setenv): Move from here...
* specs/posix_stdlib_spec.yaml (abort, getenv, grantpt, mkdtemp)
(mkstemp, openpt, ptsname, realpath, unlockpt, setenv): New file.
...to here.
* specs/specs.mk (specl_SPECS): Add specs/posix_stdlib_spec.yaml.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: bump release number to 33.1.0.

* configure.ac (AC_INIT): Bump release number to 33.1.0.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
slingshot: sync with upstream, for Lua 5.3.x support.

* slingshot: Sync with upstream.
* .travis.yml: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
travis: debug check-local failure.

* .travis.yml (script): Debug check-local failure.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
slingshot: sync with upstream, for travis ownership fixes.

* slingshot: Sync with uptstream.
* .travis.yml: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
maint: add Lua 5.3 to README.md.

* README.md: Add Lua 5.3 reference.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
curses: fix compilation errors when host has no curses library.

* ext/posix/curses/chstr.c: Adjust #ifdef HAVE_CURSES to make
sure there's an emptyg posix_curses_chstr_fns definition.
* ext/posix/curses/window.c: Likewise for
posix_curses_windows_fns.
* ext/posix/curses.h: Likewise for curseslib.
Also move #includes for the above files out of the HAVE_CURSES
guard.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: support separate libsocket.

* configure.ac (LIBSOCKET): Check for a socket funtion carrying
socket library.
* local.mk (ext_posix_posix_la_LDFLAGS): Add $(LIBSOCKET).

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
unistd: stub gethostid for POSIX implementations that dropped it.

* configure.ac (AC_CHECK_FUNCS): Add gethostid.
* ext/posix/unistd.c (Pgethostid): If there is no gethostid on
this host, return an error rather than trying to call it.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
socket: guard AI_ADDRCONFIG definition.

* ext/posix/sys/socket.c (luaopen_posix_sys_socket): For machines
that don't define AI_ADDRCONFIG, wrap the binding in a CPP guard.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
configury: no _XOPEN_SOURCE on QNX.

* configure.ac (POSIX_EXTRA_CPPFLAGS): Don't add _XOPEN_SOURCE on
QNX either.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Fix compilation and runtime on QNX based systems

This patch updates the configuration and implementation allow this
product to compile and build on QNX based platforms. QNX should be
treated like darwin and openbsd in terms of posix compliance, however it
does not support the SystemV msg* interface to message queues.  It does
support the mqueue interface but implementing that is beyond the scope
of this patch.