Blame ChangeLog

Packit 437b5e
2015-03-01  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Release version 33.3.1
Packit 437b5e
	* NEWS.md: Record release date.
Packit 437b5e
Packit 437b5e
	configury: bump release version to 33.3.1.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release version to 33.3.1.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	posix: fix a stupid cherry pick edit typo.
Packit 437b5e
	* lib/posix.lua.in (popen_pipeline): Add comma after close.
Packit 437b5e
Packit 437b5e
2015-03-01  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix: add missing locals before pclose and popen_pipeline.
Packit 437b5e
	* lib/posix.lua.in (pclose, popen_pipeline): Make sure to import
Packit 437b5e
	API module table entries into locals for easier refactoring if
Packit 437b5e
	these functions are moved in a future revision.
Packit 437b5e
Packit 437b5e
	posix: remove ability to pass a simple string to execx.
Packit 437b5e
	* specs/posix_spec.yaml (execx, spawn, popen): Adjust to exercise
Packit 437b5e
	new behaviours with no special support for string arguments.
Packit 437b5e
	* lib/posix.lua.in (execx, spawn, popen): Remove special support
Packit 437b5e
	for string arguments.
Packit 437b5e
Packit 437b5e
	posix: remove obsolete `posix.system` alias.
Packit 437b5e
	* lib/posix.lua.in (system): Remove.
Packit 437b5e
	* NEWS.md (Incompatible Changes): Update.
Packit 437b5e
Packit 437b5e
2015-03-01  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: installcheck setup.
Packit 437b5e
	To prevent a repeat of the unloadable 33.3.0 release, set up
Packit 437b5e
	specs so that latest slingshot will rerun the specs against both
Packit 437b5e
	configure and luarocks installed luaposix.
Packit 437b5e
	* specs/posix_spec.yaml (posix.version): Move from here...
Packit 437b5e
	* specs/posix_version_spec.yaml (version): ...to here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_version_spec.yaml.
Packit 437b5e
	* specs/spec_helper.lua: Check for installcheck in the environment
Packit 437b5e
	before tweaking Lua paths to point at build tree.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for installcheck support.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2015-02-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	local.mk: install posix/init.lua under posix
Packit 437b5e
Packit 437b5e
2015-02-28  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 33.3.0
Packit 437b5e
	* NEWS.md: Record release date.
Packit 437b5e
Packit 437b5e
	configury: bump release version to 33.3.0.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release version to 33.3.0.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
	* NEWS.md: Fix a small typo.
Packit 437b5e
Packit 437b5e
	maint: update .gitignore.
Packit 437b5e
	* .gitignore: add lib/posix/init.lua.
Packit 437b5e
Packit 437b5e
	maint: workaround LuaRocks install manifest key clash.
Packit 437b5e
	LuaRocks install manifest cannot store two files with the same
Packit 437b5e
	key.
Packit 437b5e
	* configure.ac (AC_CONFIG_FILES): Expand lib/posix.lua.in to
Packit 437b5e
	lib/posix/init.lua for installation.
Packit 437b5e
	* build-aux/config.ld.in (file): Adjust accordingly.
Packit 437b5e
	* local.mk (dist_lua_DATA): Likewise.
Packit 437b5e
	* NEWS.md (Bugs Fixed): Update.
Packit 437b5e
	Workaround suggested by quae@daurnimator.com
Packit 437b5e
Packit 437b5e
	configury: don't forget to distribute compat-5.2.{c,h}.
Packit 437b5e
	* local.mk (EXTRA_DIST): Add ext/include/compat-5.2.c and
Packit 437b5e
	ext/include/compat-5.2.h.
Packit 437b5e
Packit 437b5e
2015-02-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	rockspec.conf: remove bogus constraint on bit32 version
Packit 437b5e
Packit 437b5e
2015-02-28  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream for distcheck fixes.
Packit 437b5e
	* slingshot: Sync with upstream again.
Packit 437b5e
Packit 437b5e
2015-02-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: Sync with upstream for Travis Lua 5.3 build fixes.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	maint: exclude compat-5.2 sources from assorted syntax checks.
Packit 437b5e
	* build-aux/sanity-cfg.mk
Packit 437b5e
	(exclude_file_name_regexp--sc_require_config_h)
Packit 437b5e
	(exclude_file_name_regexp--sc_require_config_h_first)
Packit 437b5e
	(exclude_file_name_regexp--sc_useless_cpp_parens): Add
Packit 437b5e
	ext/include/compat-5.2.c.
Packit 437b5e
	(exclude_file_name_regexp--sc_useless_cpp_parens): Add
Packit 437b5e
	ext/include/compat-5.2.h.
Packit 437b5e
	* ext/include/compat-5.2.c, ext/include/compat-5.2.h: Remove
Packit 437b5e
	trailing empty lines.
Packit 437b5e
Packit 437b5e
	maint: don't trigger error-message-uppercase in stdlib.c.
Packit 437b5e
	* build-aux/sanity-cfg.mk
Packit 437b5e
	(exclude_file_name_regexp--sc_error_message_uppercase): Add
Packit 437b5e
	ext/posix/stdlib.c.
Packit 437b5e
Packit 437b5e
	specs: expect portable wc command output format.
Packit 437b5e
	BSD and Mac OS X `wc` indent the output from `wc`.
Packit 437b5e
	* specs/posix_spec.yaml (popen_pipeline): Allow leading whitespace
Packit 437b5e
	in wc output.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for --libdir fix.
Packit 437b5e
	Close #210
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
Packit 437b5e
2015-02-27  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #213 from luaposix/remove-pipeline
Packit 437b5e
	Remove pipeline
Packit 437b5e
Packit 437b5e
	NEWS.md: add recent changes
Packit 437b5e
Packit 437b5e
	posix: remove pipline, pipeline_iterator and pipeline_slurp
Packit 437b5e
	These functions were experimental and only briefly documented. They are
Packit 437b5e
	replaced by the popen family.
Packit 437b5e
Packit 437b5e
	NEWS.md: fix some formatting
Packit 437b5e
Packit 437b5e
2015-02-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix: add popen, popen_pipeline, and execx.
Packit 437b5e
	* specs/posix_spec.yaml (popen, popen_pipeline): Specify
Packit 437b5e
	correct behaviours for these new functions.
Packit 437b5e
	* lib/posix.lua.in (popen, popen_pipeline, execx): New functions.
Packit 437b5e
Packit 437b5e
2015-02-26  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #211 from luaposix/fdopen
Packit 437b5e
	Fdopen
Packit 437b5e
Packit 437b5e
2015-02-25  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #206 from luaposix/remove-builtin-bit32
Packit 437b5e
	build: remove posix.bit32
Packit 437b5e
Packit 437b5e
2015-02-21  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add fdopen
Packit 437b5e
	Uses luaL_Stream; we rely on compat-lua-5.2 to make this work on Lua 5.1
Packit 437b5e
	and LuaJIT.
Packit 437b5e
Packit 437b5e
2015-02-19  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Build Lua 5.3 with 5.2 compatibility
Packit 437b5e
	Needs -DLUA_COMPAT_5_2, just as 5.2 needs -DLUA_COMPAT_ALL
Packit 437b5e
Packit 437b5e
	Build Lua 5.3 with 5.2 compatibility
Packit 437b5e
	Needs -DLUA_COMPAT_5_2, just as 5.2 needs -DLUA_COMPAT_ALL
Packit 437b5e
Packit 437b5e
	build: remove posix.bit32
Packit 437b5e
	Close #204 again, removing posix.bit32 in favour of a rockspec
Packit 437b5e
	dependency, which will use the built-in library in Lua >= 5.2, or the
Packit 437b5e
	backported rock in Lua 5.1
Packit 437b5e
Packit 437b5e
2015-02-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Merge branch 'sparked435-master'
Packit 437b5e
Packit 437b5e
	curses: support linking against NetBSD curses.
Packit 437b5e
	* ext/include/_helpers.c (LPOSIX_CURSES_COMPLIANT): Leave this
Packit 437b5e
	unset on NetBSD, unless linked against ncurses.
Packit 437b5e
	(binding_notimplemented): New function for returning a `nil`,
Packit 437b5e
	"not implemented" error pair from an unbound function...
Packit 437b5e
	* ext/posix/stdlib.c (mkdtemp): ...factored out of here.  Adjust
Packit 437b5e
	accordingly.
Packit 437b5e
	* ext/posix/curses.c (Presizeterm): Use it here too.
Packit 437b5e
	(Pripoffline, Pslk_init, Pslk_refresh, Pslk_noutrefresh)
Packit 437b5e
	(Pslk_label, pslk_clear, Pslk_restore, Pslk_touch)
Packit 437b5e
	(Pslk_attron, Pslk_attroff, Pslk_attrset): Use it here When
Packit 437b5e
	LPOSIX_CURSES_COMPLIANT is not set.
Packit 437b5e
	* ext/posix/curses/window.c (Wsyncok, Wimmedok): Likewise.
Packit 437b5e
	* NEWS.md (New Features): Update.
Packit 437b5e
Packit 437b5e
2015-02-17  aaron  <aaron@polygon.zs-zero.net>
Packit 437b5e
Packit 437b5e
	Workarounds for missing NetBSD curses functions.
Packit 437b5e
Packit 437b5e
2015-02-16  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	curses: remove unusable KEY_MOUSE constant.
Packit 437b5e
	* ext/posix/curses.c (register_curses_constants): Comment out
Packit 437b5e
	KEY_MOUSE, along with a comment to remind us not to reintroduce
Packit 437b5e
	it again later!
Packit 437b5e
	* NEWS.md (Incompatible Changes): Update.
Packit 437b5e
Packit 437b5e
	dirent: throw a Lua error when called with non-existent path.
Packit 437b5e
	Close #207.
Packit 437b5e
	* specs/posix_dirent_spec.yaml: New file. Specify correct
Packit 437b5e
	behaviours, paying special attention to throwing an error when
Packit 437b5e
	called with a non-existent path.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_dirent_spec.yaml.
Packit 437b5e
	* ext/posix/dirent.c (Pdir): Check for errors when opening
Packit 437b5e
	path argument, and throw an error if necessary.
Packit 437b5e
	(pfiles): Likewise.
Packit 437b5e
	* examples/dir.lua: Adjust accordingly.
Packit 437b5e
	* NEWS.md (Bugs Fixed): Update.
Packit 437b5e
	Reported by Ingo Struck <web@ingostruck.de>
Packit 437b5e
Packit 437b5e
2015-02-11  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	doc: rationale for posix.bit32 inclusion.
Packit 437b5e
	Close #204
Packit 437b5e
	* ext/posix/bit32.c: Add LDocs to explain why we have yet another
Packit 437b5e
	bit twiddling functions module here in luaposix.
Packit 437b5e
Packit 437b5e
	Merge branch 'zevv-getsockname'
Packit 437b5e
Packit 437b5e
2015-02-11  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Merge branch 'getsockname' of https://github.com/zevv/luaposix into zevv-getsockname
Packit 437b5e
	* specs/posix_sys_socket_spec.yaml (getsockname): Specify bad
Packit 437b5e
	argument behaviours minimally.
Packit 437b5e
	* ext/posix/sys/socket.c (getsockname): Port forward to latest
Packit 437b5e
	helpers and conventions.  Fix LDocs.
Packit 437b5e
	* examples/socket.lua: Port forward additional getsockname call.
Packit 437b5e
	* NEWS.md (New features): Update.
Packit 437b5e
Packit 437b5e
Packit 437b5e
	Conflicts:
Packit 437b5e
		examples/socket.lua
Packit 437b5e
		ext/posix/posix.c
Packit 437b5e
Packit 437b5e
2015-02-11  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added getsockname() to examples/socket.lua
Packit 437b5e
Packit 437b5e
	Added getsockname
Packit 437b5e
Packit 437b5e
2015-01-31  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	signal: workaround a printf long vs int type coercion issue.
Packit 437b5e
	* ext/posix/signal.c (sig_handle): Some architectures use a long
Packit 437b5e
	for sig_atomic_t, so we need a %ld specifier to display it without
Packit 437b5e
	a warning.  In case sig_atomic_t is narrower than a long, cast it
Packit 437b5e
	up before passing to fprintf.
Packit 437b5e
Packit 437b5e
	sys.socket: move sys/types.h include earlier.
Packit 437b5e
	* ext/posix/sys/socket.c: netinet/udp.h complains about lack of
Packit 437b5e
	u_short definition on FreeBSD 10, so move sys/types.h before it
Packit 437b5e
	in the hope of fixing that.
Packit 437b5e
	Reported by jeangit@github.
Packit 437b5e
Packit 437b5e
	sys.resource: add ifdef guards to RLIM_SAVED_CUR and RLIM_SAVED_MAX.
Packit 437b5e
	* ext/posix/sys/resource.c (luaopen_posix_sys_resource): Add
Packit 437b5e
	ifdef guards around RLIM_SAVED_CUR and RLIM_SAVED_MAX declarations,
Packit 437b5e
	because FreeBSD 10 does not provide them.
Packit 437b5e
	Reported by jeangit@github.
Packit 437b5e
Packit 437b5e
2015-01-20  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix.lua: use error, not die; fixes #201
Packit 437b5e
Packit 437b5e
2015-01-19  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	doc: improve LDocs for sys.socket sockaddr tables.
Packit 437b5e
	Closes #200
Packit 437b5e
	* ext/posix/sys/socket.c (sockaddr): Document all optional fields.
Packit 437b5e
	* NEWS.md: Update.
Packit 437b5e
	Reported by Bernd Eggink
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream for lua 5.3.0 final support.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2015-01-18  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Make posix.pipeline_slurp more efficient
Packit 437b5e
	Use standard table.concat method instead of repeated string
Packit 437b5e
	concatenation.
Packit 437b5e
Packit 437b5e
2015-01-04  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 33.2.1
Packit 437b5e
	* NEWS.md: Record release date.
Packit 437b5e
Packit 437b5e
	configury: distribute posix.curses.html correctly.
Packit 437b5e
	* local.mk (dist_modules_DATA): Add posix.curses.html.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release version to 33.2.1.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
	* NEWS.md: Update.
Packit 437b5e
	Reported by Ulrich Schmidt <u.sch.zw@gmx.de>
Packit 437b5e
Packit 437b5e
2015-01-03  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 33.2.0
Packit 437b5e
	* NEWS.md: Record release date.
Packit 437b5e
Packit 437b5e
	specs: accept '?' as function name in Lua bad argument errors.
Packit 437b5e
	LuaJIT in particular often fails to find the name of a function,
Packit 437b5e
	so we must accept '?' when checking error message contents.
Packit 437b5e
	* specs/spec_helper.lua (typeerrors): Call badargs.format twice,
Packit 437b5e
	and return a table of results.
Packit 437b5e
	(init): Use typerrors wrapper.
Packit 437b5e
	* specs/posix_compat_spec.yaml, specs/posix_deprecated_spec.yaml,
Packit 437b5e
	specs/posix_spec.yaml, specs/posix_sys_resource_spec.yaml,
Packit 437b5e
	specs/posix_sys_socket_spec.yaml, specs/posix_time_spec.yaml: Use
Packit 437b5e
	spec_helper.lua:init, or manually create a list of error messages
Packit 437b5e
	including returned function name, or "?" when that could not be
Packit 437b5e
	found, e.g. by LuaJIT.
Packit 437b5e
Packit 437b5e
2015-01-02  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	configury: bump release version to 33.2.0.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release version to 33.2.0.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	maint: adjust indentation for github markdown multi-para bullets.
Packit 437b5e
	* NEWS.md: Adjust indentation so that multi-paragram bullet
Packit 437b5e
	points are correctly rendered by github markdown.
Packit 437b5e
Packit 437b5e
	specs: fix off by one error in localtime and gmtime examples.
Packit 437b5e
	* specs/posix_time_spec.yaml (gmtime, localtime): Fix expectation
Packit 437b5e
	range to fit (correct) description.
Packit 437b5e
	* NEWS.md: Update.
Packit 437b5e
Packit 437b5e
	gnulib: sync with upstream.
Packit 437b5e
Packit 437b5e
	maint: commit git rockspec to master branch.
Packit 437b5e
	* .gitignore: Allow git rockspecs.
Packit 437b5e
	* luaposix-git-1.rockspec: New file.
Packit 437b5e
Packit 437b5e
	configury: add ansicolors to travis_extra_rocks.
Packit 437b5e
	* bootstrap.conf (buildreq): Reference Specl 14.0.0 with correct
Packit 437b5e
	version number.
Packit 437b5e
	(travis_extra_rocks): Add ansicolors for color specl outpet.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2015-01-01  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: add 5.3 to compatiblity statement in files' preamble.
Packit 437b5e
	* ext/include/_helpers.c, ext/posix/bit32.c, ext/posix/ctype.c,
Packit 437b5e
	ext/posix/curses.c, ext/posix/curses/chstr.c,
Packit 437b5e
	ext/posix/curses/window.c, ext/posix/dirent.c,
Packit 437b5e
	ext/posix/errno.c, ext/posix/fcntl.c, ext/posix/fnmatch.c,
Packit 437b5e
	ext/posix/getopt.c, ext/posix/glob.c, ext/posix/grp.c,
Packit 437b5e
	ext/posix/libgen.c, ext/posix/poll.c, ext/posix/posix.c,
Packit 437b5e
	ext/posix/pwd.c, ext/posix/sched.c, ext/posix/signal.c,
Packit 437b5e
	ext/posix/stdio.c, ext/posix/stdlib.c, ext/posix/sys/msg.c,
Packit 437b5e
	ext/posix/sys/resource.c, ext/posix/sys/socket.c,
Packit 437b5e
	ext/posix/sys/stat.c, ext/posix/sys/statvfs.c,
Packit 437b5e
	ext/posix/sys/time.c, ext/posix/sys/times.c,
Packit 437b5e
	ext/posix/sys/utsname.c, ext/posix/sys/wait.c,
Packit 437b5e
	ext/posix/syslog.c, ext/posix/termio.c, ext/posix/time.c,
Packit 437b5e
	ext/posix/unistd.c, ext/posix/utime.c, lib/posix.lua.in,
Packit 437b5e
	lib/posix/_argcheck.lua, lib/posix/compat.lua,
Packit 437b5e
	lib/posix/deprecated.lua, lib/posix/util.lua: Add 5.3 to
Packit 437b5e
	compatibility statement in files' preamble.
Packit 437b5e
Packit 437b5e
	maint: update copyrights.
Packit 437b5e
	* COPYING, bootstrap.conf, configure.ac, ext/include/_helpers.c,
Packit 437b5e
	ext/posix/bit32.c, ext/posix/ctype.c, ext/posix/curses.c,
Packit 437b5e
	ext/posix/curses/chstr.c, ext/posix/curses/window.c,
Packit 437b5e
	ext/posix/dirent.c, ext/posix/errno.c, ext/posix/fcntl.c,
Packit 437b5e
	ext/posix/fnmatch.c, ext/posix/getopt.c, ext/posix/glob.c,
Packit 437b5e
	ext/posix/grp.c, ext/posix/libgen.c, ext/posix/poll.c,
Packit 437b5e
	ext/posix/posix.c, ext/posix/pwd.c, ext/posix/sched.c,
Packit 437b5e
	ext/posix/signal.c, ext/posix/stdio.c, ext/posix/stdlib.c,
Packit 437b5e
	ext/posix/sys/msg.c, ext/posix/sys/resource.c,
Packit 437b5e
	ext/posix/sys/socket.c, ext/posix/sys/stat.c,
Packit 437b5e
	ext/posix/sys/statvfs.c, ext/posix/sys/time.c,
Packit 437b5e
	ext/posix/sys/times.c, ext/posix/sys/utsname.c,
Packit 437b5e
	ext/posix/sys/wait.c, ext/posix/syslog.c, ext/posix/termio.c,
Packit 437b5e
	ext/posix/time.c, ext/posix/unistd.c, ext/posix/utime.c,
Packit 437b5e
	lib/posix.lua.in, lib/posix/_argcheck.lua, lib/posix/compat.lua,
Packit 437b5e
	lib/posix/deprecated.lua, lib/posix/util.lua, local.mk: Add 2015
Packit 437b5e
	to copyright statement.
Packit 437b5e
Packit 437b5e
	rockspec: Lua 5.4 and higher not yet supported.
Packit 437b5e
	* rockspec.conf (dependencies): Add lua < 5.4 constraint.
Packit 437b5e
Packit 437b5e
	maint: use correct Specl >= 14 arity for bad argument errors.
Packit 437b5e
	Now that Specl's badargs module is generating examples with
Packit 437b5e
	the correct messages, we can now say 'no more than 0 arguments'.
Packit 437b5e
	* ext/include/_helpers.c (checknargs): Return singular 'argument'
Packit 437b5e
	in error message only for exactly 1 expected argument, otherwise
Packit 437b5e
	plural.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Update from slingshot.
Packit 437b5e
	* configure.ac: Remove SS_CONFIG_TRAVIS invocation. Move extra
Packit 437b5e
	rocks from here...
Packit 437b5e
	* bootstrap.conf (travis_extra_rocks): ...to here.
Packit 437b5e
	(require_bootstrap_uptodate): Remove.
Packit 437b5e
	* .gitignore: Remove slingshot.m4.
Packit 437b5e
Packit 437b5e
2014-12-22  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	configury: enable mkdtemp on _XOPEN_SOURCE incompatible hosts.
Packit 437b5e
	* configure.ac (POSIX_EXTRA_CPPFLAGS) <darwin*, openbsd*>: Add
Packit 437b5e
	-DLPOSIX_2008_COMPLIANT instead of -D_XOPENSOURCE=700.
Packit 437b5e
	* ext/include/_helpers (LPOSIX_2008_COMPLIANT): When manually
Packit 437b5e
	defined, also ensure LPOSIX_2001_COMPLIANT is defined.
Packit 437b5e
Packit 437b5e
2014-12-19  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: use table.unpack over unpack for 5.3.0 compatibility.
Packit 437b5e
	Lua 5.3 has table.unpack but not _G.unpack; Lua 5.2 has
Packit 437b5e
	table.unpack and _G.unpack; Lua 5.1 has _G.unpack but not
Packit 437b5e
	table.unpack
Packit 437b5e
	* lib/posix.lua.in (unpack): Use table.unpack over unpack, to
Packit 437b5e
	work on all three!
Packit 437b5e
	* lib/posix/deprecated.lua (unpack): Likewise.
Packit 437b5e
Packit 437b5e
	maint: add missing NEWS.
Packit 437b5e
	* NEWS: Note recent QNX support.
Packit 437b5e
Packit 437b5e
	stdlib: mkdtemp returns an error on substandard hosts.
Packit 437b5e
	* ext/posix/stdlib.c (mkdtemp): Move POSIX compliance guards
Packit 437b5e
	inside the function definition, with an alternate function body
Packit 437b5e
	that returns an error when there is no mkdtemp in the C library.
Packit 437b5e
	(posix_stdlib_fns): Remove POSIX compliance guard from mkdtemp.
Packit 437b5e
Packit 437b5e
	maint: detect POSIX 2001 or POSIX 2008 compliance.
Packit 437b5e
	Close #197.
Packit 437b5e
	* configure.ac: Reformat comments.
Packit 437b5e
	Pass LPOSIX_2001_COMPLIANT directly to cpp on QNX.
Packit 437b5e
	* ext/include/_helpers.c (LPOSIX_2008_COMPLIANT): Enable only
Packit 437b5e
	if _POSIX_C_SOURCE or _XOPEN_SOURCE are set appropriately.
Packit 437b5e
	(LPOSIX_2001_COMPLIANT): Add _XOPEN_SOURCE >= 600 condition.
Packit 437b5e
	* ext/posix/stdlib.c (Pmkdtemp): Disable this function unless
Packit 437b5e
	LPOSIX_2008_COMPLIANT is defined.
Packit 437b5e
	Reported by James Harris <jimmy@jamesharris.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 33.1.0
Packit 437b5e
	* NEWS.md: Record release date.
Packit 437b5e
Packit 437b5e
	specs: adjust setrlimit error message expectations.
Packit 437b5e
	* specs/posix_sys_resource_spec.yaml (setrlimit): Adjust error
Packit 437b5e
	messages to reflect recent int->number table field type changes.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for Lua 5.3.0 improvements.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Update from slingshot.
Packit 437b5e
	* NEWS: Move from here...
Packit 437b5e
	* NEWS.md: ...to here. Convert to Markdown format.
Packit 437b5e
	* .gitignore: Add NEWS.
Packit 437b5e
	* local.mk (old_NEWS_hash): Regenerate.
Packit 437b5e
	(luaexec_LTLIBRARIES): Change from assigment to appending.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2014-12-18  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	resources: don't truncate rlim structure field values.
Packit 437b5e
	With f8d8939 we were too zealous with changing all internal
Packit 437b5e
	types from lua_Number (et. al) to lua_Integer (et. al), where
Packit 437b5e
	lua_Integer is not wide enough to contain an rlim_t.
Packit 437b5e
	* ext/include/_helpers (checknumberfield, pushnumberfield)
Packit 437b5e
	(setnumberfield): New function and macros equivalent to the
Packit 437b5e
	earlier implementations of checkintegerfield, pushintegerfield
Packit 437b5e
	and setintegerfield respectively.
Packit 437b5e
	* ext/posix/sys/resource.c (pushrlimit): Set PosixRlimit table
Packit 437b5e
	entries with setnumberfield.
Packit 437b5e
	(setrlimit): Extract PosixRlimit fields with checknumberfield.
Packit 437b5e
	* specs/posix_sys_resource_spec.yaml (setrlimit): Remove
Packit 437b5e
	spurious braces.
Packit 437b5e
Packit 437b5e
	posix: fix bad argument errors for spawn.
Packit 437b5e
	* specs/posix_spec.yaml (spawn): Uncomment badargs diagnosis.
Packit 437b5e
	* lib/posix.lua.in (M.spawn): Fix argument type error message for
Packit 437b5e
	nil-valued argument 2.
Packit 437b5e
Packit 437b5e
2014-12-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	sys.socket: support OpenBSD 5.6.
Packit 437b5e
	Close #182.
Packit 437b5e
	* ext/posix/sys/socket.c: Change the order of inclusion of some
Packit 437b5e
	headers to satisfy OpenBSD 5.6.
Packit 437b5e
Packit 437b5e
2014-12-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix argument checks for spawn and add specs
Packit 437b5e
Packit 437b5e
2014-12-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	sys.msg: only enable SysV messaging where it is supported.
Packit 437b5e
	* configure.ac (AC_CHECK_HEADER): Add sys/msg.h.
Packit 437b5e
	(AC_CHECK_FUNCS): Add msgrcv, msgsend.
Packit 437b5e
	(HAVE_SYSV_MESSAGING): Define if the above are all present.
Packit 437b5e
	* ext/posix/sys/msg.c (LPOSIX_2001_COMPLIANT): Change from using
Packit 437b5e
	this...
Packit 437b5e
	(HAVE_SYSV_MESSAGING): ...to this.
Packit 437b5e
Packit 437b5e
	configury: reformat AC_CHECK_FUNCS to discourage adding more!
Packit 437b5e
	* configure.ac: Reformat.
Packit 437b5e
Packit 437b5e
2014-12-17  James Harris  <jimmy@jamesharris.org>
Packit 437b5e
Packit 437b5e
	configury: no _XOPEN_SOURCE on QNX.
Packit 437b5e
	* configure.ac (POSIX_EXTRA_CPPFLAGS): Don't add _XOPEN_SOURCE on
Packit 437b5e
	QNX either.
Packit 437b5e
Packit 437b5e
	socket: guard AI_ADDRCONFIG definition.
Packit 437b5e
	* ext/posix/sys/socket.c (luaopen_posix_sys_socket): For machines
Packit 437b5e
	that don't define AI_ADDRCONFIG, wrap the binding in a CPP guard.
Packit 437b5e
Packit 437b5e
	unistd: stub gethostid for POSIX implementations that dropped it.
Packit 437b5e
	* configure.ac (AC_CHECK_FUNCS): Add gethostid.
Packit 437b5e
	* ext/posix/unistd.c (Pgethostid): If there is no gethostid on
Packit 437b5e
	this host, return an error rather than trying to call it.
Packit 437b5e
Packit 437b5e
	configury: support separate libsocket.
Packit 437b5e
	* configure.ac (LIBSOCKET): Check for a socket funtion carrying
Packit 437b5e
	socket library.
Packit 437b5e
	* local.mk (ext_posix_posix_la_LDFLAGS): Add $(LIBSOCKET).
Packit 437b5e
Packit 437b5e
	curses: fix compilation errors when host has no curses library.
Packit 437b5e
	* ext/posix/curses/chstr.c: Adjust #ifdef HAVE_CURSES to make
Packit 437b5e
	sure there's an emptyg posix_curses_chstr_fns definition.
Packit 437b5e
	* ext/posix/curses/window.c: Likewise for
Packit 437b5e
	posix_curses_windows_fns.
Packit 437b5e
	* ext/posix/curses.h: Likewise for curseslib.
Packit 437b5e
	Also move #includes for the above files out of the HAVE_CURSES
Packit 437b5e
	guard.
Packit 437b5e
Packit 437b5e
2014-12-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: add Lua 5.3 to README.md.
Packit 437b5e
	* README.md: Add Lua 5.3 reference.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for travis ownership fixes.
Packit 437b5e
	* slingshot: Sync with uptstream.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	travis: debug check-local failure.
Packit 437b5e
	* .travis.yml (script): Debug check-local failure.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for Lua 5.3.x support.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	configury: bump release number to 33.1.0.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release number to 33.1.0.
Packit 437b5e
Packit 437b5e
	specs: move stdlib function specs to their own spec-file.
Packit 437b5e
	* specs/posix_spec.yaml (abort, getenv, grantpt, mkdtemp, mkstemp)
Packit 437b5e
	(openpt, ptsname, realpath, unlockpt, setenv): Move from here...
Packit 437b5e
	* specs/posix_stdlib_spec.yaml (abort, getenv, grantpt, mkdtemp)
Packit 437b5e
	(mkstemp, openpt, ptsname, realpath, unlockpt, setenv): New file.
Packit 437b5e
	...to here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_stdlib_spec.yaml.
Packit 437b5e
Packit 437b5e
	doc: cross reference umask and sys.stat.umask.
Packit 437b5e
	* ext/posix/sys/stat.c (umask): Reference posix.umask.
Packit 437b5e
	* lib/posix/compat.lua (umask): Reference posix.sys.stat.umask.
Packit 437b5e
Packit 437b5e
2014-12-16  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: support 5.3.0 integers correctly.
Packit 437b5e
	Many integer fields and values were incorrectly becoming `.0`
Packit 437b5e
	suffixed floats in Lua 5.3.0.
Packit 437b5e
	* ext/include/_helpers.c (lua_isinteger): Define to lua_isnumber
Packit 437b5e
	with pre-5.3.0 Lua headers.
Packit 437b5e
	(checkinteger): Use it.
Packit 437b5e
	(checkch): Use checkint over luaL_checknumber.
Packit 437b5e
	(checkintegerfield): Use lua_pushinteger over lua_pushnumber.
Packit 437b5e
	(pushnumberfield, setnumberfield): Rename from these...
Packit 437b5e
	(pushintegerfield, setintegerfield): ...to these, and adjust to
Packit 437b5e
	work with Integer subtypes in Lua 5.3.0.
Packit 437b5e
	* ext/posix/curses.c (Punctrl): Use checkch over luaL_checknumber.
Packit 437b5e
	* ext/posix/grp (pushgroup): Set gr_gid field as an integer.
Packit 437b5e
	* ext/posix/poll.c (poll_fd_list_check_table): Use lua_isinteger
Packit 437b5e
	for argument check.
Packit 437b5e
	* ext/posix/pwd.c (pushpasswd): Use setintegerfield for pw_uid
Packit 437b5e
	and pwd_gid fields.
Packit 437b5e
	* ext/posix/sys/resource.c (pushrlimit): Use setintegerfield for
Packit 437b5e
	rlim_cur and rlim_max fields.
Packit 437b5e
	* ext/posix/sys/socket.c (pushsockaddrinfo): Use pushintegerfield
Packit 437b5e
	for family, port, pid and groups fields.
Packit 437b5e
	(Pgetaddrinfo): Use pushintegerfield for socktype and protocol
Packit 437b5e
	fields.
Packit 437b5e
	* ext/posix/sys/stat.c (pushstat): Use setintegerfield for all
Packit 437b5e
	fields.
Packit 437b5e
	* ext/posix/sys/statvfs.c (pushstatvfs): Use setintegerfield for
Packit 437b5e
	all fields.
Packit 437b5e
	* ext/posix/sys/time.c (pushtimeval): Use setintegerfield for
Packit 437b5e
	tv_sec and tv_usec fields.
Packit 437b5e
	* ext/posix/sys/times.c (pushtimefield): Use pushintegerfield.
Packit 437b5e
	* ext/posix/termio.c (Ptcgetattr): Use pushintegerfield for
Packit 437b5e
	iflag, oflag, lflag, cflag and cc fields.
Packit 437b5e
	* ext/posix/time.c (pushtimespec): Use setintegerfield for
Packit 437b5e
	tv_sec and tv_nsec fields.
Packit 437b5e
	(pushtm): Use setintegerfield for all fields.
Packit 437b5e
	* ext/posix/unistd.c (mygetuid. mygetgid): Use lua_isinteger and
Packit 437b5e
	lua_tointeger for argument checking.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	stdlib: accept optional 3rd argument to setenv.
Packit 437b5e
	Close #185.
Packit 437b5e
	* ext/posix/stdlib.c (Psetenv): Allow optional 3rd argument again.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: remove unused luaexec_LDFLAGS macro.
Packit 437b5e
	Silence an Automake warning about unused luaexec_LDFLAGS.
Packit 437b5e
	* local.mk (luaexec_LDFLAGS): Remove.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for git submodule fixes.
Packit 437b5e
	Latest slingshot bootstrap passes arguments to 'git submodule init'
Packit 437b5e
	correctly.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Update from slingshot.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	specs: specify localtime and gmtime month values correctly.
Packit 437b5e
	* specs/posix_time_spec.yaml (gmtime, localtime): Add a
Packit 437b5e
	specification for December epoch returning month 11.
Packit 437b5e
	Fix description of month range to be 0-11.
Packit 437b5e
	* specs/posix_compat_spec.yaml (gmtime, localtime): Add a
Packit 437b5e
	specification for December epoch returning month 12.
Packit 437b5e
	Fix description of month range to be 1-12.
Packit 437b5e
	Fix specification to check month range 1-12.
Packit 437b5e
Packit 437b5e
2014-12-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix #187
Packit 437b5e
Packit 437b5e
	Fix #189
Packit 437b5e
Packit 437b5e
2014-11-06  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	deprecated: handle nonexistent files gracefully.
Packit 437b5e
	* lib/posix/deprecated (stat, statvfs): If the underlying C API
Packit 437b5e
	call does not return a table, simply return nil instead of
Packit 437b5e
	calling doselection.
Packit 437b5e
Packit 437b5e
	sys.socket: initialize hints with zeros.
Packit 437b5e
	* ext/posix/sys/socket.c (Pgetaddrinfo): It's not safe to rely
Packit 437b5e
	on field values in uninitialised automatic struct addrinfo
Packit 437b5e
	declaration.  Use memset to overwrite garbage.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: support _POSIX_C_SOURCE in lieu of _POSIX_VERSION.
Packit 437b5e
	On OpenBSD 5.6, _POSIX_VERSION is set to just 199009L by default,
Packit 437b5e
	and messing with _XOPEN_SOURCE or setting _POSIX_VERSION directly
Packit 437b5e
	changes the C library header declarations.  It seems that
Packit 437b5e
	_POSIX_C_SOURCE is defined to 200112L by default, indicating that
Packit 437b5e
	the newer functions luaposix wants to bind to really are available.
Packit 437b5e
	* configure.ac (POSIX_EXTRA_CPPFLAGS): Elide _XOPEN_SOURCE
Packit 437b5e
	definition on OpenBSD.
Packit 437b5e
	* ext/include/_helpers.c (LPOSIX_2001_COMPLIANT): New preprocessor
Packit 437b5e
	symbol, defined when either _POSIX_VERSION or _POSIX_C_SOURCE
Packit 437b5e
	are bigger than 200112L.
Packit 437b5e
	* ext/posix/stdlib.c, ext/posix/sys/msg.c,
Packit 437b5e
	ext/posix/sys/socket.c, ext/posix/sys/times.c,
Packit 437b5e
	ext/posix/syslog.c, ext/posix/unistd.c: Predicate on new
Packit 437b5e
	LPOSIX_2001_COMPLIANT definition instead of _POSIX_VERSION.
Packit 437b5e
Packit 437b5e
	sys.socket: make some more preprocessor constants conditional.
Packit 437b5e
	* ext/posix/sys/socket.c (AI_ALL, AI_V4MAPPED): Add preprocessor
Packit 437b5e
	guards, as these two are not defined on at least OpenBSD 5.6.
Packit 437b5e
Packit 437b5e
	configury: propagate _XOPEN_SOURCE cpp defines fully.
Packit 437b5e
	* configure.ac (POSIX_EXTRA_CFLAGS): A misnomer...
Packit 437b5e
	(POSIX_EXTRA_CPPFLAGS): ...better named like this.
Packit 437b5e
	* local.mk (AM_CPPFLAGS): Add POSIX_EXTRA_CPPFLAGS, so addition
Packit 437b5e
	preprocessor definitions reach submodule compilation too.
Packit 437b5e
	(ext_posix_posix_la_CFLAGS): Remove.
Packit 437b5e
Packit 437b5e
2014-11-05  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	doc: use OpenGroup SUSv3 urls for manual page links.
Packit 437b5e
	* build-aux/config.ld.in (custom_see_handler): Send manual page
Packit 437b5e
	links to OpenGroup SUSv3 specifications instead of kernel.org.
Packit 437b5e
Packit 437b5e
	maint: update README.
Packit 437b5e
	* README.md: Update some bitrot.
Packit 437b5e
Packit 437b5e
	configury: add sys/socket.h to other socket header checks.
Packit 437b5e
	The net/if.h check fails on at least OpenBSD 5.6 without this
Packit 437b5e
	patch.
Packit 437b5e
	* configure.ac (AC_CHECK_HEADERS): Add sys/socket.h to default
Packit 437b5e
	headers when checking for net/if.h and linux/netlink.h.
Packit 437b5e
Packit 437b5e
	configury: set LIBRT only if it is required for clock_gettime.
Packit 437b5e
	* configure.ac (LIBRT): Extract from != Darwin guard and set to
Packit 437b5e
	-lrt if that is required for clock_gettime to work.
Packit 437b5e
	(POSIX_EXTRA_CFLAGS): Move up to compiler flag setting section.
Packit 437b5e
	(AC_CHECK_FUNCS): Move out of library checking section.
Packit 437b5e
Packit 437b5e
	sys.resource: provide RLIMIT_AS fallback for OpenBSD 5.6.
Packit 437b5e
	* ext/posix/sys/resource.c (RLIMIT_AS): Fallback to RLIMIT_DATA
Packit 437b5e
	if not otherwise defined.
Packit 437b5e
Packit 437b5e
	maint: preliminary Lua 5.3.0-beta compatibility.
Packit 437b5e
	Close #181.
Packit 437b5e
	* configure.ac (AX_PROG_LUA): Accept Lua 5.3 interpreters.
Packit 437b5e
	* ext/include/lua52compat.h: Remove.
Packit 437b5e
	* local.mk (EXTRA_DIST): Adjust accordingly.
Packit 437b5e
	* ext/include/_helpers.c (lua_objlen, lua_strlen, luaL_openlib)
Packit 437b5e
	(luaL_register): Lua 5.2 and 5.3 compatibility definitions.
Packit 437b5e
	* ext/posix/sched.c, ext/posix/termio.c: Use luaposix optint()
Packit 437b5e
	rather than deprecated luaL_optint().
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	bit32: remove remaining `require "bit"` invocations.
Packit 437b5e
	* lib/posix.lua.in: require "posix.bit32" unconditionally.
Packit 437b5e
	* specs/posix_unistd_spec.yaml: Likewise.
Packit 437b5e
Packit 437b5e
	maint: remove dependency on luabitop.
Packit 437b5e
	* specs/spec_helper.lua (bit): Fallback on posix.bit32 if there
Packit 437b5e
	is no native bit32 module.
Packit 437b5e
	* lib/posix/compat.lua, lib/posix/deprecated.lua: Use
Packit 437b5e
	posix.bit32 unconditionally.
Packit 437b5e
	* rockspec.conf (dependencies): Remove luabitop.
Packit 437b5e
Packit 437b5e
	bit32: fetch uint32_t definition from stdint.h.
Packit 437b5e
	* ext/posix/bit32.c: include stdint.h instead of sys/types.h.
Packit 437b5e
Packit 437b5e
	bit32: new module for lua5.1 compatibility.
Packit 437b5e
	* specs/posix_bit32_spec.yaml: Specify behaviours of band, bnot
Packit 437b5e
	and bor.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_bit32_spec.yaml.
Packit 437b5e
	* ext/posix/bit32.c: New module implementing band, bnot and bor.
Packit 437b5e
	* ext/posix/posix.c: #include bit32.c.
Packit 437b5e
	* build-aux/config.ld.in (file): Add ext/posix/bit32.c.
Packit 437b5e
	* local.mk (EXTRA_ext_posix_posix_la_SOURCES): Likewise.
Packit 437b5e
	(posix_submodules): Likewise.
Packit 437b5e
	(ext_posix_bit32_la_LDFLAGS): Set module LDFLAGS.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-11-04  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: ignore src.rock files.
Packit 437b5e
	* .gitignore: Add *.src.rock.
Packit 437b5e
Packit 437b5e
	maint: update README.
Packit 437b5e
	* README.md: Fix some outdated paragraphs.
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 33.0.0
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
	configury: adopt semantic versioning.
Packit 437b5e
	* configure.ac (AC_INIT): Bump version to 33.0.0.
Packit 437b5e
Packit 437b5e
	doc: document returned error numbers in many APIs.
Packit 437b5e
	* ext/posix/fcntl.c, ext/posix/poll.c, ext/posix/sched.c,
Packit 437b5e
	ext/posix/signal.c, ext/posix/stdio.c, ext/posix/stdlib.c,
Packit 437b5e
	ext/posix/sys/msg.c, ext/posix/sys/resource.c,
Packit 437b5e
	ext/posix/sys/socket.c, ext/posix/sys/stat.c,
Packit 437b5e
	ext/posix/sys/times.c, ext/posix/sys/utsname.c,
Packit 437b5e
	ext/posix/sys/wait.c, ext/posix/syslog.c, ext/posix/termio.c,
Packit 437b5e
	ext/posix/time.c, ext/posix/unistd.c, ext/posix/utime.c,
Packit 437b5e
	lib/posix/compat.lua, lib/posix/deprecated.lua: Document third
Packit 437b5e
	returned error number for many APIs.
Packit 437b5e
Packit 437b5e
2014-11-03  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	syslog: add LOG_MASK, and pass bits to openlog and setlogmask.
Packit 437b5e
	Close #156.
Packit 437b5e
	* specs/posix_spec.yaml (openlog): Move from here...
Packit 437b5e
	* specs/posix_deprecated_spec.yaml (openlog): ...to here.
Packit 437b5e
	* specs/posix_spec.yaml (setlogmask): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (setlogmask): ...to here.
Packit 437b5e
	* specs/posix_spec.yaml (closelog, syslog): Move from here
Packit 437b5e
	* specs/posix_syslog_spec.yaml (closelog, syslog): New file.
Packit 437b5e
	...to here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_syslog_spec.yaml.
Packit 437b5e
	* specs/posix_syslog_spec.yaml (openlog, setlogmask)
Packit 437b5e
	(LOG_MASK): Specify behaviour of new minimal bindings.
Packit 437b5e
	* ext/posix/compat.lua (openlog, setlogmask): Simplify
Packit 437b5e
	accordingly.
Packit 437b5e
	* lib/posix/deprecated.lua (openlog): Reimplement old string
Packit 437b5e
	specified option API in Lua over new minimal binding.
Packit 437b5e
	* ext/posix/syslog.c (PLOG_MASK): New function for converting
Packit 437b5e
	option priorities to mask bits.
Packit 437b5e
	* lib/posix/compat.lua (setlogmask): Reimplement old auto-ORing
Packit 437b5e
	API over new LOG_MASK and minimal setlogmask bindings.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	doc: remove unused posix.util.html.
Packit 437b5e
	* local.mk (dist_modules_DATA): Remove doc/modules/posix.util.html.
Packit 437b5e
Packit 437b5e
	posix: move openpty utility into posix and add argchecks.
Packit 437b5e
	* lib/posix/util.lua (openpty): Move from here...
Packit 437b5e
	* lib/posix.lua (openpty): ...to here.  Add argcheck wrapper.
Packit 437b5e
	* lib/posix/util.lua: Reexport openpty for backwards compatibility.
Packit 437b5e
	* specs/posix_spec.yaml (openpty): Add specs for argchecks.
Packit 437b5e
	* build-aux/config.ld.in (file): Remove lib/posix/util.lua.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	specs: set initial describe headers consistently.
Packit 437b5e
	* specs/curses_spec.yaml, specs/posix_compat_spec.yaml,
Packit 437b5e
	specs/posix_ctype_spec.yaml, specs/posix_deprecated_spec.yaml,
Packit 437b5e
	specs/posix_fcntl_spec.yaml, specs/posix_fnmatch_spec.yaml,
Packit 437b5e
	specs/posix_grp_spec.yaml, specs/posix_pwd_spec.yaml,
Packit 437b5e
	specs/posix_sys_msg_spec.yaml,
Packit 437b5e
	specs/posix_sys_resource_spec.yaml,
Packit 437b5e
	specs/posix_sys_stat_spec.yaml,
Packit 437b5e
	specs/posix_sys_statvfs_spec.yaml,
Packit 437b5e
	specs/posix_sys_time_spec.yaml, specs/posix_sys_times_spec.yaml,
Packit 437b5e
	specs/posix_sys_utsname_spec.yaml, specs/posix_time_spec.yaml,
Packit 437b5e
	specs/posix_unistd_spec.yaml: Use dot delimmited module names
Packit 437b5e
	consistently in initial describe heading.
Packit 437b5e
Packit 437b5e
	doc: show return type correctly on exec and execp.
Packit 437b5e
	* ext/posix/unistd.c (Pexec, Pexecp): Show return type correctly.
Packit 437b5e
Packit 437b5e
	doc: show return type of posix.signal.signal.
Packit 437b5e
	* ext/posix/signal.c (signal): Show return type.
Packit 437b5e
Packit 437b5e
	refactor: move lua docs to the top of LDoc index sidebar.
Packit 437b5e
	* build-aux/config.ld.in (files): Move Lua files to the top of
Packit 437b5e
	the list.
Packit 437b5e
Packit 437b5e
	unistd: deprecate exec with string tuple args.
Packit 437b5e
	Close #167.
Packit 437b5e
	* specs/posix_spec.yaml (exec, execp): Move from here...
Packit 437b5e
	* specs/posix_deprecated.yaml (exec, execp): ...to here.
Packit 437b5e
	* specs/posix_unistd.yaml (exec, execp): ...and much simplified
Packit 437b5e
	specification here.
Packit 437b5e
	* ext/posix/unistd.c (runexec): Simplify accordingly.
Packit 437b5e
	* lib/posix/deprecated (exec, execp): Reimplement string tuple
Packit 437b5e
	passing, [0]-crippled API again over C binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	signal: modernize posix.signal.
Packit 437b5e
	Close #161.
Packit 437b5e
	* specs/posix_spec.yaml (kill, killpg, raise, signal): Move from
Packit 437b5e
	here...
Packit 437b5e
	* specs/posix_signal_spec.yaml (kill, killpg, raise, signal):
Packit 437b5e
	New file.  ...to here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_signal_spec,yaml.
Packit 437b5e
	* examples/signal.lua: Rewrite in modern style.
Packit 437b5e
	* ext/posix/signal.c (Psignal): Update LDocs.
Packit 437b5e
	(luaopen_posix_signal): Add SIG_DFL and SIG_IGN constants.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-11-02  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: don't truncate output after fcntl examples.
Packit 437b5e
	* specs/lposix_spec.yaml (fcntl F_GETFL): Make sure to save and
Packit 437b5e
	correctly restore stdio buffering correctly around examples.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	deprecated: make sure bitwise operations are defined.
Packit 437b5e
	* lib/posix/deprecated.lau (bit): Require a bit operation lib.
Packit 437b5e
	(band, bnot, bor): Define local bitwise operators.
Packit 437b5e
Packit 437b5e
	refactor: separate undocumented compat APIs.
Packit 437b5e
	* lib/posix/compat.lua (doselection, PosixTm, LegacyTm, pushmode)
Packit 437b5e
	(bind, clock_getres, clock_gettime, connect, fadvise, fnmatch)
Packit 437b5e
	(getgroup, getpasswd, getpid, getrimit, gettimeofday, gmtime)
Packit 437b5e
	(hostid, isgraph, isprint, localtime, mktime, nanosleep, pathconf)
Packit 437b5e
	(setrlimit, stat, statvfs, strftime, strptime, sysconf, times)
Packit 437b5e
	(uname): Move from here...
Packit 437b5e
	* lib/posix/deprecated.lua (doselection, PosixTm, LegacyTm)
Packit 437b5e
	(pushmode, bind, clock_getres, clock_gettime, connect, fadvise)
Packit 437b5e
	(fnmatch, getgroup, getpasswd, getpid, getrimit, gettimeofday)
Packit 437b5e
	(gmtime, hostid, isgraph, isprint, localtime, mktime, nanosleep)
Packit 437b5e
	(pathconf, setrlimit, stat, statvfs, strftime, strptime, sysconf)
Packit 437b5e
	(times, uname): New file.  ...to here.
Packit 437b5e
	* build-aux/sanity-cfg.mk (sc_error_message_uppercase): Adjust
Packit 437b5e
	accordingly.
Packit 437b5e
	* build-aux/config.ld.in (file): Add lib/posix/compat.lua.
Packit 437b5e
	* lib/posix/compat.lua: Document within posix module.
Packit 437b5e
Packit 437b5e
2014-10-28  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: separate private argument checking helpers.
Packit 437b5e
	* lib/posix/compat.lua (argerror, argtypeerror, badoption)
Packit 437b5e
	(checkint, checkselection, checkstring, checktable, optint)
Packit 437b5e
	(optstring, opttable, toomanyargerror): Move from here...
Packit 437b5e
	* lib/posix/_argcheck.lua (argerror, argtypeerror, badoption)
Packit 437b5e
	(checkint, checkselection, checkstring, checktable, optint)
Packit 437b5e
	(optstring, opttable, toomanyargerror): New file.  ...to here.
Packit 437b5e
	* local.mk (dist_luaposix_DATA): Add lib/posix/_argcheck.lua.
Packit 437b5e
Packit 437b5e
	socket: bind connect and bind minimally.
Packit 437b5e
	Close #158.
Packit 437b5e
	* specs/posix_spec.yaml (accept, bind, connect, getaddrinfo)
Packit 437b5e
	(listen, recv, recvfrom, send, sendto, setsockopt, shutdown)
Packit 437b5e
	(socket, socketpair): Move from here...
Packit 437b5e
	* specs/posix_sys_socket_spec.yaml (accept, bind, connect)
Packit 437b5e
	(getaddrinfo, listen, recv, recvfrom, send, sendto, setsockopt)
Packit 437b5e
	(shutdown, socket, socketpair): New file. ...to here.
Packit 437b5e
	(bind, connect): Adjust specifications to expect 0 returned upon
Packit 437b5e
	success.
Packit 437b5e
	* specs/posix_deprecated_spec.yaml (bind, connect): New file.
Packit 437b5e
	Check for backward compatible return types when imported from
Packit 437b5e
	posix module.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add
Packit 437b5e
	specs/posix_sys_socket_spec.yaml and
Packit 437b5e
	specs/posix_deprecated_spec.yaml.
Packit 437b5e
	* ext/posix/sys/socket.c (bind, connect): Simplify accordingly.
Packit 437b5e
	* examples/socket.lua: Adjust to new style submodule imports.
Packit 437b5e
	* lib/posix/deprecated.lua (bind, connect): Write wrapper
Packit 437b5e
	functions to implement `true` return API.
Packit 437b5e
	* local.mk (dist_luaposix_DATA): Add lib/posix/deprecated.lua.
Packit 437b5e
	* lib/posix.lua.in: Import deprecated APIs.
Packit 437b5e
Packit 437b5e
	time: remote debugging with Travis!!
Packit 437b5e
	* lib/posix/compat.lua (clock_getres): Fix if guard for
Packit 437b5e
	undefined clock_getres.
Packit 437b5e
	(clock_gettime): Fix indentation.
Packit 437b5e
	* specs/psoix_time_spec.yaml (clock_getres, clock_gettime): Use
Packit 437b5e
	prototype instead of type to get metatable _type!
Packit 437b5e
Packit 437b5e
	time: bind clock_getres and clock_gettime minimally.
Packit 437b5e
	Close #159.
Packit 437b5e
	* specs/posix_time_spec.yaml (clock_getres, clock_gettime): Adjust
Packit 437b5e
	to specify passing of integer constants and return PosixTimespec
Packit 437b5e
	tables.
Packit 437b5e
	* specs/posix_compat_spec.yaml (clock_getres, clock_gettime):
Packit 437b5e
	Specify backwards compatible behaviours accepting optional name
Packit 437b5e
	and returning separate sec, nanosec results.
Packit 437b5e
	* ext/posix/time.c (get_clk_id_const): Remove.
Packit 437b5e
	(clock_getres, clock_gettime): Simplify.
Packit 437b5e
	* lib/posix/compat.lua (clock_getres, clock_gettime): Reimplement
Packit 437b5e
	old API over new minimal binding.
Packit 437b5e
	* NEWS: Update
Packit 437b5e
Packit 437b5e
2014-10-25  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	time: bind nanosleep minimally.
Packit 437b5e
	Close #162.
Packit 437b5e
	* specs/posix_spec.yaml (nanosleep): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (nanosleep): ...to here.
Packit 437b5e
	* specs/posix_time_spec.yaml (nanosleep): Specify behaviour of
Packit 437b5e
	minimal binding.
Packit 437b5e
	* ext/posix/time.c (totimespec, pushtimespec): New functions.
Packit 437b5e
	Convert between C struct timespec and Lua PosixTimespec table.
Packit 437b5e
	(nanosleep): Simplify accordingly.
Packit 437b5e
	* lib/posix/compat.lua (nanosleep): Reimplement old API over new
Packit 437b5e
	minimal binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	time: pass struct tm equivalent tables with POSIX field names.
Packit 437b5e
	* specs/posix_spec.yaml (gmtime, localtime, mktime, strftime)
Packit 437b5e
	(strptime): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (gmtime, localtime, mktime)
Packit 437b5e
	(strftime, strptime): ...to here.  Add full specifications.
Packit 437b5e
	* specs/posix_time_spec.yaml (clock_getres, clock_gettime, gmtime)
Packit 437b5e
	(localtime, mktime, strftime, strptime, time): Specify behaviours
Packit 437b5e
	of thin bindings for these APIs.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_time_spec.yaml.
Packit 437b5e
	* ext/posix/time.c (Stm_fileds, totm, pushtm): Convert and verify
Packit 437b5e
	C struct tm records and Lua PosixTm tables.
Packit 437b5e
	(gmtime, localtime, mktime, strftime, strptime): Simplify
Packit 437b5e
	accordingly.
Packit 437b5e
	* lib/posix/compat.lua (PosixTm, LegacyTm): Convert between new
Packit 437b5e
	PosixTm tables and old custom field name `struct tm` tables.
Packit 437b5e
	(gmtime, localtime, mktime, strftime, strptime): Reimplement
Packit 437b5e
	legacy table manipulation APIs over new thin bindings.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: tidy up sanity check configuration.
Packit 437b5e
	* build-aux/sanity-cfg.mk: Escape '.' in regexps properly.
Packit 437b5e
	Add lib/posix/compat.lua to sc_error_message_uppercase.
Packit 437b5e
Packit 437b5e
2014-10-24  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	resource: bind getrlimit and setrlimit minimally.
Packit 437b5e
	Close #164.
Packit 437b5e
	* specs/posix_spec.yaml (getrlimit, setrlimit): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (getrlimit, setrlimit): ...to here.
Packit 437b5e
	* specs/posix_sys_resource_spec.yaml (getrlimit, setrlimit): New
Packit 437b5e
	file. Specify minimal binding behaviours.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add
Packit 437b5e
	specs/posix_sys_resource_spec.yaml.
Packit 437b5e
	* ext/include/_helpers.c (checkfieldtype): Improve nil diagnostic
Packit 437b5e
	to read 'no value'.
Packit 437b5e
	(lookup_symbol): Remove unused function.
Packit 437b5e
	* ext/posix/sys/resource.c (rlimit_map, Krlimit, Srlimit): Remove
Packit 437b5e
	unused internal APIs.
Packit 437b5e
	(pushrlimit): Push a PosixRlimit table onto the stack.
Packit 437b5e
	(getrlimit, setrlimit): Simplify accordingly.
Packit 437b5e
	* lib/posix/compat.lua (optint): New helper function.
Packit 437b5e
	(getrlimit, setrlimit): Reimplement string resource multi-return
Packit 437b5e
	API in Lua.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	refactor: reorder renamed fcntl functions alphabetically.
Packit 437b5e
	* ext/posix/fcntl.c: Order functions alphabetically.
Packit 437b5e
Packit 437b5e
	compat: adjust argerror diagnostics for backwards compatibility.
Packit 437b5e
	* lib/posix/compat.lua (fadvise): Adjust argerror diagnostics.
Packit 437b5e
Packit 437b5e
	maint: adjust badarguments example generation for fadvise.
Packit 437b5e
	* specs/posix_compat_spec.yaml (fadvise): Adjust fadvise
Packit 437b5e
	generation specifier.
Packit 437b5e
Packit 437b5e
	maint: missing declaration.
Packit 437b5e
	* ext/posix/fcntl.c (Pposix_fadvise): Add missing declaration.
Packit 437b5e
Packit 437b5e
	fcntl: bind posix_fadvise minimally.
Packit 437b5e
	Close #169.
Packit 437b5e
	* specs/posix_spec.yaml (fadvise): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (fadvise): ...to here.
Packit 437b5e
	* specs/posix_fcntl_spec.yaml (posix_fadvise): Specify argcheck
Packit 437b5e
	behaviours on supporting systems.
Packit 437b5e
	* ext/posix/fcntl.c (Pfadvise): Rename from this...
Packit 437b5e
	(Pposix_fadvise): ...to this.  Change first argument to a file
Packit 437b5e
	descriptor to match POSIX API.
Packit 437b5e
	* lib/posix/compat.lua (fadvise): Reimplement file handle
Packit 437b5e
	argument version in Lua.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	refactor: move _helper.c functions into only calling submodule.
Packit 437b5e
	* ext/include/_helpers.c (mygetuid, mygetgid): Move from here...
Packit 437b5e
	* ext/posix/unistd.c (mygetuid, mygetgid): ...to here.
Packit 437b5e
Packit 437b5e
	maint: remove unused doselection helper.
Packit 437b5e
	* ext/include/_helpers.c (Selector, doselection): Remove.
Packit 437b5e
	* ext/posix/sys/resource.c (Pgetrlimit): Remove unsolvable FIXME
Packit 437b5e
	comment.
Packit 437b5e
Packit 437b5e
	times: bind times minimally.
Packit 437b5e
	Close #165.
Packit 437b5e
	* specs/posix_spec.yaml (times): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (times): ...to here.
Packit 437b5e
	* specs/posix_sys_times_spec.yaml (times): New file. Specify
Packit 437b5e
	minimal binding of times(2).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add
Packit 437b5e
	specs/posix_sys_times_spec.yaml.
Packit 437b5e
	* ext/posix/sys/times.c (struct mytimes, Ftimes, Stimes): Remove.
Packit 437b5e
	(Ptimes): Simplify accordingly.
Packit 437b5e
	* lib/posix/compat.lua (times): Reimplement legacy multi-string
Packit 437b5e
	or table io/API over minimal C binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-10-23  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	compat: fix a typo, so stat is wrapped with _DEBUG false.
Packit 437b5e
	* lib/posix/compat.lua (stat): When _DEBUG is false, make sure to
Packit 437b5e
	still add a stat function entry to the export table!
Packit 437b5e
Packit 437b5e
	statvfs: bind statvfs minimally.
Packit 437b5e
	* specs/posix_spec.yaml (statvfs): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (statvfs): ...to here.
Packit 437b5e
	* specs/posix_sys_statvfs_spec.yaml (statvfs): New file. Specify
Packit 437b5e
	a minimal binding of statvfs(2).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add
Packit 437b5e
	specs/posix_sys_statvfs_spec.yaml.
Packit 437b5e
	* ext/posix/sys/statvfs.c (Fstatvfs, Kpathvfs, Sstatvfs): Remove.
Packit 437b5e
	(Pstatvfs): Simplify drastically.
Packit 437b5e
	(luaopen_posix_sys_vfs): Add statvfs f_flags bitmasks.
Packit 437b5e
	* lib/posix/compat.lua (statvfs): Reimplement legacy multi-string
Packit 437b5e
	or table io/API over minimal C binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: don't rely on undefined evaluation order.
Packit 437b5e
	* ext/posix/unistd.c (Ppathconf): The C standard allows arguments
Packit 437b5e
	to be evaluated in any order, and we have specl examples that
Packit 437b5e
	require argchecks proceed from left to right, so hoist the first
Packit 437b5e
	argument out of the nested call to satisfy that.
Packit 437b5e
Packit 437b5e
	unistd: wrap pathconf minimally.
Packit 437b5e
	* specs/posix_spec.yaml (pathconf): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (pathconf): ...to here.
Packit 437b5e
	* specs/posix_unistd_spec.yaml (pathconf): Specify a minimal
Packit 437b5e
	binding of pathconf(2).
Packit 437b5e
	* ext/posix/unistd.c (pathconf_map, Fpathconf, Kpathconf)
Packit 437b5e
	(Spathconf): Remove.
Packit 437b5e
	(pathconf): Simplify drastically.
Packit 437b5e
	(luaopen_posix_unistd): Add pathconf argument constants.
Packit 437b5e
	* lib/posix/compat.lua (pathconf): Reimplement legacy multi-
Packit 437b5e
	string or table i/o API over minimal C binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	unistd: wrap sysconf minimally.
Packit 437b5e
	* specs/posix_spec.yaml (sysconf): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (sysconf): ...to here.
Packit 437b5e
	* specs/posix_unist_spec.yaml (sysconf): Specify minimal
Packit 437b5e
	binding of sysconf(2).
Packit 437b5e
	* ext/posix/unistd.c (sysconf_map, Fsysconf, Ksysconf, Ssysconf):
Packit 437b5e
	Remove.
Packit 437b5e
	(sysconf): Simplify drastically.
Packit 437b5e
	(luaopen_posix_unistd): Add sysconf argument constants.
Packit 437b5e
	* lib/posix/compat.lua (sysconf): Reimplement legacy multi-string
Packit 437b5e
	or table i/o API over minimal C binding.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: factor out doselection argument checking function.
Packit 437b5e
	* lib/posix/compat.lua (badoption, checkint, checkstring)
Packit 437b5e
	(checktable, optstring): Accept and propagate new error level
Packit 437b5e
	parameter.
Packit 437b5e
	(checkselection): Use them to factor out argument checking for
Packit 437b5e
	doselection argchecking wrappers.
Packit 437b5e
	(getpasswd, getpid, stat): Simplify argchecking wrappers
Packit 437b5e
	accordingly.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-10-22  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: factor out doselection-like functionality.
Packit 437b5e
	* lib/posix/compat.lua (doselection): Given a table of field
Packit 437b5e
	names, and a mapping table return a tuple of remapped names, or
Packit 437b5e
	the whole table when no fields are passed.
Packit 437b5e
	(getpasswd, getpid, stat): Simplify accordingly.
Packit 437b5e
Packit 437b5e
	specs: specify posix.sys.stat.stat behaviour.
Packit 437b5e
	* specs/posix_sys_stat_spec.yaml (stat): New examples based on
Packit 437b5e
	lstat.
Packit 437b5e
Packit 437b5e
	specs: add missing file.
Packit 437b5e
	* specs/posix_fcntl_spec.yaml: New file.
Packit 437b5e
Packit 437b5e
	posix: move mode munching from C to Lua.
Packit 437b5e
	Close #147.
Packit 437b5e
	* specs/posix_spec.yaml (chmod, mkdir, mkfifo, msgget, open):
Packit 437b5e
	Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (chmod, mkdir, mkfifo, msgget)
Packit 437b5e
	(open): ...to here, and add functionality examples.
Packit 437b5e
	* specs/posix_sys_msg_spec.yaml (msgget),
Packit 437b5e
	specs/posix_sys_stat_spec.yaml (chmod, mkdir, mkfifo): Updated
Packit 437b5e
	versions of original examples, tailored to work with integer mode
Packit 437b5e
	arguments.
Packit 437b5e
	* local.mk (specl_SPECS): Add specs/posix_fcntl_spec.yaml and
Packit 437b5e
	specs/posix_sys_msg_spec.yaml.
Packit 437b5e
	* ext/posix/fcntl.c (Popen): Drastically simplified, to a
Packit 437b5e
	minimal POSIX binding.
Packit 437b5e
	* ext/posix/sys/msg.c (Pmsgget): Likewise.
Packit 437b5e
	* ext/posix/sys/stat.c (Pchomd, Pmkdir, Pmkfifo): Likewise.
Packit 437b5e
	* ext/include/_helpers.c (M, rwxrwxrwx, octal_mode, mode_munch):
Packit 437b5e
	Remove.  No longer in use.
Packit 437b5e
	* lib/posix/compat.lua (checkint): New support function.
Packit 437b5e
	(chmod, mkdir, mkfifo, msgget, open): Reimplement legacy mode
Packit 437b5e
	munching APIs over minimal C bindings.
Packit 437b5e
	(create): Adjust to use new minimal open binding.
Packit 437b5e
Packit 437b5e
2014-10-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	sys.stat: wrap umask minimally.
Packit 437b5e
	* specs/posix_spec.yaml (umask): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (umask): ...to here.
Packit 437b5e
	* specs/posix_sys_stat_spec.yaml (umask): Specify minimal binding
Packit 437b5e
	for umask(2).
Packit 437b5e
	* ext/posix/sys/stat.c (umask): Simplify drastically.
Packit 437b5e
	* ext/include/_helpers.c (pushmode): Remove.  No longer used.
Packit 437b5e
	* lib/posix/compat.lua (rwxrwxrwx, octal_mode, mode_munch):
Packit 437b5e
	Translated from C equivalents in ext/include/_helpers.c.
Packit 437b5e
	(umask): Use them to reimplement legacy modestring based API.
Packit 437b5e
Packit 437b5e
	refactor: move pushtimeval function to ext/posix/sys/time.c.
Packit 437b5e
	There's only one call-site for this function, so no need to keep
Packit 437b5e
	it in the shared helpers file.
Packit 437b5e
	* ext/include/_helpers.c (pushtimeval): Move from here...
Packit 437b5e
	* ext/posix/sys/time.c (pushtimeval): ...to here.
Packit 437b5e
Packit 437b5e
	maint: retain backwards compatibility with v32 posix.stat.
Packit 437b5e
	We now have `posix.sys.stat` for thin bindings of stat and lstat,
Packit 437b5e
	so maintain backwards compatibility with v32 in `posix.stat`.
Packit 437b5e
	* specs/posix_compat_spec.yaml (lstat): Remove.
Packit 437b5e
	(stat): Adjust to expect lstat under the hood.
Packit 437b5e
	* specs/posix_spec.yaml: Adjust stat/lstat clients.
Packit 437b5e
	* lib/posix/compat.lua (lstat): Remove.
Packit 437b5e
	(stat): Adjust to use lstat under the hood.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	specs: fix a bug in lstat.st_blocks example.
Packit 437b5e
	* specs/posix_sys_stat_spec.yaml (lstat): Don't expect number
Packit 437b5e
	of disk blocks used by a file to equal the number used by the
Packit 437b5e
	directory that file is in!
Packit 437b5e
Packit 437b5e
	compat: import bitwise operations before use.
Packit 437b5e
	* lib/posix/compat.lua: Import bitwise operations before use.
Packit 437b5e
Packit 437b5e
	maint: disable prohibit_stat_st_blocks sanity check.
Packit 437b5e
	* build-aux/sanity-cfg.mk (local-checks-to-skip): Add
Packit 437b5e
	sc_prohibit_stat_st_blocks, because we need to use st_blocks
Packit 437b5e
	here until licensing allows using the gnulib/module/stat-size.
Packit 437b5e
Packit 437b5e
	maint: add missing file.
Packit 437b5e
	* specs/posix_sys_stat_spec.yaml: New file, forgotten from last
Packit 437b5e
	commit.
Packit 437b5e
Packit 437b5e
	sys.stat: wrap stat and lstat properly.
Packit 437b5e
	* specs/posix_spec.yaml (lstat, stat): Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (lstat, stat): ...to here.
Packit 437b5e
	* specs/posix_sys_stat_spec.yaml: New file. Specify correct thin
Packit 437b5e
	binding for stat(2) and lstat(2).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_sys_stat_spec.yaml.
Packit 437b5e
	* ext/posix/sys/stat.c (pushstat): New function. Push a struct
Packit 437b5e
	stat-like table on top of the stack.
Packit 437b5e
	(S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISREG)
Packit 437b5e
	(S_ISSOCK): New APIs.
Packit 437b5e
	(S_IFMT, S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFREG)
Packit 437b5e
	(S_IRWXU, S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP)
Packit 437b5e
	(S_IXGRP, S_IRWXO, S_IROTH, S_IWOTH, S_IXOTH, S_ISGID, S_ISUID):
Packit 437b5e
	New constants.
Packit 437b5e
	(Plstat, Pstat): Simplify accordingly.
Packit 437b5e
	(filetype, Fstat, Sstat): Remove.
Packit 437b5e
	* specs/spec_helper.lua (rmtmp): Update to use low-level stat
Packit 437b5e
	call.
Packit 437b5e
	* lib/posix/compat.lua (lstat, stat): Reimplement wierd multi-
Packit 437b5e
	return value, table or tuple input APIs over new lean bindings.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: name posix_compat_spec.yaml correctly.
Packit 437b5e
	* specs/posix_compat.yaml: Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml: ...to here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Adjust accordingly.
Packit 437b5e
Packit 437b5e
	refactor: use std.object.type compatible metatables.
Packit 437b5e
	* specs/spec_helper.lua (prototype): Copied from lua-stdlib.
Packit 437b5e
	* specs/posix_grp_spec.yaml (getgrent, getgrgid, getgrnam):
Packit 437b5e
	Specify prototype responses for return tables.
Packit 437b5e
	* specs/posix_pwd_spec.yaml (getpwent, getpwnam, getpwuid):
Packit 437b5e
	Likewise.,
Packit 437b5e
	* specs/posix_sys_time_spec.yaml (gettimeofday): Likewise.
Packit 437b5e
	* specs/posix_sys_utsname_spec.yaml (uname): Likewise.
Packit 437b5e
	* ext/include/_helpers.c (LPOSIX_STMT_BEG, LPOSIX_STMT_END): New
Packit 437b5e
	macros for safe compound statement macro definitions.
Packit 437b5e
	(LPOSIX_CONST, pushnumberfield, pushstringfield): Use them here.
Packit 437b5e
	(pushliteralfield): New macro for literal fields.
Packit 437b5e
	(setnumberfield, setstringfield, settypemetatable): New macros
Packit 437b5e
	for easy return table creation.
Packit 437b5e
	(pushtimeval): Simplify accordingly. Set metatable._type.
Packit 437b5e
	* ext/posix/curses/chstr.c (luaopen_posix_curses_chstr): Ditto.
Packit 437b5e
	* ext/posix/curses/window.c (luaopen_posix_curses_window): Ditto.
Packit 437b5e
	* ext/posix/grp.c (pushgroup): Ditto.
Packit 437b5e
	* ext/posix/pwd.c (pushpasswd): Ditto.
Packit 437b5e
	* ext/posix/sys/socket.c (pushsockaddrinfo): Ditto.
Packit 437b5e
	* ext/posix/sys/utsname.c (pushutsname): Ditto.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: add missing file.
Packit 437b5e
	* specs/posix_sys_time_spec.yaml: Add missing file.
Packit 437b5e
Packit 437b5e
	doc: name timeval fields correctly.
Packit 437b5e
	* ext/posix/sys/time.c (timeval): Prefix both field names with
Packit 437b5e
	`tv_` per C struct timeval, and pushtimeval table.
Packit 437b5e
Packit 437b5e
	sys.time: wrap gettimeofday properly.
Packit 437b5e
	* specs/posix_spec.yaml (gettimeofday): Move from here...
Packit 437b5e
	* specs/posix_compat.yaml (gettimeofday): ...to here.
Packit 437b5e
	* specs/posix_sys_time_spec.yaml (gettimeofday): Specify correct
Packit 437b5e
	thin binding for gettimeofday(2).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_sys_time_spec.yaml.
Packit 437b5e
	* ext/include/_helpers.c (pushtimeval): New function. Push a
Packit 437b5e
	struct timeval-like table on top of the stack.
Packit 437b5e
	* ext/posix/sys/time.c (Pgettimeofday): Simplify accordingly.
Packit 437b5e
	* lib/posix/compat.lua (gettimeofday): Rewrite misnamed table
Packit 437b5e
	fields returning API here for backwards compatibility.
Packit 437b5e
Packit 437b5e
2014-10-20  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: simplify push{string,number}field and clients.
Packit 437b5e
	* ext/include/_helpers.c (pushnumberfield, pushstringfield):
Packit 437b5e
	Reimplement as macros, with fewer arguments required.  Adjust all
Packit 437b5e
	callers.
Packit 437b5e
	* ext/posix/sys/socket.c (sockaddr_to_lua): Renamed from this...
Packit 437b5e
	(pushsockaddrinfo): ...to this, and simplify considerably.  Adjust
Packit 437b5e
	all callers.
Packit 437b5e
Packit 437b5e
	socket: allow getaddrinfo results as connect address argument.
Packit 437b5e
	Undo overzealous rejection of misnamed fields to socket.connect.
Packit 437b5e
	* ext/posix/sys/socket.c (Safinet_fields): Also permit fields
Packit 437b5e
	written to getaddrinfo results.
Packit 437b5e
Packit 437b5e
	maint: move stat and lstat from posix.unistd to posix.sys.std.
Packit 437b5e
	* ext/posix/unistd.c (filetype, Fstat, Sstat, Plstat, Pstat):
Packit 437b5e
	Move from here...
Packit 437b5e
	* ext/posix/sys/stat.c (filetype, Fstat, Sstat, Plstat, Pstat):
Packit 437b5e
	...to here.
Packit 437b5e
Packit 437b5e
	utsname: wrap uname properly.
Packit 437b5e
	Close #154.
Packit 437b5e
	* specs/posix_spec.yaml (uname): Move from here...
Packit 437b5e
	* specs/posix_compat.yaml (uname): ...to here. Add diagnose bad
Packit 437b5e
	option example.
Packit 437b5e
	* specs/posix_sys_utsname_spec.yaml (uname): Specify correct thin
Packit 437b5e
	binding for uname(2).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_sys_utsname_spec.yaml.
Packit 437b5e
	* ext/posix/sys/utsname.c (pushutsname): New function to push
Packit 437b5e
	a table with struct utsname fields.
Packit 437b5e
	(uname): Use it to push the actual results of the call.
Packit 437b5e
	* lib/posix/compat.lua (uname): Rewrite old format specifier
Packit 437b5e
	replacing API here for backwards compatibility.
Packit 437b5e
Packit 437b5e
	ctype: wrap isprint and isgraph properly.
Packit 437b5e
	Close #160.
Packit 437b5e
	* specs/posix_spec.yaml (isprint, isgraph): Move from here...
Packit 437b5e
	* specs/posix_compat.yaml (isprint, isgraph): ...to here.  Add
Packit 437b5e
	result specifications.
Packit 437b5e
	* specs/posix_ctype_spec.yaml (isprint, isgraph): Specify correct
Packit 437b5e
	thin binding for these functions.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_ctype_spec.yaml.
Packit 437b5e
	* ext/posix/ctype.c (isprint, isgraph): Return the actual result
Packit 437b5e
	of calling these functions.
Packit 437b5e
	* lib/posix/compat.lua (isprint, isgraph): Rewrite the weird true/
Packit 437b5e
	false return API here for backwards compatibility.
Packit 437b5e
Packit 437b5e
	fnmatch: wrap fnmatch(3) properly.
Packit 437b5e
	Close #168.
Packit 437b5e
	* specs/posix_spec.yaml (fnmatch): Move from here...
Packit 437b5e
	* specs/posix_compat.yaml (fnmatch): ...to here.
Packit 437b5e
	* specs/posix_fnmatch_spec.yaml (fnmatch): Specify correct thin
Packit 437b5e
	binding for fnmatch(3).
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add posix_fnmatch_spec.yaml.
Packit 437b5e
	* ext/posix/fnmatch.c (fnmatch): Return the actual result of
Packit 437b5e
	the call.
Packit 437b5e
	(luaopen_posix_fnmatch): Export FNM_NOMATCH constant.
Packit 437b5e
	* lib/posix/compat.lua (fnmatch): Rewrite the weird true/false
Packit 437b5e
	error raising API here for backwards compatibility.
Packit 437b5e
Packit 437b5e
	doc: add curses constants LDocs.
Packit 437b5e
	* ext/posix/curses.c: Document constants.
Packit 437b5e
	(register curses constants): Fix a typo so that KEY_F31 is
Packit 437b5e
	defined as advertised.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	doc: LDoc config improvements.
Packit 437b5e
	* build-aux/config.ld.in (title): Display package name as well as
Packit 437b5e
	release number.
Packit 437b5e
	(description): Mention inclusion of curses bindings explicitly.
Packit 437b5e
	(backtick_references): Require @{...} for cross-references,
Packit 437b5e
	leaving backticks for terminal font markup.
Packit 437b5e
Packit 437b5e
	doc: tidy up LDoc output for posix.termio.
Packit 437b5e
	* ext/posix/termio.c: Tidy up formatting for LDocs.
Packit 437b5e
Packit 437b5e
2014-10-19  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, for git submodule fixes.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Import from slingshot.
Packit 437b5e
Packit 437b5e
	doc: add LDocs for submodule constants.
Packit 437b5e
	* ext/posix/errno.c, ext/posix/fcntl.c, ext/posix/fnmatch.c,
Packit 437b5e
	ext/posix/sched.c, ext/posix/signal.c, ext/posix/stdio.c,
Packit 437b5e
	ext/posix/sys/msg.c, ext/posix/sys/socket.c, ext/posix/sys/wait.c,
Packit 437b5e
	ext/posix/syslog.c, ext/posix/unistd.c: Add LDocs for constants.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-10-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: use correct POSIX gethostid API.
Packit 437b5e
	Closes #153.
Packit 437b5e
	* specs/posix_spec.yaml (hostid): Move from here...
Packit 437b5e
	* specs/posix_compat.yaml (hostid): ...to here.
Packit 437b5e
	* specs/posix_unistd_spect.yaml (gethostid): Specify with correct
Packit 437b5e
	POSIX API name.
Packit 437b5e
	* ext/posix/unistd.c (Phostid): Rename from this...
Packit 437b5e
	(Pgethostid): ...to this.
Packit 437b5e
	* lib/posix/compat.lua (hostid): An alias to gethostid for
Packit 437b5e
	backwards compatibility.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: add missing lib/posix/compat.lua file.
Packit 437b5e
	* lib/posix/compat.lua: New file, forgotten from an earlier
Packit 437b5e
	commit.
Packit 437b5e
Packit 437b5e
	maint: add missing specs/posix_compat.yaml file.
Packit 437b5e
	* specs/posix_compat.yaml: New file, forgotten from previous
Packit 437b5e
	commit.
Packit 437b5e
Packit 437b5e
2014-10-16  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: maintain backwards compatibility for getpasswd.
Packit 437b5e
	Closes #148.
Packit 437b5e
	Separate backwards compatibility functions so that they still
Packit 437b5e
	work as before, but do not appear in the documentation.
Packit 437b5e
	* specs/posix_spec.yaml (creat, getgroup, getpasswd, getpid):
Packit 437b5e
	Move from here...
Packit 437b5e
	* specs/posix_compat_spec.yaml (creat, getgroup, getpasswd)
Packit 437b5e
	(getpid): New file. ...to here.
Packit 437b5e
	* lib/posix.lua.in (argerror, argtypeerror, checkstring)
Packit 437b5e
	(checktable, toomanyargerror, creat, getgroup, getpasswd)
Packit 437b5e
	(getpid): Move from here...
Packit 437b5e
	* lib/posix/compat.lua (argerror, argtypeerror, checkstring)
Packit 437b5e
	(checktable, toomanyargerror, creat, getgroup, getpasswd)
Packit 437b5e
	(getpid): New file. ...to here.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	refactor: simplify posix.getpasswd for consistency.
Packit 437b5e
	* specs/posix_spec.yaml (getpasswd): Simplify behaviours for
Packit 437b5e
	consistency with pasix.getgroup.
Packit 437b5e
	* lib/posix.lua.in (getpasswd): Simplify accordingly.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	unistd: implement getpid and similar APIs.
Packit 437b5e
	Closes #152.
Packit 437b5e
	* specs/posix_unistd_spec.yaml: New file. Specify behaviours for
Packit 437b5e
	getegid, geteuid, getgid, getpgrp, getpid, getppid, getuid.
Packit 437b5e
	* specs/specs.mk (specs_SPECS): Add specs/posix_unistd_spec.yaml.
Packit 437b5e
	* ext/posix/unistd.c (getpid): Delete.
Packit 437b5e
	(setegid, geteuid, getgid, getpgrp, getpid, getppid, getuid): New
Packit 437b5e
	functions. Satisfy specifications.
Packit 437b5e
	* lib/posix.lua.in (getpid): Reimplement legacy API over new
Packit 437b5e
	POSIX bindings.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: getgroup argument defaults to egid.
Packit 437b5e
	* specs/posix_spec.yaml (getgroup): Specify behaviour with no
Packit 437b5e
	arguments.
Packit 437b5e
	* lib/posix.lua.in (group): New LDocs for getgroup return table
Packit 437b5e
	fields.
Packit 437b5e
	(getgroup): Adjust LDocs accordingly.
Packit 437b5e
	Default to egid with no argument.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	pwd: implement POSIX pwd APIs.
Packit 437b5e
	Closes #150.
Packit 437b5e
	(getpwuid, setpwent): Specify correct behaviours.
Packit 437b5e
	* ext/posix/pwd.c (endpwent, getpwent, getpwnam, getpwuid)
Packit 437b5e
	(setpwent): Implement bindings to these POSIX pwd APIs.
Packit 437b5e
	* ext/posix/pwd.c (getpasswd): Remove.
Packit 437b5e
	* lib/posix.lua.in (getpasswd): Reimplement over POSIX APIs to
Packit 437b5e
	continue satisfying specifications.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	refactor: tidy up formatting in grp.c.
Packit 437b5e
	* ext/posix/grp.c: Tidy up formatting.
Packit 437b5e
Packit 437b5e
2014-10-14  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: specify timer math behaviours.
Packit 437b5e
	* specs/posix_spec.yaml (timeradd, timercmp, timersub): Specify
Packit 437b5e
	behaviours.
Packit 437b5e
	* lib/posix.lua.in (timeradd, timercmp, timersub): Argcheck
Packit 437b5e
	wrappers return inner function results.
Packit 437b5e
	(timercmp, timersub): Fix typo with initial definition scopes.
Packit 437b5e
Packit 437b5e
	refactor: reorder posix.lua.in functions alphabetically.
Packit 437b5e
	* lib/posix.lua.in: Reorder functions alphabetically.
Packit 437b5e
Packit 437b5e
	specs: add argument checking to Lua language posix functions.
Packit 437b5e
	* specs/posix_spec.yaml (creat, getgroup, spawn, pipeline)
Packit 437b5e
	(pipeline_iterator, pipeline_slurp, euidaccess, timeradd)
Packit 437b5e
	(timercmp, timersub): Add basic argument checking behaviour
Packit 437b5e
	specifications.
Packit 437b5e
	* lib/posix.lua.in: Move submodule imports to the start, so they
Packit 437b5e
	are available to local Lua functions.
Packit 437b5e
	Cache import table lookups into upvalues for fast access.
Packit 437b5e
	(creat, getgroup, spawn, pipeline, pipeline_iterator)
Packit 437b5e
	(pipeline_slurp, euidaccess, timeradd, timercmp, timersub):
Packit 437b5e
	Use cached upvalues everywhere.
Packit 437b5e
	Split argument type checking into wrapper function which is not
Packit 437b5e
	used when global `_DEBUG` is false.
Packit 437b5e
Packit 437b5e
	refactor: factor Lua argument checking into helper functions.
Packit 437b5e
	* lib/posix.lua.in (argerror, toomanyargerror, argtyperror):
Packit 437b5e
	Argument error message management, inspired by stdlib.
Packit 437b5e
	(checkstring, checktable): Check argument types, inspired by Lua
Packit 437b5e
	C API.
Packit 437b5e
	(creat, getgroup, pipeline): Simplify accordingly.
Packit 437b5e
Packit 437b5e
	maint: revert a1f9049 'move creat from Lua to C'.
Packit 437b5e
	* ext/posix/fcntl.c (creat): Remove.
Packit 437b5e
	* lib/posix.lua (creat): Implement in Lua.
Packit 437b5e
	* specs/posix_spec.yaml (creat): Adjust.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	specs: allow empty root group membership.
Packit 437b5e
	* specs/posix_grp_spec.yaml (getgrgid, getgrnam): Allow empty
Packit 437b5e
	root group membership.
Packit 437b5e
	* specs/posix_spec.yaml (getgroup): Likewise.
Packit 437b5e
Packit 437b5e
	maint: remove trailing blanks.
Packit 437b5e
	* specs/posix_grp_spec.yaml: Remove trailing blanks.
Packit 437b5e
Packit 437b5e
	grp: implement POSIX group APIs.
Packit 437b5e
	Closes #151.
Packit 437b5e
	* specs/posix_grp_spec.yaml (endgrent, getgrent, getgrgid)
Packit 437b5e
	(getgrnam, setgrent): Specify correct behaviours.
Packit 437b5e
	* ext/posix/grp.c (endgrent, getgrent, getgrgid, getgrnam)
Packit 437b5e
	(setgrent): Implement bindings to these POSIX group APIs.
Packit 437b5e
	* specs/posix_spec.yaml (getgroup): Specify expected behaviour.
Packit 437b5e
	* ext/posix/grp.c (getgroup): Remove.
Packit 437b5e
	* lib/posix.lua (getgroup): Reimplement over POSIX APIs to
Packit 437b5e
	continue satisfying specifications.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	specs: remove unused curses subdirectory paths.
Packit 437b5e
	* specs/spec_helper.lua (package.cpath): Remove unused curses
Packit 437b5e
	subdirectory paths.
Packit 437b5e
Packit 437b5e
2014-10-13  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: write final semi-colons at expansion site.
Packit 437b5e
	Give text editors a fighting chance of doing auto-indentation
Packit 437b5e
	properly.
Packit 437b5e
	* ext/posix/curses.c (CCR): Remove final semi-colon from macro
Packit 437b5e
	expansion.
Packit 437b5e
	Write a literal semi-colon at each expansion site.
Packit 437b5e
Packit 437b5e
	curses: add curses.A_COLOR constant where supported.
Packit 437b5e
	* ext/posix/curses.c (register_curses_constants): Define A_COLOR.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	doc: add summary sentence to each curses API.
Packit 437b5e
	* ext/posix/curses.c, ext/posix/curses/window.c: Add API summary
Packit 437b5e
	lines.
Packit 437b5e
Packit 437b5e
2014-10-11  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	doc: put release number in index.html.
Packit 437b5e
	* build-aux/config.ld.in (project): Add release number.
Packit 437b5e
Packit 437b5e
	configury: fix documentation dependencies.
Packit 437b5e
	* local.mk (allhtml): All generated documentation.
Packit 437b5e
	Use it to ensure we regenerate as necessary.
Packit 437b5e
Packit 437b5e
	maint: add missing boilerplate copyright to lua sources.
Packit 437b5e
	* lib/posix.lua.in, lib/posix/util.lua: Add boilerplate copyright
Packit 437b5e
Packit 437b5e
	doc: add per-module overview.
Packit 437b5e
	* build-aux/config.ld.in (boilerplate): Set to true so we can put
Packit 437b5e
	a copyright comment at the very top of each file.
Packit 437b5e
	* ext/posix/ctype.c, ext/posix/curses.c,
Packit 437b5e
	ext/posix/curses/chstr.c, ext/posix/curses/window.c,
Packit 437b5e
	ext/posix/dirent.c, ext/posix/errno.c, ext/posix/fcntl.c,
Packit 437b5e
	ext/posix/fnmatch.c, ext/posix/getopt.c, ext/posix/glob.c,
Packit 437b5e
	ext/posix/grp.c, ext/posix/libgen.c, ext/posix/poll.c,
Packit 437b5e
	ext/posix/pwd.c, ext/posix/sched.c, ext/posix/signal.c,
Packit 437b5e
	ext/posix/stdio.c, ext/posix/stdlib.c, ext/posix/sys/msg.c,
Packit 437b5e
	ext/posix/sys/resource.c, ext/posix/sys/socket.c,
Packit 437b5e
	ext/posix/sys/stat.c, ext/posix/sys/statvfs.c,
Packit 437b5e
	ext/posix/sys/time.c, ext/posix/sys/times.c,
Packit 437b5e
	ext/posix/sys/utsname.c, ext/posix/sys/wait.c,
Packit 437b5e
	ext/posix/syslog.c, ext/posix/termio.c, ext/posix/time.c,
Packit 437b5e
	ext/posix/unistd.c, ext/posix/utime.c: Move copyright comments
Packit 437b5e
	to the very top of the file.  Add a short overview description.
Packit 437b5e
Packit 437b5e
	curses: remove separate curses doc generation.
Packit 437b5e
	* build-aux/make_lcurses_doc.pl: Remove.
Packit 437b5e
	* local.mk (DIST_DOC_DATA, EXTRA_DIST): Adjust accordingly.
Packit 437b5e
	(classesdir): Location for ldoc class html files.
Packit 437b5e
	(dist_classes_DATA): Add new generated curses class docs.
Packit 437b5e
	* ext/posix/curses.c: Rewrite equivalent docs here.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	doc: add updated curses example.
Packit 437b5e
	* examples/curses.lua: Updated example from old lcurses docs.
Packit 437b5e
Packit 437b5e
	curses: don't forget to open curses submodules.
Packit 437b5e
	* ext/posix/curses.c (luaopen_posix_curses): Open submodules.
Packit 437b5e
Packit 437b5e
	curses: factor out chstr and window objects.
Packit 437b5e
	* ext/posix/curses.c: Factor out chstr and window objects,
Packit 437b5e
	methods and support functions from here...
Packit 437b5e
	* ext/posix/curses/chstr.c, ext/posix/curses/window.c: ...to
Packit 437b5e
	here.
Packit 437b5e
	* ext/posix/curses.c, ext/posix/curses/chstr.c,
Packit 437b5e
	ext/posix/curses/window.c: Add rudimentary LDocs to every API.
Packit 437b5e
	* build-aux/config.ld.in (file): Add ext/posix/curses/window.c,
Packit 437b5e
	ext/posix/curses/chstr.c and ext/posix/curses.c.
Packit 437b5e
	* ext/posix/curses/chstr.c: Add __call metamethod for creating
Packit 437b5e
	new objects.
Packit 437b5e
	* ext/posix/curses/chstr.c, ext/posix/curses/window.c: Add _type
Packit 437b5e
	field for compatibility with `std.object.type`.
Packit 437b5e
	* local.mk (EXTRA_ext_posix_posix_la_SOURCES): Add
Packit 437b5e
	ext/posix/curses/chstr.c and ext/posix/curses/window.c.
Packit 437b5e
	(posix_submodules): Add ext/posix/curses/chstr.la and
Packit 437b5e
	ext/posix/curses/window.la.
Packit 437b5e
	* build-aux/config.ld.in (custom_see_handler): Adjust to create
Packit 437b5e
	working URLs for curses 3X manual pages.
Packit 437b5e
Packit 437b5e
2014-10-10  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: rename chstr_ prefixed functions to C prefix.
Packit 437b5e
	* ext/posix/curses.c: Rename chstr_ prefixed function to C
Packit 437b5e
	prefix.
Packit 437b5e
	(chstrlib): Use LUAPOSIX_FUNC instead of MENTRY.
Packit 437b5e
Packit 437b5e
	refactor: rename curses api function with P prefix.
Packit 437b5e
	* ext/posix/curses.c: Rename C prefixed functions with P prefix.
Packit 437b5e
Packit 437b5e
	refactor: use _helpers.c checkint and optint in curses submodule.
Packit 437b5e
	* ext/posix/curses.c: Use checkint and optint throughout instead
Packit 437b5e
	of luaL_checkint & luaL_checknumber and luaL_optint resp.
Packit 437b5e
Packit 437b5e
	refactor: reformat curses.c to match posix sources.
Packit 437b5e
	* ext/posix/curses.c: Reformat.
Packit 437b5e
Packit 437b5e
	refactor: unroll curses submodule function generator macros.
Packit 437b5e
	* ext/posix/curses.c: Unroll obfuscating function generating
Packit 437b5e
	macros.
Packit 437b5e
	(LC_NUMBER, LC_NUMBER2, LC_STRING, LC_STRING2, LC_BOOL)
Packit 437b5e
	(LC_BOOLOK, LCW_BOOLOK, LCW_BOOLOK2, LCW_WIN2, LCW_WIN2YX)
Packit 437b5e
	(LC_ATTROK, LC_TOGGLEOK, LCW_WINBOOLOK, LCW_WININTOK): Remove.
Packit 437b5e
	* ext/include/_helpers.c (pushboolresult, pushintresult)
Packit 437b5e
	(pushstringresult): New macros to simplify returning a single
Packit 437b5e
	object on the stack.
Packit 437b5e
	* ext/include/curses.c (pushokresult): Likewise.
Packit 437b5e
	* ext/posix/ctype.c, ext/posix/curses.c, ext/posix/dirent.c,
Packit 437b5e
	ext/posix/fnmatch.c, ext/posix/signal.c, ext/posix/stdio.c,
Packit 437b5e
	ext/posix/stdlib.c, ext/posix/sys/socket.c, ext/posix/time.c,
Packit 437b5e
	ext/posix/unistd.c: Simplify accordingly.
Packit 437b5e
Packit 437b5e
	curses: use _helpers.c macros.
Packit 437b5e
	* ext/posix/curses.c (LCURSES_SPLICE, LCURSES_STR, LCURSES_STR_1):
Packit 437b5e
	Remove. Adjust all callers to use LPOSIX equivalents from
Packit 437b5e
	ext/include/_helpers.c.
Packit 437b5e
	(curseslib, windowlib): Use LPOSIX_FUNC to declare table entries
Packit 437b5e
	rather than custom MENTRY macros.
Packit 437b5e
Packit 437b5e
	posix: consolidate included C sources.
Packit 437b5e
	* ext/include/strlcpy.c: Add multiple include guards.
Packit 437b5e
	* ext/posix/_helpers.c: Move from here...
Packit 437b5e
	* ext/include/_helpers.c: ...to here.
Packit 437b5e
	* local.mk (EXTRA_ext_posix_posix_la_SOURCES)
Packit 437b5e
	(EXTRA_DIST): Adjust accordingly.
Packit 437b5e
Packit 437b5e
	curses: integrate into posix tree.
Packit 437b5e
	* ext/curses/curses.c: Move from here...
Packit 437b5e
	* ext/posix/curses.c: ...to here.
Packit 437b5e
	* local.mk
Packit 437b5e
	* ext/posix/curses.c (luaopen_curses_c): Rename from this...
Packit 437b5e
	(luaopen_posix_curses): ...to this.
Packit 437b5e
	* lib/curses.lua: Adjust accordingly.
Packit 437b5e
	* local.mk (curses_cpath, ext_curses_curses_c_la_SOURCES)
Packit 437b5e
	(ext_curses_curses_c_la_LDFLAGS): Remove.
Packit 437b5e
	(std_cpath): Simplify accordingly.
Packit 437b5e
	(EXTRA_ext_posix_posix_la_SOURCES): Add ext/posix/curses.c.
Packit 437b5e
	(ex_posix_curses_la_LDFLAGS, ext_posix_posix_la_LDFLAGS): Add
Packit 437b5e
	$(CURSES_LIB).
Packit 437b5e
	(posix_submodules): Add ext/posix/curses.la.
Packit 437b5e
	* ext/posix/curses.c (luaopen_posix_curses): Add a version
Packit 437b5e
	entry to the returned table to match other posix modules.
Packit 437b5e
	* build-aux/make_lcurses_doc.pl: Adjust accordingly.
Packit 437b5e
	* ext/posix/posix.c: Include curses.c module.
Packit 437b5e
	* configure.ac (WANTEDLIBS, WANTEDLUA): Remove. Treat it like
Packit 437b5e
	other posix modules with no OS support.
Packit 437b5e
	* local.mk (dist_lua_DATA, luaexec_LTLIBRARIES): Adjust
Packit 437b5e
	accordingly.
Packit 437b5e
Packit 437b5e
2014-10-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	configury: make posix module version dynamic.
Packit 437b5e
	* lib/posix.lua: Move from here...
Packit 437b5e
	* lib/posix.lua.in: ...to here.
Packit 437b5e
	(version): Use @PACKAGE_STRING@ in place of hard-coded 33.
Packit 437b5e
	* configure.ac (AC_CONFIG_FILES): Add lib/posix.lua.
Packit 437b5e
	* .gitignore: Add lib/posix.lua.
Packit 437b5e
Packit 437b5e
	configury: add missing fdatasync declaration if necessary.
Packit 437b5e
	Fixes #172.
Packit 437b5e
	* configure.ac (AC_CHECK_DECLS_ONCE): Check for missing fdatasync
Packit 437b5e
	declaration, e.g. on Mac OS 10.9.
Packit 437b5e
	* ext/posix/unistd.c (Pfdatasync): Roll our own to save a compiler
Packit 437b5e
	warning if the system didn't supply one.
Packit 437b5e
Packit 437b5e
	posix: build and install modules correctly.
Packit 437b5e
	* configure.ac (POSIX_EXTRA_LDFLAGS): Rename from this...
Packit 437b5e
	(LIBRT): ...to this.
Packit 437b5e
	(LIBCRYPT): Set according to results of AC_SEARCH_LIBS.
Packit 437b5e
	* local.mk (lib_LTLIBRARIES): Moved from the C library tree...
Packit 437b5e
	(luaexec_LTLIBRARIES): ...to the Lua cpath tree.
Packit 437b5e
	(check_LTLIBRARIES): Move from here...
Packit 437b5e
	(EXTRA_LTLIBRARIES): ...to here.
Packit 437b5e
	(check_local): Ensure standalone modules build correctly...
Packit 437b5e
	(clean_local): ...and that file droppings are removed.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: allow standalone reuse of posix submodules.
Packit 437b5e
	* ext/posix/sys/msg.c, ext/posix/sys/socket.c,
Packit 437b5e
	ext/posix/syslog.c: Move guards to ensure even on hosts with no
Packit 437b5e
	sys/msg.h, we don't get an empty object file.
Packit 437b5e
	* local.mk (noinst_LTLIBRARIES): Add standalone compilations to
Packit 437b5e
	ensure the submodules really build as separate compilation units.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: split posix subfiles into separate modules.
Packit 437b5e
	* ext/posix/_helpers.h: Removed.  Content moved from here...
Packit 437b5e
	* ext/posix/_helpers.c: ...to here. Adjust all callers.
Packit 437b5e
	* ext/posix/posix.c (R, luaopen_posix_c): Move registered
Packit 437b5e
	functions and constants from here...
Packit 437b5e
	* ext/posix/ctype.c, ext/posix/dirent.c, ext/posix/errno.c,
Packit 437b5e
	ext/posix/fcntl.c, ext/posix/fnmatch.c, ext/posix/getopt.c,
Packit 437b5e
	ext/posix/glob.c, ext/posix/grp.c, ext/posix/libgen.c,
Packit 437b5e
	ext/posix/poll.c, ext/posix/pwd.c, ext/posix/sched.c,
Packit 437b5e
	ext/posix/signal.c, ext/posix/stdio.c, ext/posix/stdlib.c,
Packit 437b5e
	ext/posix/sys/msg.c, ext/posix/sys/resource.c,
Packit 437b5e
	ext/posix/sys/socket.c, ext/posix/sys/stat.c,
Packit 437b5e
	ext/posix/sys/statvfs.c, ext/posix/sys/time.c,
Packit 437b5e
	ext/posix/sys/times.c, ext/posix/sys/utsname.c,
Packit 437b5e
	ext/posix/sys/wait.c, ext/posix/syslog.c, ext/posix/termio.c,
Packit 437b5e
	ext/posix/time.c, ext/posix/unistd.c, ext/posix/utime.c: ...to
Packit 437b5e
	here. Provide individual `luaopen_<submodule>` entry functions.
Packit 437b5e
	build-aux/config.ld.in, build-aux/sanity-cfg.mk: Adjust
Packit 437b5e
	accordingly.
Packit 437b5e
	* ext/posix/posix.c: Reduce to a single compilation unit that
Packit 437b5e
	includes the sources for all the other submodules.
Packit 437b5e
	* lib/posix.lua (openpty): Move from here...
Packit 437b5e
	* lib/posix/util.lua (openpty): New file. ...to here.
Packit 437b5e
	* lib/posix/sys.lua: Move definitions from here...
Packit 437b5e
	* lib/posix.lua: ...to here.
Packit 437b5e
	* lib/posix/sys.lua: Re-export backwards compatibility APIs from
Packit 437b5e
	here too.
Packit 437b5e
	* lib/posix.lua: Re-export all submodule entry points from here
Packit 437b5e
	too to retain the flat namespace of old releases.
Packit 437b5e
	* local.mk: Adjust accordingly.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: missing headers for Linux portability.
Packit 437b5e
	* ext/posix/pwd.c: Include unistd.h for geteuid and others.
Packit 437b5e
	* ext/posix/stdlib.c: Include fcntl.h for open.
Packit 437b5e
	* ext/posix/sched.c: Include unistd.h for
Packit 437b5e
	_POSIX_PRIORITY_SCHEDULING.
Packit 437b5e
	* ext/posix/sys/msg.c, ext/posix/sys/socket.c,
Packit 437b5e
	ext/posix/syslog.c: Include unistd.h for _POSIX_VERSION.
Packit 437b5e
	* ext/posix/sys/times.h: Include unistd.h for sysconf.
Packit 437b5e
Packit 437b5e
	maint: split giant posix.c file into manageable chunks.
Packit 437b5e
	* ext/posix/posix.c: Separate into sections...
Packit 437b5e
	* ext/posix/_helpers.c, ext/posix/_helpers.h, ext/posix/ctype.c,
Packit 437b5e
	ext/posix/dirent.c, ext/posix/errno.c, ext/posix/fcntl.c,
Packit 437b5e
	ext/posix/fnmatch.c, ext/posix/getopt.c, ext/posix/glob.c,
Packit 437b5e
	ext/posix/grp.c, ext/posix/libgen.c, ext/posix/poll.c,
Packit 437b5e
	ext/posix/pwd.c, ext/posix/sched.c, ext/posix/signal.c,
Packit 437b5e
	ext/posix/stdio.c, ext/posix/stdlib.c, ext/posix/syslog.c,
Packit 437b5e
	ext/posix/termio.c, ext/posix/time.c, ext/posix/unistd.c,
Packit 437b5e
	ext/posix/utime.c: ...here.
Packit 437b5e
	* ext/posix/posix.c: #include sources back into here.
Packit 437b5e
	* build-aux/config.ld.in (file): Adjust accordingly.
Packit 437b5e
	* build-aux/sanity-cfg.mk: Likewise.
Packit 437b5e
	* lib/posix.lua: Likewise.
Packit 437b5e
Packit 437b5e
2014-10-09  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #173 from tylerneylon/master
Packit 437b5e
	doc: gettimeofday uses microsec, not nano.
Packit 437b5e
	
Packit 437b5e
	* ext/posix/posix.c (gettimeofday): Fix a typo in usec documentation.
Packit 437b5e
	Reported by Tyler Neylon
Packit 437b5e
Packit 437b5e
2014-10-09  Tyler Neylon  <tylerneylon@gmail.com>
Packit 437b5e
Packit 437b5e
	Fix a typo: gettimeofday uses microsec, not nano.
Packit 437b5e
Packit 437b5e
2014-10-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: git ignore .dirstamp files.
Packit 437b5e
	* .gitignore: Add .dirstamp catch all.  Remove per-directory
Packit 437b5e
	duplicates of the same.
Packit 437b5e
Packit 437b5e
	slingshot: resync with upstream for yaml bugfix.
Packit 437b5e
	* slingshot: Resync with upstream for yaml quoting bugfix.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream for mkrockspecs bugfix.
Packit 437b5e
	* slingshot: Sync with upstream for mkrocspecs bugfix.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2014-10-06  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: simplify installation instructions in README.md.
Packit 437b5e
	* README.md (Installation): Remove --server flag; moonscript.org
Packit 437b5e
	is checked automatically now.
Packit 437b5e
Packit 437b5e
	maint: add myself to the copyright holders in posix.c.
Packit 437b5e
	* ext/posix/posix.c: Add myself to the copyright holders.
Packit 437b5e
Packit 437b5e
	specs: compare file size rather than racey modification times.
Packit 437b5e
	Fix #145.
Packit 437b5e
	* specs/posix_spec.yaml (stat): Compare the size statistic
Packit 437b5e
	rather than mtime to avoid a race condition.
Packit 437b5e
Packit 437b5e
	posix: remove call to 5.2-only lua_tointegerx and simplify.
Packit 437b5e
	* ext/posix/posix.c (interror): Remove, and fold functionality
Packit 437b5e
	from here...
Packit 437b5e
	(checkinteger): ...to here.
Packit 437b5e
	(argtypeerror): Simplify accordingly.
Packit 437b5e
Packit 437b5e
	specs: don't fail tty tests when run from /dev/console
Packit 437b5e
	* specs/posix_spec.yaml (ttyname): Allow /dev/console.
Packit 437b5e
Packit 437b5e
	posix: enforce argument types for clock_getres and clock_gettime.
Packit 437b5e
	* ext/posix/posix.c (Pclock_getres, Pclock_gettime): Use
Packit 437b5e
	luaL_checkstring instead of lua_tostring to enforce argument
Packit 437b5e
	type checking.
Packit 437b5e
Packit 437b5e
2014-10-05  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: add posix.IPPROTO_UDP.
Packit 437b5e
	* ext/posix/posix.c: Add IPPROTO_UDP definition.
Packit 437b5e
Packit 437b5e
	doc: improve posix LDocs.
Packit 437b5e
	* expt/posix/posix.c: Use [opt] annotations, and add missing
Packit 437b5e
	manual references.
Packit 437b5e
Packit 437b5e
	configury: remove duplicated SPECL_ENV settings.
Packit 437b5e
	* specs/specs.mk (SPECL_ENV): Remove - these same valuas are
Packit 437b5e
	already propagated automatically by slingshot.
Packit 437b5e
Packit 437b5e
	posix: show correct argument errors for fadvise and setsockopt.
Packit 437b5e
	* ext/posix/posix.c (Pfadvise): Use checkint rather than
Packit 437b5e
	luaL_checkinteger for correct argument error formatting.
Packit 437b5e
	(Psetsockopt): Likewise for luaL_checknumber.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream for SPECL_ENV improvements.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* specs/specs.mk (SPECL_ENV): Set according to slingshot
Packit 437b5e
	recommendations.
Packit 437b5e
	* specs/specs_helper.lua (package.path): Likewise.
Packit 437b5e
Packit 437b5e
	posix: argument errors overhaul.
Packit 437b5e
	* specs/spec_helper.lua (bind, init): Remove.
Packit 437b5e
	* specs/lposix_spec.yaml, specs/posix_spec.yaml: Specify argument
Packit 437b5e
	error diagnostics for all APIs.
Packit 437b5e
	* ext/posix/posix.c: Use checknargs, or other means to diagnose
Packit 437b5e
	argument type and arity errors for all APIs.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: reformat for consistency and GNU style function headers.
Packit 437b5e
	* ext/posix/posix.c: Put function return types on a separate
Packit 437b5e
	line for easy function name grepping; don't use cuddle braces;
Packit 437b5e
	indent case branches one tab; exdent labels one tab; don't put a
Packit 437b5e
	space between function call and arguments; do put a space between
Packit 437b5e
	flow control keyword and arguments.
Packit 437b5e
Packit 437b5e
	maint: add buildreq tools to bootstrap.conf.
Packit 437b5e
	* bootstrap.conf (buildreq): List bootstrap build requirements.
Packit 437b5e
Packit 437b5e
2014-10-01  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	docs: move lseek, sync and nice to the correct sections.
Packit 437b5e
	* ext/posix/posix.c (lseek): Move to "File descriptors" section.
Packit 437b5e
	(sync): Move to "File system" section.
Packit 437b5e
	(nice): Move to "Process management" section.
Packit 437b5e
Packit 437b5e
	maint: fix a type name typo.
Packit 437b5e
	* ext/posix/posix.c (poll_fd_list_from_table): Replace missing
Packit 437b5e
	'e' in lua_State from last commit.
Packit 437b5e
Packit 437b5e
	maint: reformat for consistency.
Packit 437b5e
	* ext/posix/posix.c: Use TAB indents, comma-space argument
Packit 437b5e
	separators and function declarations all-on-one-line consistently.
Packit 437b5e
Packit 437b5e
	doc: modernize LDocs.
Packit 437b5e
	* ext/posix/posix.c (Pgetopt, Ppoll, Pfcntl, Pdirname, Pfnmatch)
Packit 437b5e
	(Pglob, Psymlink, Paccess, Pfadvise, Pumask, Putime, Pwaitpid)
Packit 437b5e
	(Psetlogmask): Modernize LDocs.
Packit 437b5e
Packit 437b5e
	doc: use correct manual references for isprint and isgraph.
Packit 437b5e
	* ext/posix/posix.c (isgraph, isprint): Use correct manual page
Packit 437b5e
	references.
Packit 437b5e
Packit 437b5e
2014-09-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: expect sockaddr.groups type to be number, not string.
Packit 437b5e
	* specs/posix_spec.yaml (bind, connect, sendto): Expect correct
Packit 437b5e
	type for AF_NETLINK socket groups field.
Packit 437b5e
Packit 437b5e
	Merge branch 'zevv-sockaddr-errors'
Packit 437b5e
Packit 437b5e
	posix: provide idiomatic argument errors from sockaddr calls.
Packit 437b5e
	* specs/spec_helper.lua (init): New helper to return a partial
Packit 437b5e
	application of expected argument error call.
Packit 437b5e
	* specs/posix_spec.yaml (bind, connect, sendto): Use it to
Packit 437b5e
	specify expected bad argument errors.
Packit 437b5e
	* ext/posix/posix.c (try_getfield): Move from here...
Packit 437b5e
	(checkfieldtype): ...to here.  Lua functions normally throw an
Packit 437b5e
	error for bad arguments, so do that for posix API argument errors
Packit 437b5e
	too.
Packit 437b5e
	(sockaddr_from_lua): Use it.
Packit 437b5e
	Provide a default case branch to report unsupported socket family
Packit 437b5e
	arguments.
Packit 437b5e
	(checknargs): Throw an error for too many arguments.
Packit 437b5e
	(Pbind, Pconnect, Psendto): Use it.
Packit 437b5e
	Revert to reporting invalid socket address if sockaddr_from_lua
Packit 437b5e
	fails without diagnosing a type error.
Packit 437b5e
Packit 437b5e
2014-09-20  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	posix: add better error reporting on sockaddr table member fields.
Packit 437b5e
	* ext/posix/posix.c (try_getfield): New function.  Wrap
Packit 437b5e
	`lua_getfield`, but push more accurate error diagnostics in case
Packit 437b5e
	of type mismatch.
Packit 437b5e
	(sockaddr_from_lua, Pconnect, Pbind, Psendto): Use it.
Packit 437b5e
Packit 437b5e
2014-08-26  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: synch with upstream, for slack integrations.
Packit 437b5e
	* slingshot: Synch with upstream.
Packit 437b5e
	* .slackid: Add slack id.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	Merge branch 'hjelmeland-f_sched_setscheduler'
Packit 437b5e
Packit 437b5e
	posix: tidy up rt_sched patches for merging.
Packit 437b5e
	* configure.ac (AC_CHECK_FUNCS): Add sched_getscheduler and
Packit 437b5e
	sched_setscheduler.
Packit 437b5e
	* ext/posix/posix.c (Psched_setscheduler, Psched_getscheduler):
Packit 437b5e
	Improve compilation guards to also require HAVE_SCHED_GETSCHEDULER
Packit 437b5e
	and HAVE_SCHED_SETSCHEDULER before exposing to Lua.
Packit 437b5e
	* examples/rt_sched.lua: Remove trailing tabs.
Packit 437b5e
Packit 437b5e
2014-08-26  Egil Hjelmeland  <egil.hjelmeland@zenitel.com>
Packit 437b5e
Packit 437b5e
	whitespace polish
Packit 437b5e
Packit 437b5e
	whitespace polish
Packit 437b5e
Packit 437b5e
	Added sched_setscheduler example/test
Packit 437b5e
Packit 437b5e
	Use ifdef _POSIX_PRIORITY_SCHEDULING to protect sched_setscheduler
Packit 437b5e
Packit 437b5e
	merge upstream
Packit 437b5e
Packit 437b5e
2014-08-19  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: support IPC_NOWAIT constant.
Packit 437b5e
	Closes #140.
Packit 437b5e
	* ext/posix/posix.c (luaopen_posix_c): Add IPC_NOWAIT constant.
Packit 437b5e
	Reported by Bernd Eggink.
Packit 437b5e
Packit 437b5e
2014-07-31  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	travis: use luarocks beta with rocks.moonscript.org.
Packit 437b5e
	* .travis.yml: Regenerate with latest slingshot.
Packit 437b5e
Packit 437b5e
	maint: upgrade slingshot to work even when luarocks.org is down.
Packit 437b5e
	* slingshot: Upgrade to latest upstream.
Packit 437b5e
Packit 437b5e
	doc: update luarocks install instructions.
Packit 437b5e
	* README.md (Installation): Update to reference moonscript rocks
Packit 437b5e
	repository, which has better uptime than the default luarocks
Packit 437b5e
	domain used by released LuaRocks.
Packit 437b5e
Packit 437b5e
2014-07-26  Egil Hjelmeland  <egil.hjelmeland@zenitel.com>
Packit 437b5e
Packit 437b5e
	Added sched_setscheduler()/sched_getscheduler()
Packit 437b5e
Packit 437b5e
2014-07-17  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Merge branch 'waffle-iron-master'
Packit 437b5e
Packit 437b5e
2014-07-17  Making GitHub Delicious.  <iron@waffle.io>
Packit 437b5e
Packit 437b5e
	add waffle.io badge
Packit 437b5e
Packit 437b5e
2014-06-29  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: move common spec initialisation to spec_helper.lua.
Packit 437b5e
	This also allows running the latest (unreleased) specl directly
Packit 437b5e
	from the bulid directory without having to call `make check`.
Packit 437b5e
	* specs/spec_helper.lua: New file.  Set package.path and
Packit 437b5e
	package.cpath so that specl can find specified modules without
Packit 437b5e
	LUA_PATH and LUA_CPATH.
Packit 437b5e
	Add common code...
Packit 437b5e
	* specs/lposix_spec.yaml, specs/posix_spec.yaml: ...from here.
Packit 437b5e
	* specs/specs.mk (EXTRA_DIST): Add specs/spec_helper.lua.
Packit 437b5e
Packit 437b5e
	posix: move creat from Lua to C.
Packit 437b5e
	Better support for projects that copy posix.c into their own tree
Packit 437b5e
	and compile directly.
Packit 437b5e
	* lib/posix.lua (creat): Move from here...
Packit 437b5e
	* ext/posix/posix.c (creat): ...to here.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-06-28  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: tighten up readlink call.
Packit 437b5e
	* specs/posix_spec.yaml (readlink): New specifications for
Packit 437b5e
	readlink behaviours and error handling.
Packit 437b5e
	* ext/posix/posix.c (Preadlink): Implement better error handling,
Packit 437b5e
	and robustness.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	posix: wrap stat and lstat correctly.
Packit 437b5e
	* specs/posix_spec.yaml (describe stat): Adjust specs for correct
Packit 437b5e
	behaviour of stat.
Packit 437b5e
	(describe lstat): New examples to specify behaviour of new lstat
Packit 437b5e
	wrapper.
Packit 437b5e
	* ext/posix/posix.c (Pstat): Call stat(2), not lstat(2)!
Packit 437b5e
	(Plstat): New wrapper for lstat(2).
Packit 437b5e
	(R): Add Plstat.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-05-30  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release number to 33.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 32
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
2014-05-25  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: bump copyright to include 2014.
Packit 437b5e
	* COPYING: Bump copyright years to include 2014.
Packit 437b5e
Packit 437b5e
	travis: ignore CVE-2012-3386 failure on Ubuntu Precise.
Packit 437b5e
	Travis runs on Ubuntu 12.04 LTS, which ships an automake old
Packit 437b5e
	enough to still be vulnerable... but we're running CI checks
Packit 437b5e
	here, so that shouldn't fail the whole build!
Packit 437b5e
	* .travis.yml: Skip CVE-2012-3386 check.
Packit 437b5e
Packit 437b5e
	travis: ensure sanity-checks don't back up before a release.
Packit 437b5e
	* .travis.yml: Append `make syntax-check` to prevent sanity
Packit 437b5e
	erosion!
Packit 437b5e
Packit 437b5e
	posix: avoid spurious parens in cpp directives.
Packit 437b5e
	* ext/posix/posix.c: Remove some spurious parentheses in ifdef
Packit 437b5e
	statements.
Packit 437b5e
Packit 437b5e
	posix: use strlcpy instead of broken strncpy.
Packit 437b5e
	* ext/curses/strlcpy.c: Move from here...
Packit 437b5e
	* ext/include/strlcpy.c: ...to here.
Packit 437b5e
	(strlcpy): Declare static to prevent symbol clashes.
Packit 437b5e
	* local.mk (ext_curses_curses_c_la_CPPFLAGS): Remove. strlcpy is
Packit 437b5e
	now in existing header directory.
Packit 437b5e
	* build-aux/sanity-cfg.mk: Adjust strlcpy path references.
Packit 437b5e
	* ext/posix/posix.c: Include strlcpy.c.
Packit 437b5e
	(sockaddr_from_lua, Psetsockopt): Use strlcpy to avoid security
Packit 437b5e
	and safety problems with strncpy.
Packit 437b5e
Packit 437b5e
	maint: remove spurious trailing blank lines.
Packit 437b5e
	* examples/netlink-uevent.lua, examples/ping.lua: Remove
Packit 437b5e
	spurious trailing blank lines.
Packit 437b5e
Packit 437b5e
	configury: exclude ext/posix/posix.c from file_system check.
Packit 437b5e
	* build-aux/sanity-cfg.mk (sc_file_system): Exclude
Packit 437b5e
	ext/posix/posix.c.
Packit 437b5e
Packit 437b5e
	doc: add missing termios api LDocs.
Packit 437b5e
	* ext/posix/posix.c (tcdrain, tcflow, tcflush, tcgetattr)
Packit 437b5e
	(tcsendbreak, tcsetattr): Add missing LDoc api headers.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	doc: add missing socket api LDocs.
Packit 437b5e
	* ext/posix/posix.c (accept, bind, connect, getaddrinfo, listen)
Packit 437b5e
	(recv, recvfrom, send, sendto, setsockopt, shutdown, socket)
Packit 437b5e
	(socketpair): Add missing LDoc api headers.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	maint: `P` function prefix is for Published APIs exposed to Lua.
Packit 437b5e
	Naming a C function with a leading `P` indicates that it is
Packit 437b5e
	published to Lua.  Rename some functions that are not named
Packit 437b5e
	according to this scheme.
Packit 437b5e
	* ext/posix/posix.c (Ppoll_event_map)
Packit 437b5e
	(Ppoll_events_createtable, Ppoll_events_from_table)
Packit 437b5e
	(Ppoll_events_to_table, Ppoll_fd_list_check_table)
Packit 437b5e
	(Ppoll_fd_list_from_table, Ppoll_fd_list_to_table): Rename from
Packit 437b5e
	these...
Packit 437b5e
	(poll_event_map, poll_events_createtable, poll_events_from_table)
Packit 437b5e
	(poll_events_to_table, poll_fd_list_check_table)
Packit 437b5e
	(poll_fd_list_from_table, poll_fd_list_to_table): ...to these.
Packit 437b5e
	Adjust all callers.
Packit 437b5e
Packit 437b5e
	tests: remove spurious tests-termios.lua.
Packit 437b5e
	* tests-termios.lua: Remove.  The existing examples/termios.lua
Packit 437b5e
	demonstrates more functionality.
Packit 437b5e
Packit 437b5e
	docs: reorder posix.c and break into groups of named functions.
Packit 437b5e
	* build-aux/config.ld.in (sort): Alphabetize documentation within
Packit 437b5e
	sections.
Packit 437b5e
	* ext/posix/posix.c: Add section blocks for related functions and
Packit 437b5e
	move declarations into appropriate sections.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Sync with upstream, particularly for datarootdir
Packit 437b5e
	fixes that make docs visible with `luarocks doc luaposix`.
Packit 437b5e
	* bootstrap.conf (slingshot_files): Remove
Packit 437b5e
	m4/ax_compare_version.m4.
Packit 437b5e
	* .gitignore: Update.
Packit 437b5e
Packit 437b5e
	doc: show LDocs for lib/posix.lua and lib/posix/sys.lua.
Packit 437b5e
	* ext/posix/config.ld: Move from here...
Packit 437b5e
	* build-aux/config.ld.in: ...to here.
Packit 437b5e
	(title): Add Package name and version.
Packit 437b5e
	(file): Add lib/posix.lua and lib/posix/sys.lua.
Packit 437b5e
	(merge): Set to true to combine LDocs for lib/posix.lua and
Packit 437b5e
	ext/posix/posix.c into a single document module.
Packit 437b5e
	(format): Change from discount to markdown.
Packit 437b5e
	* ext/posix/posix.c (@module): Change to `posix` to merge with
Packit 437b5e
	lib/posix.lua.
Packit 437b5e
	* lib/posix.lua: Add `@module posix` declaration.
Packit 437b5e
	* lib/posix/sys.lua: Add `@module posix.sys` declaration.
Packit 437b5e
	(euidaccess, spawn, timeradd): Fix LDoc formatting errors.
Packit 437b5e
	* local.mk (examplesdir, modulesdir): New subdirectory locations
Packit 437b5e
	for generated documentation to install to.
Packit 437b5e
	(dist_examples_DATA): List generated examples files explicitly to
Packit 437b5e
	avoid GNU make dependency on $(wildcard) expansion.
Packit 437b5e
	(dist_modules_DATA): Add doc/modules/posix.html and
Packit 437b5e
	doc/modules/posix.sys.html.
Packit 437b5e
	(dist_data_DATA): Replace this...
Packit 437b5e
	(dist_lua_DATA): ...with this
Packit 437b5e
	(luaposixdir): Subdirectory for sys.lua to install to.
Packit 437b5e
	(dist_luaposix_DATA): Add lib/posix/sys.lua.
Packit 437b5e
	($(dist_doc_DATA)): Fix LDoc invocation for new config.ld
Packit 437b5e
	location.
Packit 437b5e
	(doc): Add $(dist_examples_DATA) and $(dist_modules_DATA)
Packit 437b5e
	dependencies.
Packit 437b5e
	(EXTRA_DIST): Add missing examples files.
Packit 437b5e
	Change location of config.ld.
Packit 437b5e
	(MAINTAINERCLEANFILES): Add $(dist_examples_data) and
Packit 437b5e
	$(dist_modules_DATA).
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	sys: new submodule for non-POSIX apis.
Packit 437b5e
	Close #73
Packit 437b5e
	* lib/posix.lua (list, euidaccess, pipeline, pipeline_iterator)
Packit 437b5e
	(pipeline_slurp, spawn, timeradd, timersub): Move from here...
Packit 437b5e
	* lib/posix/sys.lua (list, euidaccess, pipeline)
Packit 437b5e
	(pipeline_iterator, pipeline_slurp, spawn, timeradd, timersub):
Packit 437b5e
	New file. ...to here.
Packit 437b5e
	* lib/posix.lua (__index): Attempt to load a suitably named
Packit 437b5e
	submodule to satisfy missing keys.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
2014-05-24  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	docs: add some formatting consistency.
Packit 437b5e
	* ext/posix/posix.c: Escape underscores for markdown processing
Packit 437b5e
	where necessary to avoid spurious italics, and try to be more
Packit 437b5e
	consistent with string examples in double quotes and constants
Packit 437b5e
	in fixed width font.
Packit 437b5e
Packit 437b5e
	posix: fix gettimeofday LDocs to match API.
Packit 437b5e
	Fix #133.
Packit 437b5e
	* ext/posix/posix.c (Pgettimeofday): Has returned a Lua table
Packit 437b5e
	with `sec` and `usec` fields for quite some time... make sure
Packit 437b5e
	the LDocs reflect that!
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: check fork() child processes in parent process.
Packit 437b5e
	Close #110.
Packit 437b5e
	* specs/posix_spec.yaml (fork): Running expect in the forked
Packit 437b5e
	specl child process has no effect on the state and reporting in
Packit 437b5e
	the parent.  Write the results from the child into a shared pipe
Packit 437b5e
	and check them in the parent instead.
Packit 437b5e
Packit 437b5e
	Merge pull request 122 from cathalgarvey/luaposix
Packit 437b5e
	Almost entirely rewritten to be lighter, correctly formatted, and
Packit 437b5e
	to work when the host has no posix_advise implementation.
Packit 437b5e
Packit 437b5e
	Merge pull request #122 from cathalgarvey/luaposix
Packit 437b5e
	Entirely rewritten.
Packit 437b5e
Packit 437b5e
	configury: add back net/if.h accidentally removed in merge conflict.
Packit 437b5e
	* configure.ac (AC_CHECK_HEADERS): Add back net/if.h.
Packit 437b5e
Packit 437b5e
	examples: predicate ping example on p.SO_BINDTODEVICE.
Packit 437b5e
	* examples/ping.lua: If either p.SOCK_RAW or p.SO_BINDTODEVICE
Packit 437b5e
	are not defined, then the underlying OS libraries didn't have
Packit 437b5e
	the necessary functionality for luaposix to bind to... so skip
Packit 437b5e
	the example in that case.
Packit 437b5e
Packit 437b5e
	Merge pull request #132 from zevv/ping.
Packit 437b5e
	posix: add support for netlink sockets with uevent netlink example.
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Merge branch 'netlink' of github.com:zevv/luaposix into zevv-netlink
Packit 437b5e
Packit 437b5e
	Conflicts:
Packit 437b5e
		configure.ac
Packit 437b5e
		ext/posix/posix.c
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #131 from zevv/ping
Packit 437b5e
	posix: add SOCK_RAW, IPPROTO_ICMP and SO_BINDTODEVICE support.
Packit 437b5e
Packit 437b5e
2014-05-21  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added support for netlink sockets with small uevent netlink example
Packit 437b5e
Packit 437b5e
	Added SOCK_RAW, IPPROTO_ICMP and SO_BINDTODEVICE; this allows sending and receiving of raw icmp (e.g. ping) packets from lua
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: add Debug priority to syslog LDocs.
Packit 437b5e
	* ext/posix/posix.c (syslog): Add Debug priority to LDocs.
Packit 437b5e
Packit 437b5e
	posix: include strings.h for strcasecmp declaration.
Packit 437b5e
	* configure.ac (AC_CHECK_HEADERS): Add strings.h.
Packit 437b5e
	* ext/posix/posix.c (strings.h): If the host system is POSIX
Packit 437b5e
	compliant enough to ship this header, include it for a strcasecmp
Packit 437b5e
	declaration.
Packit 437b5e
Packit 437b5e
	posix: FreeBSD 10 doesn't define O_DSYNC.
Packit 437b5e
	* ext/posix/posix.c (O_DSYNC): Set a fallback definition of 0.
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #128 from ittner/fix-getopt-ldoc-warning
Packit 437b5e
	doc: Remove ldoc warning for getopt @see
Packit 437b5e
Packit 437b5e
2014-05-21  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	travis: update scripts from slingshot.
Packit 437b5e
	* .travis.yml: Regenerate with latest slingshot for a slew of
Packit 437b5e
	improvements.
Packit 437b5e
Packit 437b5e
	NEWS: Update.
Packit 437b5e
	* NEWS: Update.
Packit 437b5e
Packit 437b5e
	gnulib: sync with upstream.
Packit 437b5e
	* gnulib: Update to latest master.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Sync with upstream for grep GNUism fix.
Packit 437b5e
	* bootstrap: Sync with slingshot/bootstrap.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2014-05-11  Alexandre Erwin Ittner  <alexandre@ittner.com.br>
Packit 437b5e
Packit 437b5e
	doc: Remove ldoc warning for getopt @see
Packit 437b5e
Packit 437b5e
2014-03-14  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	openpty: add missing posix. prefix to call of close
Packit 437b5e
Packit 437b5e
2014-01-05  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	Fix the annoying contest.sed file dropping bug.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Sync with slingshot.
Packit 437b5e
Packit 437b5e
2014-01-04  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: update copyright notices to include 2014.
Packit 437b5e
	* .x-update-copyright: New file. Exclude files not owned by this
Packit 437b5e
	project from update-copyright rules.
Packit 437b5e
	* build-aux/.gitignore: Add update-copyright.
Packit 437b5e
	* bootstrap.conf, configure.ac, local.mk: Bump copyright year.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream, and simplify accordingly.
Packit 437b5e
	* slingshot: Sync with upstream.
Packit 437b5e
	* bootstrap: Update from slingshot.
Packit 437b5e
	* bootstrap.slingshot: Remove, no longer required.
Packit 437b5e
	* bootstrap.conf: Remove bootstrap.slingshot source boilerplate.
Packit 437b5e
	(luaposix_force_readme): Remove. Automated by slingshot now.
Packit 437b5e
	* .gitignore: Update.
Packit 437b5e
	* .travis.yml: Until github.com/stevedonovan/LDoc catches up with
Packit 437b5e
	require fixes for luaposix, use gvvaughan/LDoc on Travis.
Packit 437b5e
Packit 437b5e
2013-12-11  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	doc: add missing LDoc function tag.
Packit 437b5e
	* ext/posix/posix.c (strptime): Add missing @function tag.
Packit 437b5e
Packit 437b5e
	doc: fix LDoc manual page custom_see_handler pattern.
Packit 437b5e
	* ext/posix/config.ld (custom_see_handler): Add a missing closing
Packit 437b5e
	`%)`.
Packit 437b5e
	(upat): Pull the format string up per LDoc documentation.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Update from latest upstream, particularly for an
Packit 437b5e
	empty table access fix in mkrockspecs.
Packit 437b5e
Packit 437b5e
	doc: move DateTime functions back to their own LDoc section. (Fix #119)
Packit 437b5e
	* ext/posix/posix.c: Move Date and Time functions back to the
Packit 437b5e
	end of the implementation functions to avoid picking up non-
Packit 437b5e
	datetime related functions in the generated LDoc docs.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Update to latest upstream revision, particularly
Packit 437b5e
	to pick up fixes for changes in Travis wrt. libyaml.so location.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
2013-12-11  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #121 from zevv/socketpair
Packit 437b5e
	Added socketpair() and AF_UNIX domain
Packit 437b5e
Packit 437b5e
	Merge pull request #120 from craigbarnes/treefix
Packit 437b5e
	Avoid unnecessary table creation and unpacking in examples/tree.lua
Packit 437b5e
Packit 437b5e
	Merge pull request #118 from craigbarnes/linkfix
Packit 437b5e
	Fix typo in readme
Packit 437b5e
Packit 437b5e
	Merge pull request #117 from fperrad/master
Packit 437b5e
	fix without IPv6
Packit 437b5e
Packit 437b5e
2013-11-25  Cathal Garvey  <cathalgarvey@cathalgarvey.me>
Packit 437b5e
Packit 437b5e
	Added Pfadvise and constant advise values. Untested.
Packit 437b5e
Packit 437b5e
2013-10-31  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added socketpair() and AF_UNIX domain
Packit 437b5e
Packit 437b5e
2013-09-21  Craig Barnes  <cr@igbarn.es>
Packit 437b5e
Packit 437b5e
	Avoid unnecessary table creation and unpacking in examples/tree.lua
Packit 437b5e
Packit 437b5e
	Fix typo in LuaRocks URL
Packit 437b5e
Packit 437b5e
2013-09-20  Francois Perrad  <francois.perrad@gadz.org>
Packit 437b5e
Packit 437b5e
	fix without IPv6
Packit 437b5e
Packit 437b5e
2013-09-13  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Update to latest revision, particularly to get the
Packit 437b5e
	fix for release announcement content.
Packit 437b5e
Packit 437b5e
2013-09-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* configure.ac (AC_INIT): Bump revision to 32.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 31
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
	slingshot: sync with upstream.
Packit 437b5e
	* slingshot: Update to latest version for recent bootstrap fixes,
Packit 437b5e
	among others.
Packit 437b5e
	* bootstrap: Regenerate.
Packit 437b5e
Packit 437b5e
	maint: update NEWS.
Packit 437b5e
	* NEWS: Update with user visible changes since previous release.
Packit 437b5e
Packit 437b5e
	posix: fix a typo in tc[gs]etattr constant definitions.
Packit 437b5e
	* ext/posix/posix.c (VTOP): Changed spelling from this...
Packit 437b5e
	(VSTOP): ...to this.
Packit 437b5e
Packit 437b5e
	maint: bump revision to 31.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release revision to 31.
Packit 437b5e
Packit 437b5e
	maint: remove trailing spaces added by previous merge.
Packit 437b5e
	* ext/posix/posix.c (Ptcsetattr, Ptcgetattr): Remove trailing
Packit 437b5e
	whitespace.
Packit 437b5e
Packit 437b5e
2013-09-07  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #116 from zevv/termios-cc-flags
Packit 437b5e
	Added missing termios cc flags
Packit 437b5e
Packit 437b5e
2013-09-03  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	all termios c_cc flags available are now used in tcgetattr() and tcsetattr(), even though no symbols may be available for each flag. this makes sure a tcsetattr() after a tcgetattr() preserves all flags, even the non POSIX cmplient ones
Packit 437b5e
Packit 437b5e
2013-09-02  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added missing termios cc flags
Packit 437b5e
Packit 437b5e
2013-08-29  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
Packit 437b5e
	Release version 30
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
	maint: update NEWS.
Packit 437b5e
	* NEWS: Update with user visible changes since previous release.
Packit 437b5e
Packit 437b5e
	boostrap: sync with upstream.
Packit 437b5e
	This version fixes some cosmetic and CLI inconsistencies, as
Packit 437b5e
	well as improving portability to BSDs.
Packit 437b5e
	* bootstrap: sync with upstream.
Packit 437b5e
Packit 437b5e
	configury: don't nuke the lib subdirectory.
Packit 437b5e
	Now that we've made use of lib for Lua library files, make sure
Packit 437b5e
	not to let gnulib-tool scribble in it.
Packit 437b5e
	* bootstrap.conf (source_base): Tell gnulib-tool to put its empty
Packit 437b5e
	library directory somewhere harmless.
Packit 437b5e
	(luaposix_remove_empty_lib): And then remove that.
Packit 437b5e
Packit 437b5e
	maint: reorganise sources into subdirectories.
Packit 437b5e
	Rather than dump everything into the project root directory
Packit 437b5e
	indiscriminately, move extension modules into subdirectories
Packit 437b5e
	of a new 'ext/' subdirectory, Lua libraries into 'lib/'. And
Packit 437b5e
	adjust the build system to work with that layout.
Packit 437b5e
	* lua52compat.h: Move from here...
Packit 437b5e
	* ext/include/lua52compat.h: ...to here.
Packit 437b5e
	* local.mk (AM_CPPFLAGS): Add -I ext/include.
Packit 437b5e
	* lcurses.c, strlcpy.c, curses.lua: Move from here...
Packit 437b5e
	* ext/curses/curses.c, ext/curses/strlcpy.c, lib/curses.lua:
Packit 437b5e
	...to here.
Packit 437b5e
	* lposix.c, posix.lua: Move from here...
Packit 437b5e
	* ext/posix/posix.c, lib/posix.lua: ...to here.
Packit 437b5e
	* configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects for future
Packit 437b5e
	compatibility with Automake 2.0.
Packit 437b5e
	(WANTEDLIBS, WANTEDLUA): Adjust paths.
Packit 437b5e
	* local.mk (std_cpath, std_path, EXTRA_LTLIBRARIES, lib_LTLIBRARIES)
Packit 437b5e
	(dist_data_DATA, dist_doc_DATA, EXTRA_DIST): Likewise.
Packit 437b5e
	* tree.lua: Move from here...
Packit 437b5e
	* examples/tree.lua: ...to here.
Packit 437b5e
	* make_lcurses_doc.pl, config.ld: Move from here...
Packit 437b5e
	* build-aux/make_lcurses_doc.pl, ext/posix/config.ld: ...to here,
Packit 437b5e
	and adjust for relative path changes.
Packit 437b5e
	* dummy.c: No longer used. Remove.
Packit 437b5e
	* build-aux/sanity-cfg.mk: Remove references to dummy.c.
Packit 437b5e
	Adjust for relative path changes.
Packit 437b5e
	* .gitignore: Update.
Packit 437b5e
Packit 437b5e
	examples: error messages are not capitalized.
Packit 437b5e
	* examples/lock.lua: Don't capitalize error messages.
Packit 437b5e
	Discovered by 'make syntax-check'
Packit 437b5e
Packit 437b5e
2013-08-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix: remember to register Pshutdown function.
Packit 437b5e
	* lposix.c (R): Add Pshutdown MENTRY.
Packit 437b5e
Packit 437b5e
	posix: remove unused variables.
Packit 437b5e
	* lposix.c (Precvfrom): Remove unused host and serv variables.
Packit 437b5e
	(Paccept): Likewise, and remove unused r as well.
Packit 437b5e
Packit 437b5e
	posix: mark unused parameters for gcc.
Packit 437b5e
	* lposix.c (UNUSED): New macro, expands to __unused__ with GNU C.
Packit 437b5e
	(FgetID, Fsysconf, Pcloselog, Psync): Use it to mark unused
Packit 437b5e
	function parameters.
Packit 437b5e
Packit 437b5e
	posix: report correct bad option number.
Packit 437b5e
	* lposix.c (badoption): Report the passed option number as being
Packit 437b5e
	the bad option.
Packit 437b5e
Packit 437b5e
2013-08-27  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #114 from GranPC/patch-1
Packit 437b5e
	Fix repeated "Test ipv4" instead of "Test ipv6"
Packit 437b5e
Packit 437b5e
2013-08-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	docs: fix typo in chdir ldoc comments.
Packit 437b5e
	* lposix.c (Pchdir): Supply a valid usage example.
Packit 437b5e
	Closes issue #113.
Packit 437b5e
	Reported by Craig Barnes.
Packit 437b5e
Packit 437b5e
2013-08-26  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #112 from craigbarnes/master
Packit 437b5e
	Fix and clean up Markdown formatting in README
Packit 437b5e
Packit 437b5e
2013-08-26  Enrico Tassi  <gareuselesinge@debian.org>
Packit 437b5e
Packit 437b5e
	posix: port getcwd to Hurd.
Packit 437b5e
	* lposix.c (Pgetcwd): Use get_current_dir_name function on Hurd.
Packit 437b5e
Packit 437b5e
2013-08-26  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	maint: git ignore build-aux/compile.
Packit 437b5e
	* build-aux/.gitignore: Add compile.
Packit 437b5e
Packit 437b5e
	configury: don't use unicode characters in shell comments.
Packit 437b5e
	* configure.ac: Replace unicode apostrophes with ASCII equivalents.
Packit 437b5e
Packit 437b5e
	typo: set the configure package version correctly.
Packit 437b5e
	* configure.ac (AC_INIT): The correct release number is 30.
Packit 437b5e
Packit 437b5e
	posix: improve portability of constant definitions.
Packit 437b5e
	Rather than try to catalog what compiler/OS releases supply what
Packit 437b5e
	constant symbols in their headers with a rats nest of `#if __BSD`
Packit 437b5e
	etc, wrap all of the contentious preprocessor defines in matching
Packit 437b5e
	`#ifdefs` so that they are only provided by luaposix in the
Packit 437b5e
	environments that define them.  This should provide much better
Packit 437b5e
	future portability to new compiler/OS combinations.
Packit 437b5e
	* lposix.c (lua_open_posix_c): Simplify the declarations by using
Packit 437b5e
	a consistent MENTRY definition.
Packit 437b5e
	Except for extremely well-known groups of symbols, and groups
Packit 437b5e
	that are already inside _POSIX_VERSION >= 200112L guards, wrap
Packit 437b5e
	each constant declaration in a matching `#ifdef`.
Packit 437b5e
Packit 437b5e
2013-08-12  GranPC  <gran.pc@gmail.com>
Packit 437b5e
Packit 437b5e
	Fix repeated "Test ipv4" instead of "Test ipv6"
Packit 437b5e
Packit 437b5e
2013-08-10  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Merge pull request #111 from markgurevich/mg/2625/file-locks-v2
Packit 437b5e
	Lock or unlock files with fcntl()
Packit 437b5e
Packit 437b5e
2013-08-08  Craig Barnes  <cr@igbarn.es>
Packit 437b5e
Packit 437b5e
	Fix and clean up Markdown formatting in README.md
Packit 437b5e
Packit 437b5e
2013-07-24  Mark Gurevich  <markgurevichster@gmail.com>
Packit 437b5e
Packit 437b5e
	Lock or unlock files with fcntl()
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	typo: fix target URL of Travis badge link in README.md.
Packit 437b5e
	* README.md: Fix target URL of Travis badge link.
Packit 437b5e
Packit 437b5e
	maint: post-release administrivia.
Packit 437b5e
	* NEWS: Add header line for next release.
Packit 437b5e
	* .prev-version: Record previous version.
Packit 437b5e
	* ./local.mk (old_NEWS_hash): Auto-update.
Packit 437b5e
	* configure.ac (AC_INIT): Bump revision to 30.
Packit 437b5e
Packit 437b5e
	Release version 29
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
	configury: distribute config.ld.
Packit 437b5e
	* local.mk (EXTRA_DIST): Add config.ld, and various example files.
Packit 437b5e
Packit 437b5e
	slingshot: update.
Packit 437b5e
	* slingshot: Update to version with spurious gitmodule output
Packit 437b5e
	from sanity checks fixed, and improved release branch cleanup.
Packit 437b5e
Packit 437b5e
	configury: run automake without --foreign flag.
Packit 437b5e
	* configure.ac (AM_INIT_AUTOMAKE): Remove foreign.
Packit 437b5e
	* bootstrap.conf (luaposix_force_changelog, luaposix_finish):
Packit 437b5e
	Remove.  Bootstrap handles this automatically.
Packit 437b5e
	(luaposix_force_readme): Distribute README file.
Packit 437b5e
	* .gitignore: Add README.
Packit 437b5e
Packit 437b5e
	curses: remove trailing whitespace.
Packit 437b5e
	* lcurses.c (Wresize): Remove trailing whitespace.
Packit 437b5e
Packit 437b5e
	NEWS: update.
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #105 from aeron005/master
Packit 437b5e
	Added wresize binding in curses library
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: update.
Packit 437b5e
	* slingshot: Update to version with ax_lua.m4 cross compilation
Packit 437b5e
	fix.
Packit 437b5e
	Reported by Reuben Thomas.
Packit 437b5e
Packit 437b5e
	Closes #98.
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	sync, fsync, fdatasync, nice, lseek: a bunch of new calls.
Packit 437b5e
	* lposix.c (Psync, Pfsync, Pfdatasync): Wrap disk synchronisation
Packit 437b5e
	calls.
Packit 437b5e
	(Pnice): New call. Change process priority.
Packit 437b5e
	(Plseek): New call. Move current position of a file discriptor.
Packit 437b5e
	* specs/posix_spec.yaml (sync, fsync, fdatasync): New pending
Packit 437b5e
	expectations.
Packit 437b5e
	(nice, lseek): Specify basic behaviour of these new calls.
Packit 437b5e
	Submitted by zevv@github.com, from a patch by Ico Doornekamp.
Packit 437b5e
Packit 437b5e
	Closes #93.
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: convert socket tests from issue #92 to specl.
Packit 437b5e
	* specs/posix_spec.yaml (socket handling): New spec, not working
Packit 437b5e
	on Mountain Lion, at least :(
Packit 437b5e
	Awaiting feedback, see issue #92.
Packit 437b5e
	Reported by zevv@github, from a patch by Ico Doornekamp.
Packit 437b5e
Packit 437b5e
	specs: replace racy posix.times specs with more robust implementation.
Packit 437b5e
	* specs/posix_spec.yaml (time accounting): Note the inconsistency
Packit 437b5e
	between posix.times() and posix.times (...all keys...) from
Packit 437b5e
	issue #107, and replace racy spec for posix.times().
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	docs: fix typo in clock_gettime ldoc comments.
Packit 437b5e
	* lposix.c (Pclock_gettime): Fix a cut-n-paste duplication typo.
Packit 437b5e
	Reported by Steve Donovan.
Packit 437b5e
Packit 437b5e
	Closes #104.
Packit 437b5e
Packit 437b5e
2013-06-27  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	slingshot: update.
Packit 437b5e
	* slingshot: Update.
Packit 437b5e
	* configure.ac (SS_CONFIG_TRAVIS): Remove luafilesystem now that
Packit 437b5e
	slingshot takes care of ldoc prerequisites.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
	* .gitignore: Ignore doc directory rather than docs, as latest
Packit 437b5e
	ldoc seems to be putting files in the former now.
Packit 437b5e
Packit 437b5e
	travis: regenerate .travis.yml.
Packit 437b5e
	.travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	configury: travis builds with 5.2 require luafilesystem rock.
Packit 437b5e
	* configure.ac (SS_CONFIG_TRAVIS): Add luafilesystem to extra
Packit 437b5e
	rocks list.
Packit 437b5e
Packit 437b5e
	configury: bump SPECL_MIN to 8.
Packit 437b5e
	* configure.ac (SPECL_MIN): Bump to 8, because we're using the
Packit 437b5e
	Specl 8 hell.spawn APIs now.
Packit 437b5e
Packit 437b5e
	typo: the documentation directory is called doc, not docs!
Packit 437b5e
	* local.mk (dist_doc_DATA, MAINTAINERCLEANFILES): Use correctly
Packit 437b5e
	spelled 'doc' instead of previous typo, 'docs'.
Packit 437b5e
Packit 437b5e
	specl: update to Specl 8 changes in hell.spawn.
Packit 437b5e
	* specs/posix_spec.yaml: Specl 8 no longer copies table entries
Packit 437b5e
	from require results into environments automatically, so make sure
Packit 437b5e
	we capture the table, and then use qualified access to spawn.
Packit 437b5e
Packit 437b5e
	slingshot: update.
Packit 437b5e
	* slingshot: Update.
Packit 437b5e
	* bootstrap.slingshot: Install latest revision.
Packit 437b5e
Packit 437b5e
2013-05-23  aeron005  <mitchell.burdette@gmail.com>
Packit 437b5e
Packit 437b5e
	Added binding for wresize to curses library
Packit 437b5e
Packit 437b5e
2013-05-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	Revert "Release version 29"
Packit 437b5e
	This reverts commit bfce2bc28a5a5f675e4b6f7ef790bcdbfba15aad.
Packit 437b5e
Packit 437b5e
	syntax-check: remove trailing whitespace.
Packit 437b5e
	* build-aux/sanity-cfg.mk (error-message-uppercase): Exclude
Packit 437b5e
	examples/socket.lua, which otherwise triggers false positives.
Packit 437b5e
	* NEWS, examples/socket.lua, examples/termios.lua, lposix.c:
Packit 437b5e
	Remove trailing whitespace.
Packit 437b5e
Packit 437b5e
	Release version 29
Packit 437b5e
	* NEWS: Record release date.
Packit 437b5e
Packit 437b5e
	configury: distribute INSTALL for autotools instructions.
Packit 437b5e
	* bootstrap.conf (gnulib_non_module_files): Add doc/INSTALL.
Packit 437b5e
Packit 437b5e
	typo: use correct spelling of prefix in README.md.
Packit 437b5e
	* README.md: s/perfix/prefix/g
Packit 437b5e
Packit 437b5e
2013-05-09  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	Merge pull request #99 from zevv/fix-dir-example
Packit 437b5e
	Fixed dir example for 5.2
Packit 437b5e
Packit 437b5e
	Merge pull request #96 from zevv/fix-glob-example
Packit 437b5e
	Fixed glob example
Packit 437b5e
Packit 437b5e
	Merge pull request #100 from zevv/add-b57600
Packit 437b5e
	Added missing 57k6 baudrate to termios table
Packit 437b5e
Packit 437b5e
	Merge pull request #95 from zevv/fix-poll
Packit 437b5e
	I broke poll with commit 8deb0ebd041ab6d4761f86a7a906dd850111bae7
Packit 437b5e
Packit 437b5e
	Merge pull request #94 from zevv/fix-poll-example
Packit 437b5e
	Fix poll example, open failed due to wrong 2nd argument type
Packit 437b5e
Packit 437b5e
2013-05-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: add pending guards to weird Travis failures.
Packit 437b5e
	* specs/posix_spec.yaml: Mark pending those examples inexplicably
Packit 437b5e
	failing on Travis, per github issue #102.
Packit 437b5e
Packit 437b5e
	configury: bump release version to 29.
Packit 437b5e
	* configure.ac (AC_INIT): Bump release version to 29.
Packit 437b5e
	The '5.1.' prefix is a misnomer now tha we support Lua 5.2, and
Packit 437b5e
	bumping the prefix to '5.2.' would be no better, since we support
Packit 437b5e
	Lua 5.1 simultaneously, and 5.3 will be along one of these days.
Packit 437b5e
Packit 437b5e
	sanity: add configuration fragment with sanity exclusions.
Packit 437b5e
	* build-aux/sanity-config.mk (sc_require_config_h)
Packit 437b5e
	(sc_require_config_h_first): Exclude dummy.c and strlcpy.c, which
Packit 437b5e
	are both included directly into another source file before
Packit 437b5e
	compilation.
Packit 437b5e
	* .gitignore, build-aux/.gitignore: Adjust.
Packit 437b5e
Packit 437b5e
	syntax-check: fix many tiny errors raised by sanity.mk.
Packit 437b5e
	* config.ld: Remove trailing blank line.
Packit 437b5e
	* lcurses.c, strlcpy.c: Remove useless preprocessor parens.
Packit 437b5e
	* lcurses.c: Use the blessed `#include <config.h>` format.
Packit 437b5e
	* local.mk: Remove leading space from SPACE-TAB sequence.
Packit 437b5e
	* lposix.c (STREQ): Define to avoid using inverted strcmp logic.
Packit 437b5e
	Also remove useless preprocessor parens, and trailing whitespace.
Packit 437b5e
	* posix.lua, specs/posix_spec.yaml: Remove trailing whitespace.
Packit 437b5e
	* specs/posix_spec.yaml: Use 'file system' in preference to
Packit 437b5e
	.filesystem'.
Packit 437b5e
Packit 437b5e
	maint: collect previous release notes into NEWS.
Packit 437b5e
	* NEWS: New file, required for the Slingshot release process.
Packit 437b5e
	* local.mk (old_NEWS_hash): Update.
Packit 437b5e
Packit 437b5e
2013-05-09  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	specs: ttyname can contain 'pts' rather than 'tty'
Packit 437b5e
Packit 437b5e
	specs: fix some spec failures on Linux.
Packit 437b5e
	* specs/posix_spec.yaml (uname): uname -a can display information
Packit 437b5e
	that uname(2) does not return, so change the command to say
Packit 437b5e
	explicitly what fields we want.
Packit 437b5e
Packit 437b5e
2013-05-09  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	specs: convert adhoc tests to specl specs.
Packit 437b5e
	* tests-curses.lua: Remove. Move contents from here...
Packit 437b5e
	* specs/curses_spec.yaml: New file. ...to here, and reformat.
Packit 437b5e
	* tests-posix.lua: Remove.
Packit 437b5e
	* specs/posix_spec.yaml: New file. Implement equivalent (or
Packit 437b5e
	better!) specs here.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add new specs.
Packit 437b5e
Packit 437b5e
	specs: convert lunit fcntl checks to specl specs.
Packit 437b5e
	* README: Remove reference to lunit.
Packit 437b5e
	* tests-fcntl.lua: Remove.
Packit 437b5e
	* specs/posix_lua_spec.yaml: New file with equivalent checks for
Packit 437b5e
	Specl.
Packit 437b5e
	* specs/specs.mk (specl_SPECS): Add specs/posix_lua_spec.yaml.
Packit 437b5e
	* local.mk: Include specs/specs.mk.
Packit 437b5e
Packit 437b5e
	slingshot: adopt slingshot release mechanism.
Packit 437b5e
	* README: Move from here...
Packit 437b5e
	* README.md: ...to here. Adjust for GH Markdown.
Packit 437b5e
	* GNUmakefile, Makefile.am, build-aux/mkrockspecs,
Packit 437b5e
	m4/ax_compare_version.m4, m4/ax_lua.m4:
Packit 437b5e
	Remove. These files are handled by slingshot now.
Packit 437b5e
	* rockspecs.lua, m4/ax_with_prog.m4: Remove. No longer used.
Packit 437b5e
	* bootstrap.slingshot: New file. Slingshot bootstrap plugin.
Packit 437b5e
	* bootstrap.conf: Source it.
Packit 437b5e
	* configure.ac: Adjust to drive slingshot processes.
Packit 437b5e
	* local.mk: New file. Project local make rules.
Packit 437b5e
	* rockspec.conf: New file. Slingshat rockspec template.
Packit 437b5e
	* specs/specs.mk: Simplified.
Packit 437b5e
	* .prev-version: Record previous version number.
Packit 437b5e
	* .gitignore: Update.
Packit 437b5e
	* .travis.yml: Regenerate.
Packit 437b5e
Packit 437b5e
	termios: remove deprecated legacy symbols.
Packit 437b5e
	Don't write new code with these, they are not definied by stricly
Packit 437b5e
	POSIX conformant hosts. See:
Packit 437b5e
	http://pubs.opengroup.org/onlinepubs/009695399/basedefs/termios.h.html
Packit 437b5e
	* lposix.c (XCASE, IUCLC, OUCLC): Remove.
Packit 437b5e
Packit 437b5e
	termios: make XSI extensions optional.
Packit 437b5e
	Mac OS X is a POSIX conformant system, but does not implement
Packit 437b5e
	all XSI extensions. Only create constant for XSI extensions if
Packit 437b5e
	they are defined by the host system. See:
Packit 437b5e
	http://pubs.opengroup.org/onlinepubs/009695399/basedefs/termios.h.html
Packit 437b5e
	* lposix.c (CBAUD, EXTA, EXTB, ECHOCTL, ECHOPRT, ECHOKE, FLUSHO)
Packit 437b5e
	(PENDIN): Wrap with preprocessor guards.
Packit 437b5e
	(DEFECHO, LOBLK, SWTCH, VDISCARD, VDSUSP, VLNEXT, VREPRINT)
Packit 437b5e
	(VSTATUS, VWERASE): Additional conditional XSI extensions.
Packit 437b5e
Packit 437b5e
2013-04-23  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Fixed dir example for 5.2
Packit 437b5e
Packit 437b5e
	Added missing 57k6 baudrate to termios table
Packit 437b5e
Packit 437b5e
2013-04-17  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Fixed glob example, added missing 'posix ='. Also removed the readlink() part because /proc on linux violates posix and does not properly fill in st_size on lstat(), causing readlink() to fail with EINVAL.
Packit 437b5e
Packit 437b5e
	Fix poll example, open failed due to wrong 2nd argument type, probably from old lposix API?
Packit 437b5e
Packit 437b5e
	I broke poll with commit 8deb0ebd041ab6d4761f86a7a906dd850111bae7
Packit 437b5e
	The result is just fine for calling poll() only once, but breaks for
Packit 437b5e
	subsequent calls to poll() when passing the same table. In this case,
Packit 437b5e
	the events are not cleared from the revents table, causing false
Packit 437b5e
	positives.
Packit 437b5e
Packit 437b5e
2013-04-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #90 from zevv/getopt
Packit 437b5e
	Rename getopt_long() to getopt(), long options are now optional.
Packit 437b5e
Packit 437b5e
	Merge pull request #91 from zevv/termios
Packit 437b5e
	Moved tests-termios.lua to examples/termios.lua
Packit 437b5e
Packit 437b5e
2013-04-16  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added minimal termios test.
Packit 437b5e
Packit 437b5e
2013-04-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Mention where to look for other contributors.
Packit 437b5e
Packit 437b5e
	Merge pull request #82 from zevv/socket
Packit 437b5e
	Added socket functions and test script
Packit 437b5e
Packit 437b5e
2013-04-16  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Changed getopt_long semantics, reorderd iterator return values, optarg is now string instead of number. This allows getopt_long to closely mimic getopt
Packit 437b5e
	Renamed getopt_long to getopt, changed short options type from number to
Packit 437b5e
	string, updated example
Packit 437b5e
Packit 437b5e
	Added POSIX socket functions and constants
Packit 437b5e
Packit 437b5e
2013-04-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #83 from zevv/termios
Packit 437b5e
	Added termios and test script
Packit 437b5e
Packit 437b5e
2013-04-16  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Added termios and test script
Packit 437b5e
Packit 437b5e
2013-04-14  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Copy stdlib code into posix.lua, minimally modified
Packit 437b5e
	Solves the discussion in already-closed issue #80, and closes pull
Packit 437b5e
	request #88 and closes pull request #89.
Packit 437b5e
Packit 437b5e
2013-04-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #85 from zevv/poll-only-triggered-revents
Packit 437b5e
	poll only returns active events in revents table, increases performance
Packit 437b5e
Packit 437b5e
	Move require of std.list to correct place
Packit 437b5e
Packit 437b5e
2013-04-13  Ico Doornekamp  <ico@pruts.nl>
Packit 437b5e
Packit 437b5e
	Simplified lua_pushboolean() expression
Packit 437b5e
Packit 437b5e
	poll only returns active events in revents table, increases performance
Packit 437b5e
Packit 437b5e
2013-04-12  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Require stdlib; fixes #80
Packit 437b5e
Packit 437b5e
2013-04-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	.gitignore: add TAGS
Packit 437b5e
Packit 437b5e
	lposix.c: fix lua_Alloc calls that free (they should pass the current size); fix a memory leak in msgrcv
Packit 437b5e
Packit 437b5e
	lposix.c: fix error-case space leak in Pread; fixes issue #78
Packit 437b5e
Packit 437b5e
2013-04-11  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	posix.lua: fix a typo in assert.
Packit 437b5e
	* posix.lua (pipeline): t1 is not declared, use type of t in the
Packit 437b5e
	assert error.
Packit 437b5e
Packit 437b5e
2013-03-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: change bogus @long tags to @int tags.
Packit 437b5e
Packit 437b5e
	lposix.c: add function line for pipe (was missing)
Packit 437b5e
	Thanks to behoffski for the report.
Packit 437b5e
Packit 437b5e
2013-03-24  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: fix @function line of isprint (was wrongly "isgraph")
Packit 437b5e
	Thanks to behoffski for the report.
Packit 437b5e
Packit 437b5e
2013-03-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	tests-posix.lua: fix pipeline test for VPATH build
Packit 437b5e
Packit 437b5e
	tests-posix.lua: fix pipeline test
Packit 437b5e
	Should call pipeline_slurp, not pipeline_iterator to get whole output
Packit 437b5e
	in one go. This has the nice side-effect of testing both
Packit 437b5e
	pipeline_iterator and pipeline as well, as pipeline_slurp calls
Packit 437b5e
	pipeline_iterator, which calls pipeline.
Packit 437b5e
Packit 437b5e
2013-03-20  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: unset LUA_INIT_5_2 in calls to get information from woger.
Packit 437b5e
	This is an ugly hack, but since it will work at least until the
Packit 437b5e
	release of Lua 5.3, it's better than nothing.
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.28
Packit 437b5e
Packit 437b5e
	Simplify and fix pipeline_iterator, and add a test.
Packit 437b5e
Packit 437b5e
2013-03-18  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix.lua: fix bug in posix.pipeline_iterator, where it always closed the pipe on first iteration
Packit 437b5e
Packit 437b5e
2013-03-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.27
Packit 437b5e
Packit 437b5e
	posix.lua: rename posix.system to posix.spawn, keeping old name as alias for now.
Packit 437b5e
Packit 437b5e
2013-03-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Allow posix.system to take a function, a shell command, or a file and list of arguments. Use it in pipeline.
Packit 437b5e
	Allow pipeline functions to take an extra parameter giving the
Packit 437b5e
	function to use to make a pipe (e.g. so posix.openpty can be used
Packit 437b5e
	instead). Change argument to a table rather than a list of tasks.
Packit 437b5e
Packit 437b5e
2013-03-14  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix.lua: tidy up pipeline and add pipeline_iterator and pipeline_slurp
Packit 437b5e
Packit 437b5e
2013-03-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #72 from nmcveity/fix-5.1-compat
Packit 437b5e
	Removed Lua 5.2 functions lua_len and lua_tointegerx
Packit 437b5e
Packit 437b5e
	COPYING: bump copyright year
Packit 437b5e
Packit 437b5e
	Add pipeline function to execute a pipeline of shell commands & Lua functions
Packit 437b5e
Packit 437b5e
2013-03-05  nmcveity  <nmcveity@gmail.com>
Packit 437b5e
Packit 437b5e
	Removed Lua 5.2 functions lua_len and lua_tointegerx
Packit 437b5e
	This fixes issue #71.
Packit 437b5e
Packit 437b5e
2013-03-04  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: stop making unnecessary ChangeLog.
Packit 437b5e
Packit 437b5e
2013-03-03  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: fix a space leak in realpath
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.26.
Packit 437b5e
Packit 437b5e
	lposix.c: change some @param's to @string where possible
Packit 437b5e
Packit 437b5e
	Add posix.realpath.
Packit 437b5e
Packit 437b5e
	lposix.c: add support for SA_* flags when establishing a signal handler
Packit 437b5e
Packit 437b5e
2013-03-02  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix.lua: add posix.openpty
Packit 437b5e
Packit 437b5e
2013-02-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: improve documentation of posix.read
Packit 437b5e
Packit 437b5e
	lposix.c: document posix.wait's return values properly
Packit 437b5e
Packit 437b5e
	lposix.c: add killpg
Packit 437b5e
Packit 437b5e
2013-02-20  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: release directory should already be on release branch; remove checkout command
Packit 437b5e
Packit 437b5e
	Makefile.am: use simpler and more robust scheme of parallel checkout for checking in release code.
Packit 437b5e
Packit 437b5e
	Allow exec/execp arguments to be supplied as a table, including argv[0]. Closes #65.
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.25
Packit 437b5e
Packit 437b5e
	Merge pull request #67 from zserge/master
Packit 437b5e
	Support for message queues
Packit 437b5e
Packit 437b5e
2013-02-19  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #68 from sam-github/pts-support
Packit 437b5e
	Fix posix.openpt() requireing and ignoring a path.
Packit 437b5e
Packit 437b5e
	When no LDoc installed, create docs directory before touching files in it; fixes issue #66
Packit 437b5e
Packit 437b5e
2013-02-18  Sam Roberts  <vieuxtech@gmail.com>
Packit 437b5e
Packit 437b5e
	Fix posix.openpt() requireing and ignoring a path.
Packit 437b5e
Packit 437b5e
2013-02-18  Serge Zaitsev  <zaitsev.serge@gmail.com>
Packit 437b5e
Packit 437b5e
	added basic message queues support
Packit 437b5e
Packit 437b5e
2013-02-18  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #58 from sam-github/pts-support
Packit 437b5e
	Support Unix 98 style pseudoterminals, as specified in POSIX.1-2001
Packit 437b5e
Packit 437b5e
2013-02-18  Sam Roberts  <vieuxtech@gmail.com>
Packit 437b5e
Packit 437b5e
	Tests for pseudoterminal support.
Packit 437b5e
Packit 437b5e
2013-02-17  Sam Roberts  <vieuxtech@gmail.com>
Packit 437b5e
Packit 437b5e
	Support Unix 98 style pseudoterminals, as specified in POSIX.1-2001
Packit 437b5e
	Support consists of openpt(), ptsname(), grantpt(), and unlockpt(). The master
Packit 437b5e
	fd can be created by calling  openpt(), or by opening "/dev/ptmx" (as
Packit 437b5e
	specified by POSIX).
Packit 437b5e
Packit 437b5e
2013-02-15  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: fix woger command for new rockspec arrangement.
Packit 437b5e
Packit 437b5e
	Makefile.am: prevent unpacked sources being recursively checked in to release branch.
Packit 437b5e
Packit 437b5e
	Makefile.am: remove references to defunct files.
Packit 437b5e
Packit 437b5e
	rockspecs.lua: don't need to turn dots in version into dashes to get release tag.
Packit 437b5e
Packit 437b5e
	.gitignore: remove tarball pattern, as we no longer have tarballs.
Packit 437b5e
Packit 437b5e
	Revert 31671409e62e: bit32 doesn't build with Lua 5.2, so require luabitop instead.
Packit 437b5e
Packit 437b5e
	rockspecs.lua: fix a misnamed variable
Packit 437b5e
Packit 437b5e
	configury: add rockspec-generating files for git/release rockspecs.
Packit 437b5e
Packit 437b5e
	Makefile.am: remove obsolete definition of ROCKSPEC
Packit 437b5e
Packit 437b5e
	configure.ac: remove useless AC_SUBST calls for precious variables.
Packit 437b5e
Packit 437b5e
	tests-posix.lua: remove a debugging line.
Packit 437b5e
Packit 437b5e
	lposix.c: correct cross-reference to getopt.lua
Packit 437b5e
Packit 437b5e
	Bump version down to 5.1.24: we haven't made such a release yet
Packit 437b5e
Packit 437b5e
	configury: update for releasing on 'release' branch of github rather than via tarballs.
Packit 437b5e
Packit 437b5e
	Update ax_lua.m4 to latest: no code changes, formatting only.
Packit 437b5e
Packit 437b5e
	tests-posix.lua: remove commented-out test for non-POSIX putenv function
Packit 437b5e
Packit 437b5e
	Add STD{IN,OUT,ERR}_FILENO constants.
Packit 437b5e
Packit 437b5e
	Add isatty.
Packit 437b5e
Packit 437b5e
2013-02-12  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Use bit32 (now available for 5.1) rather than luabitop: slightly simplifies things.
Packit 437b5e
Packit 437b5e
2013-02-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: Reuben Thomas is no longer the maintainer.
Packit 437b5e
Packit 437b5e
	m4/ax_compare_version.m4: add support file for ax_lua.m4
Packit 437b5e
Packit 437b5e
2013-02-07  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Merge pull request #61 from gvvaughan/pull-request/maint-clean-ldocs-output
Packit 437b5e
	configury: clean up ldoc droppings with make maintainer-clean
Packit 437b5e
Packit 437b5e
	Merge pull request #62 from gvvaughan/pull-request/remove-empty-lib-subdir
Packit 437b5e
	gnulib: no need to link always empty libgnu.
Packit 437b5e
Packit 437b5e
2013-02-06  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configury: update ax_lua.m4 to latest version, which simplifies configure.ac slightly.
Packit 437b5e
Packit 437b5e
2013-01-29  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	gnulib: no need to link always empty libgnu.
Packit 437b5e
	Now that we have no C modules from gnulib, there's no need to
Packit 437b5e
	build and link the always empty library any more.
Packit 437b5e
	* Makefile.am (SUBDIRS): Remove.
Packit 437b5e
	* configure.ac (AC_CONFIG_FILES): Remove lib/Makefile.
Packit 437b5e
	* bootstrap.conf (gnulib_tool_options): Add --avoid=dummy to skip
Packit 437b5e
	the one remaining empty gnulib C source file.
Packit 437b5e
	(luaposix_remove_empty_lib): gnulib-tool now generates a useless
Packit 437b5e
	lib subdirectory containing just a Makefile.am and .gitignore. We
Packit 437b5e
	don't use or need it any more, so delete it.
Packit 437b5e
	(luaposix_finish): Don't copy dummy.c out of gnulib.
Packit 437b5e
Packit 437b5e
	configury: clean up ldoc droppings with make maintainer-clean
Packit 437b5e
	* Makefile.am (MAINTAINERCLEANFILES): Add docs/index.html and
Packit 437b5e
	docs/ldoc.css.
Packit 437b5e
Packit 437b5e
2013-01-27  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Merge pull request #59 from gvvaughan/pull-request/handle-missing-ldoc
Packit 437b5e
	configury: handle missing ldoc binary.
Packit 437b5e
Packit 437b5e
2013-01-26  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	configury: handle missing ldoc binary.
Packit 437b5e
	* configure.ac (LDOC): Set with AX_WITH_PROG.
Packit 437b5e
	(HAVE_LDOC): New conditional.
Packit 437b5e
	* Makefile.am (HTML): Fold into...
Packit 437b5e
	(dist_doc_DATA): ...here.
Packit 437b5e
	Run ldoc when available, otherwise touch the requried files to
Packit 437b5e
	prevent build failure.
Packit 437b5e
Packit 437b5e
2013-01-10  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #56 from gvvaughan/pull-request/curses-resizeterm-support
Packit 437b5e
	curses: conditional resizeterm support.
Packit 437b5e
Packit 437b5e
	Merge pull request #55 from gvvaughan/pull-request/fix-waddstr-double-append-bug
Packit 437b5e
	curses: don't waddstr() each string twice.
Packit 437b5e
Packit 437b5e
	Merge pull request #53 from gvvaughan/pull-request/remove-automake-werror
Packit 437b5e
	configury: remove automake -Werror option.
Packit 437b5e
Packit 437b5e
	Merge pull request #52 from gvvaughan/pull-request/add-am-prog-ar
Packit 437b5e
	configury: use AM_PROG_AR for automake 1.13.
Packit 437b5e
Packit 437b5e
	Merge pull request #50 from gvvaughan/pull-request/keep-gnulib-revision-under-version-control
Packit 437b5e
	configury: keep gnulib revision under version control.
Packit 437b5e
Packit 437b5e
	Merge pull request #51 from gvvaughan/pull-request/sync-upstream-bootstrap
Packit 437b5e
	bootstrap: sync with upstream.
Packit 437b5e
Packit 437b5e
	Merge pull request #54 from gvvaughan/pull-request/no-need-for-lt-output
Packit 437b5e
	configury: no need to fork for libtool.m4 variables.
Packit 437b5e
Packit 437b5e
2013-01-10  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	curses: conditional resizeterm support.
Packit 437b5e
	* configure.ac (AC_CHECK_FUNCS): Check whether resizeterm is
Packit 437b5e
	implemented by the selected curses library.
Packit 437b5e
	* lcurses.c (Cresizeterm): If it is, use it, otherwis throw an
Packit 437b5e
	error to explain why not.
Packit 437b5e
	(curseslib): Add it to the toplevel curses functions.
Packit 437b5e
Packit 437b5e
	curses: don't waddstr() each string twice.
Packit 437b5e
	Fix a bug introduced by commit 5aa297512.
Packit 437b5e
	* lcurses.c (Waddstr): Only add the string one time!
Packit 437b5e
Packit 437b5e
	configury: no need to fork for libtool.m4 variables.
Packit 437b5e
	libtool.m4 is expanded into configure already, so the values are
Packit 437b5e
	available after LT_INIT in configure.in without creating config.lt
Packit 437b5e
	to copy the values we already have into an early libtool script,
Packit 437b5e
	and then fork again to grep the content of those copies back into
Packit 437b5e
	configure!!  (LT_OUTPUT is only necessary if you need to run
Packit 437b5e
	configure time compilation tests using the libtool script to
Packit 437b5e
	wrap the actual compiler).
Packit 437b5e
	* configure.ac (LT_OUTPUT): Remove.
Packit 437b5e
	(shrext): shrext_cmds is already set by LT_INIT, so just use it
Packit 437b5e
	without calling the early libtool script.
Packit 437b5e
Packit 437b5e
	configury: remove automake -Werror option.
Packit 437b5e
	This option causes automake to bail out after warning about the
Packit 437b5e
	use of gmake extensions.
Packit 437b5e
	* configure.ac (AM_INIT_AUTOMAKE): Remove -Werror.
Packit 437b5e
Packit 437b5e
	bootstrap: sync with upstream.
Packit 437b5e
	This revision fixes some small bugs, and is compatible with
Packit 437b5e
	non-gnu awk and non-gnu sed again.
Packit 437b5e
	* bootstrap: sync with upstream.
Packit 437b5e
Packit 437b5e
	configury: keep gnulib revision under version control.
Packit 437b5e
	It's important to keep the gnulib revision number used by any
Packit 437b5e
	particular checkout of luaposix under version control rather than
Packit 437b5e
	hoping that whatever the current HEAD is will work.
Packit 437b5e
	* .gitignore: Remove gnulib.
Packit 437b5e
	* gnulib: Add current master revision.
Packit 437b5e
Packit 437b5e
	configury: use AM_PROG_AR for automake 1.13.
Packit 437b5e
	* configure.ac (AM_PROG_AR): Required by recent automake releases,
Packit 437b5e
	but not available in very old releases.
Packit 437b5e
Packit 437b5e
2012-12-24  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: fix regeneration of luaposix.rockspec
Packit 437b5e
Packit 437b5e
2012-12-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: fix a comment
Packit 437b5e
Packit 437b5e
	luaposix.rockspec.in: remove redundant dir setting
Packit 437b5e
Packit 437b5e
2012-12-15  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.25
Packit 437b5e
Packit 437b5e
	rockspec: Add missing dependency for luabitop
Packit 437b5e
	luaposix depends on bitop library on lua 5.1 since luaposix 5.1.16
Packit 437b5e
Packit 437b5e
2012-12-05  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Merge pull request #48 from Keen-github/vs/2230/fix_hack_for_luaposix_compatibility
Packit 437b5e
	Added 'day' field for compatibility to Lua os.date(); fixed issue #32.
Packit 437b5e
Packit 437b5e
2012-11-14  Valeriy Skurikhin  <Keen.vs@gmail.com>
Packit 437b5e
Packit 437b5e
	Added 'day' field for compatibility to Lua os.date(); fixed issue #32.
Packit 437b5e
Packit 437b5e
2012-10-25  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Use lstat to read size of a link (for Preadlink); fixes issue #47.
Packit 437b5e
Packit 437b5e
2012-10-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.24
Packit 437b5e
Packit 437b5e
	lcurses.c: don't run strlen unnecessarily; w[mv]addstr does that anyway
Packit 437b5e
Packit 437b5e
2012-10-04  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: now that github-upload is fixed, consolidate release into a single target
Packit 437b5e
Packit 437b5e
	Makefile.am: correct github_user parameter to woger (thanks, Liam)
Packit 437b5e
Packit 437b5e
	release: luarocks-related tweaks
Packit 437b5e
Packit 437b5e
	Makefile.am: make check-luarock depend on the rockspec, as github seems to work after all
Packit 437b5e
Packit 437b5e
	release: automatically check the rockspec before making a release
Packit 437b5e
Packit 437b5e
2012-10-03  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Make Lua 5.2-compatibility more Lua 5.2-ish.
Packit 437b5e
Packit 437b5e
	tree.lua: make Lua 5.2-compatible
Packit 437b5e
Packit 437b5e
2012-09-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	rockspec: make build_command more robust
Packit 437b5e
Packit 437b5e
	build: install documentation with 'make install' and from luarocks
Packit 437b5e
Packit 437b5e
2012-09-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: improve comment of mkstemp
Packit 437b5e
Packit 437b5e
2012-09-21  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: bump version to 5.1.23
Packit 437b5e
Packit 437b5e
2012-09-20  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lcurses.c: define LUA_COMPAT_ALL to get luaL_register.
Packit 437b5e
Packit 437b5e
2012-09-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	dummy.c: fix copyright notice to be public domain
Packit 437b5e
Packit 437b5e
	version: bump to 5.1.22.
Packit 437b5e
Packit 437b5e
	gnulib: re-add dummy.c with correct license to fix Mac OS X build (issue #46)
Packit 437b5e
Packit 437b5e
2012-09-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configure.ac: enable automake to generate dependencies for rockspec (thanks, Hisham Muhammad).
Packit 437b5e
Packit 437b5e
2012-09-07  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #45 from wcmaier/fix/github-url
Packit 437b5e
	Update Github URL.
Packit 437b5e
Packit 437b5e
2012-09-07  Will Maier  <wcmaier@m.aier.us>
Packit 437b5e
Packit 437b5e
	Update Github URL.
Packit 437b5e
Packit 437b5e
2012-09-03  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.21.
Packit 437b5e
Packit 437b5e
2012-09-01  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	README: Add link to online HTML docs.
Packit 437b5e
Packit 437b5e
	README: Update location of repo and contact details.
Packit 437b5e
Packit 437b5e
2012-08-31  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	bootstrap.conf: no longer require now-defunct `missing' script.
Packit 437b5e
Packit 437b5e
2012-08-30  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add docstrings (using Steve Donovan's ldoc) to lposix.c
Packit 437b5e
	The documentation comes from from Steve Donovan and the Alpine Linux
Packit 437b5e
	wiki (Natanael Copa).
Packit 437b5e
Packit 437b5e
	Reindent Psignal, which was a bit out of order.
Packit 437b5e
Packit 437b5e
	Make rpoll use file descriptors, not Lua file objects, so it can be
Packit 437b5e
	used with both (via fileno).
Packit 437b5e
Packit 437b5e
2012-06-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Document dependency on bitop library with Lua 5.1 (thanks to Bernd Eggink).
Packit 437b5e
Packit 437b5e
	Remove documentation of configure options, one of which was obsolete.
Packit 437b5e
Packit 437b5e
2012-06-22  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Simplify Lua 5.2 compatibility
Packit 437b5e
Packit 437b5e
	lposix.c: revert to using MYNAME, as it is different from PACKAGE.
Packit 437b5e
Packit 437b5e
	build: don't unset LUA_INIT, as it may be needed to set Lua paths.
Packit 437b5e
Packit 437b5e
	Update bug reporting advice (thanks, Yuri Takhteyev).
Packit 437b5e
Packit 437b5e
2012-06-21  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix some incorrectly-named references to posix module.
Packit 437b5e
Packit 437b5e
	Simplify construction of messages with autoconf variables.
Packit 437b5e
Packit 437b5e
2012-06-05  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	build: don't include non-MIT-licensed dummy.c from gnulib (fixes issue #42).
Packit 437b5e
Packit 437b5e
2012-06-04  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #41 from gvvaughan/pull-request/timer-macros
Packit 437b5e
	gettimeofday: change format to a table with sec and usec fields.
Packit 437b5e
Packit 437b5e
2012-06-01  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	gettimeofday: replace C timer macros with lua equivalents.
Packit 437b5e
	* lposix.c (Ptimeradd, Ptimercmp, Ptimersub): Remove.
Packit 437b5e
	* posix.lua (timeradd, timercmp, timersub): New Lua equivalents
Packit 437b5e
	to removed C implementations.
Packit 437b5e
Packit 437b5e
2012-05-29  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	gettimeofday: change format to a table with sec and usec fields.
Packit 437b5e
	* lposix.c (Pgettimeofday): Return a single table with sec and usec
Packit 437b5e
	fields, rather than a pair of numbers.
Packit 437b5e
	(Ptimeradd, Ptimercmp, Ptimersub): New functions to emulate the
Packit 437b5e
	macros timeradd, timercmp and timersub respectively.
Packit 437b5e
Packit 437b5e
2012-05-29  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #40 from gvvaughan/pull-request/feature-tests-not-version-checks
Packit 437b5e
	crypt: this function is available on darwin, but no crypt.h header is
Packit 437b5e
Packit 437b5e
2012-05-29  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	statvfs: check for actual presence of function and header.
Packit 437b5e
	* configure.ac (sys/statvfs.h): Test for presence of this header.
Packit 437b5e
	(statvfs): Test for availability of this API.
Packit 437b5e
	* lposix.c (sys/statvfs.h): Include it, if configure found it.
Packit 437b5e
	(Pstatvfs): Wrap statvfs if configure found the API.
Packit 437b5e
	(R): List Pstatvfs if we wrapped it earlier.
Packit 437b5e
Packit 437b5e
	crypt: this function is available on darwin, but no crypt.h header is
Packit 437b5e
	One of the main principles of Autoconf is that you should test for
Packit 437b5e
	features, not for versions - exactly because of compilation problems
Packit 437b5e
	like this, where Apple sets _POSIX_VERSION to make us think that
Packit 437b5e
	crypt.h is available, but there is no crypt.h header.
Packit 437b5e
	* configure.ac (crypt.h): Test for presence of this header.
Packit 437b5e
	(crypt): If the crypt function is available, whether or not the
Packit 437b5e
	additional -lcrypt library is required, define HAVE_CRYPT.
Packit 437b5e
	* lposix.c (crypt.h): Include it if configure found it.
Packit 437b5e
	(Pcrypt): Define it if configure detected a system crypt API.
Packit 437b5e
	(R): List Pcrypt, if we defined it earlier.
Packit 437b5e
Packit 437b5e
2012-05-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	posix.lua: update call of posix.open to match new API.
Packit 437b5e
Packit 437b5e
	Add missing posix suffix to a call of access.
Packit 437b5e
Packit 437b5e
	Merge pull request #39 from stevedonovan/master
Packit 437b5e
	Implement signal queue so signals arriving while in a Lua signal handler are not lost.
Packit 437b5e
Packit 437b5e
2012-05-28  Steve Donovan  <steve.j.donovan@gmail.com>
Packit 437b5e
Packit 437b5e
	signal handling queue implemented
Packit 437b5e
Packit 437b5e
2012-05-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.20.
Packit 437b5e
Packit 437b5e
	getgroup: fix an off-by-one error (thanks, Steve Donovan)
Packit 437b5e
Packit 437b5e
	lposix.c: more minor whitespace fixes
Packit 437b5e
Packit 437b5e
	posix.lua: add a missing space (whitespace fix).
Packit 437b5e
Packit 437b5e
	system: Kill the fork if execp fails (thanks, Steve Donovan)
Packit 437b5e
Packit 437b5e
	lposix.c: require a mode for open with O_CREAT, and only then.
Packit 437b5e
Packit 437b5e
	tests: update for revised open API.
Packit 437b5e
Packit 437b5e
	lposix.c: minor whitespace fixes.
Packit 437b5e
Packit 437b5e
	lposix.c: make file & creation flags public; pass flags to open as an integer mask, not a table.
Packit 437b5e
Packit 437b5e
2012-05-22  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix some comments.
Packit 437b5e
Packit 437b5e
2012-05-21  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove non-POSIX crypt_r and replace function checks with POSIX version checks.
Packit 437b5e
Packit 437b5e
	Add a pointer to documentation and some basic coding principles.
Packit 437b5e
Packit 437b5e
2012-05-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Update web site URL and be more explicit about system requirements.
Packit 437b5e
Packit 437b5e
2012-05-12  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Rework test for glob() -- use temporary directory
Packit 437b5e
	This allow us to not depend from *.la files from build.
Packit 437b5e
Packit 437b5e
	Simple tests for mkdtemp and mkstemp
Packit 437b5e
Packit 437b5e
2012-05-12  Your Name  <7hemroc@gmail.com>
Packit 437b5e
Packit 437b5e
	Add mkdtemp()
Packit 437b5e
Packit 437b5e
2012-05-12  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Memory leak in mkstemp
Packit 437b5e
	Pmkstemp not release temporary string buffer, if mkstemp() raise an error
Packit 437b5e
Packit 437b5e
2012-05-12  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #35 from likema/master
Packit 437b5e
	Add statvfs and crypt_r.
Packit 437b5e
Packit 437b5e
2012-05-02  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lcurses.c: Remove some casts to chtype that only cause trouble.
Packit 437b5e
Packit 437b5e
	strlcpy.c: add prototype to squash compiler warning.
Packit 437b5e
Packit 437b5e
	strlcpy.c: Make function declaration ANSI.
Packit 437b5e
Packit 437b5e
2012-04-30  Like Ma  <likemartinma@gmail.com>
Packit 437b5e
Packit 437b5e
	Add AC_USE_SYSTEM_EXTENSIONS to configure.ac for define _GNU_SOURCE in config.h.in
Packit 437b5e
Packit 437b5e
2012-04-23  Like Ma  <likemartinma@gmail.com>
Packit 437b5e
Packit 437b5e
	Merge remote-tracking branch 'upstream/master'
Packit 437b5e
Packit 437b5e
2012-04-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Copy with -1 return for _PC_PATH_MAX.
Packit 437b5e
Packit 437b5e
2012-04-10  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.19.
Packit 437b5e
Packit 437b5e
	Replace LGPLed strlcpy with BSD licensed strlcpy, from http://opensource.apple.com/source/OpenSSH/OpenSSH-7.1/openssh/bsd-strlcpy.c
Packit 437b5e
Packit 437b5e
2012-04-08  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix memory leaks introduced by fix to cope with arbitrary-length paths.
Packit 437b5e
Packit 437b5e
2012-04-05  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add tests for dirname and basename.
Packit 437b5e
Packit 437b5e
	Work with arbitrary-length paths.
Packit 437b5e
Packit 437b5e
2012-04-03  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove XSR errno.h codes (thanks Enrico Tassi).
Packit 437b5e
Packit 437b5e
2012-03-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Don't use gnulib sigaction module, as its license is incompatible; don't want COPYINGv3.
Packit 437b5e
Packit 437b5e
	Back to using only a double fork of lunit.
Packit 437b5e
Packit 437b5e
2012-03-25  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	README: Update URL to lunit: for now need my version.
Packit 437b5e
Packit 437b5e
	Makefile.am: tell lunit which Lua interpreter to use.
Packit 437b5e
Packit 437b5e
	tests-fcntl.lua: make them work with Lua 5.2.
Packit 437b5e
Packit 437b5e
	Improve documentation for use with Lua 5.2.
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.18.
Packit 437b5e
Packit 437b5e
	posix.lua: make Lua 5.2-compatible.
Packit 437b5e
Packit 437b5e
	Make configure accept Lua 5.2.
Packit 437b5e
Packit 437b5e
	Add correct license, and refer to it in README.
Packit 437b5e
Packit 437b5e
2012-02-29  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.17.
Packit 437b5e
Packit 437b5e
	Return old C handler from signal, so it can be chained; fix masking of signals during Lua handler.
Packit 437b5e
Packit 437b5e
2012-02-21  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Make curses module work with Lua 5.2 module system (patch by StarWing).
Packit 437b5e
Packit 437b5e
2012-02-18  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: update woger call.
Packit 437b5e
Packit 437b5e
	Makefile.am: Update woger call.
Packit 437b5e
Packit 437b5e
	Makefile.am: add lua52compat.h to EXTRA_DIST.
Packit 437b5e
Packit 437b5e
2012-02-12  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #28 from likema/HEAD~~
Packit 437b5e
	Use AC_SEARCH_LIBS instead of AC_CHECK_LIBS in configure.ac.
Packit 437b5e
Packit 437b5e
2012-02-11  Like Ma  <likemartinma@gmail.com>
Packit 437b5e
Packit 437b5e
	Use crypt_r instead of crypt if it exists for thread-safe.
Packit 437b5e
Packit 437b5e
	Add statvfs
Packit 437b5e
Packit 437b5e
	Use AC_SEARCH_LIBS instead of AC_CHECK_LIBS to fix function crypt not found when configuring.
Packit 437b5e
Packit 437b5e
2012-02-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix bug in chmod (closes issue #55).
Packit 437b5e
Packit 437b5e
	Update ax_with_curses.m4.
Packit 437b5e
Packit 437b5e
2012-02-03  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove some non-POSIX features.
Packit 437b5e
Packit 437b5e
	Remove non-standard memrchr.
Packit 437b5e
Packit 437b5e
2012-02-02  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix signal handling so all signals are handled, one at a time.
Packit 437b5e
Packit 437b5e
2012-02-01  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: overhaul time struct functions; add mktime.
Packit 437b5e
Packit 437b5e
	lposix.c: fix whitespace typo.
Packit 437b5e
Packit 437b5e
2012-02-01  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Overhaul use of numeric types going to Lua.
Packit 437b5e
	Use lua_pushinteger rather than lua_pushnumber where it makes sense.
Packit 437b5e
Packit 437b5e
	In lcurses, use lua_pushboolean for all boolean quantities, and always
Packit 437b5e
	return Lua booleans, not C booleans. Remove some unused function
Packit 437b5e
	macros.
Packit 437b5e
Packit 437b5e
2012-02-01  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix a docstring mistake: refer to os.execute, not os.system.
Packit 437b5e
Packit 437b5e
2012-01-31  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove setting _POSIX_C_SOURCE on Darwin, as apparently this only restricts APIs, or instates obsolescent APIs.
Packit 437b5e
	Remove some pointless quotes.
Packit 437b5e
Packit 437b5e
	Remove SIGPROF and SIGPOLL, which are marked obsolescent.
Packit 437b5e
Packit 437b5e
2012-01-27  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	curses: update ax_with_curses.m4 to latest version.
Packit 437b5e
Packit 437b5e
2012-01-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	In strftime, make isdst optional like all other fields.
Packit 437b5e
Packit 437b5e
	Add strptime.
Packit 437b5e
Packit 437b5e
	Simplify a lua_pushlstring call to a lua_pushstring call.
Packit 437b5e
Packit 437b5e
	Simplify hostid, making it return a number, not a string.
Packit 437b5e
Packit 437b5e
	Merge pull request #23 from hishamhm/master
Packit 437b5e
	Add support of octal stat modes in mode_munch
Packit 437b5e
Packit 437b5e
2012-01-16  Hisham Muhammad  <hisham@gobolinux.org>
Packit 437b5e
Packit 437b5e
	Make octal_mode use strtol, as requested by rrthomas.
Packit 437b5e
Packit 437b5e
2011-12-29  Hisham Muhammad  <hisham@gobolinux.org>
Packit 437b5e
Packit 437b5e
	Add support of octal stat modes in mode_munch
Packit 437b5e
Packit 437b5e
2011-12-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Update and make precise the versions of Lua catered to.
Packit 437b5e
Packit 437b5e
	Move Lua 5.2 compatibility into a separate file; use it in lcurses.c.
Packit 437b5e
	Change version check to be “== 502” rather than “> 501” now that 5.2
Packit 437b5e
	is released and we have no idea what 5.3 or later will bring.
Packit 437b5e
Packit 437b5e
	Remove unused lua_setenv macro.
Packit 437b5e
Packit 437b5e
	Add memrchr.
Packit 437b5e
Packit 437b5e
	Add a comment explaining that posix.signal has sensible semantics.
Packit 437b5e
Packit 437b5e
2011-12-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Fix an egregious bug in the previous commit which only updated a Lua handler when the previous handler was also a Lua function.
Packit 437b5e
Packit 437b5e
	Merge pull request #22 from gvvaughan/pull-request/expose-use_default_colors
Packit 437b5e
	Pull request/expose use default colors
Packit 437b5e
Packit 437b5e
	Merge pull request #21 from gvvaughan/pull-request/refactor-lcurses-with-cpp
Packit 437b5e
	refactor: use lposix-style macro splicing in lcurses.
Packit 437b5e
Packit 437b5e
2011-12-26  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	curses: expose use_default_colors to lua.
Packit 437b5e
	* lcurses.c (Cuse_default_colors): Marshalling for
Packit 437b5e
	use_default_colors.
Packit 437b5e
	(curseslib): Add it.
Packit 437b5e
Packit 437b5e
	refactor: use lposix-style macro splicing in lcurses.
Packit 437b5e
	Make the style of lcurses.c more like lposix.c, with the aid of
Packit 437b5e
	splice and stringify macros, and judicious renaming to make
Packit 437b5e
	their usage pattern the same too.
Packit 437b5e
	* lcurses.c (LCURSES_SPLICE, LCURSES_STR, LCURSES_STR_1):
Packit 437b5e
	Analagous to LPOSIX_SPLICE, LPOSIX_STR and LPOSIX_STR_1
Packit 437b5e
	respectively.
Packit 437b5e
	(LC_NUMBER, LC_NUMBER2, LC_STRING, LC_STRING2, LC_BOOL)
Packit 437b5e
	(LC_BOOL2, LC_BOOLOK, LC_BOOLOK2): Change prefix of generated
Packit 437b5e
	functions from `lc_' to `C' so that LCURSES_STR_1 can be used
Packit 437b5e
	idiomatically.
Packit 437b5e
	(LCW_BOOLOK): Likewise, only changing from `lcw_' to `W' prefix.
Packit 437b5e
	(LCW_BOOLOK2): New macre used when the curses symbol and the lua
Packit 437b5e
	api have different names.
Packit 437b5e
	(lcw_new, lcw_get, lcw_check, lc_checkch, lc_optch): Rename from
Packit 437b5e
	these...
Packit 437b5e
	(lc_newwin, lc_getwin, lc_checkwin, checkch, optch): ...to
Packit 437b5e
	these, respectively, no need to namespace static symbols so
Packit 437b5e
	carefully. Adjust all callers.
Packit 437b5e
	(CC2): Remove.
Packit 437b5e
	(CF): New macro for generating FN key exports into lua. Use it
Packit 437b5e
	to export all 64 valid FN keys.
Packit 437b5e
	(LCW_WIN2): New macro.
Packit 437b5e
	(Wsyncup, Wcursyncup, Wsyncdown): Use it to define these
Packit 437b5e
	functions.
Packit 437b5e
	(LCW_WIN2YX): New macro.
Packit 437b5e
	(Wgetyx, Wgetparyx, Wgetbegyx, getmaxyx): Use it to define these
Packit 437b5e
	functions.
Packit 437b5e
	(LC_ATTROK): New macro.
Packit 437b5e
	(Cslk_attron, Cslk_attroff, Cslk_attrset): Use it to define
Packit 437b5e
	these functions.
Packit 437b5e
	(LC_TOGGLEOK): New macro.
Packit 437b5e
	(Ccbreak, Cecho, Craw, Cnl): Use it to define these functions.
Packit 437b5e
	(LCW_WINBOOLOK): New macro.
Packit 437b5e
	(Wintrflush, Wmeta, Wnodelay, Widlok, Wleaveok, Wscrollok): Use
Packit 437b5e
	it to define these functions.
Packit 437b5e
	(LCW_WININTOK): New macro.
Packit 437b5e
	(Wattroff, Wattron, Wattrset): Use it to define these functions.
Packit 437b5e
	(chstrlib, windowlib, curseslib): Much simplified by naming
Packit 437b5e
	implementation functions more carefully, and defining temporary
Packit 437b5e
	MENTRY macro to expand and splice arguments that populate the
Packit 437b5e
	tables.
Packit 437b5e
Packit 437b5e
2011-12-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	signal: Cope with C handler functions.
Packit 437b5e
	Fix a bug in setting symbolic (SIG_IGN/DFL) handlers.
Packit 437b5e
Packit 437b5e
	Make setting handler to nil indistinguishable from setting to SIG_DFL.
Packit 437b5e
Packit 437b5e
2011-12-24  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Explain why we don’t use an upvalue in an obvious situation.
Packit 437b5e
Packit 437b5e
	Redo signal API to be more conventional, allowing signal handlers to be reset (no __newindex nonsense).
Packit 437b5e
Packit 437b5e
	Use LPOSIX_STR_1 to prevent premature expansion of signal handler macro names.
Packit 437b5e
Packit 437b5e
	Merge pull request #20 from gvvaughan/pull-request/use-cpp-to-keep-symbols-in-sync
Packit 437b5e
	refactor: use macro splicing for more tabulation.
Packit 437b5e
Packit 437b5e
2011-12-24  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	refactor: use macro splicing for more tabulation.
Packit 437b5e
	This would have prevented the recent unsynced signal tables bug,
Packit 437b5e
	but also use cpp metaprogramming to write more repetitive code
Packit 437b5e
	that needs to stay in sync between various strings and symbols.
Packit 437b5e
	* lposix.c (LPOSIX__STR): Remove +1 offset.
Packit 437b5e
	(LPOSIX__STR_1, LPOSIX_STR_1): Better name for +1 offset
Packit 437b5e
	stringification macros. Adjust all callers.
Packit 437b5e
	(sigmacros_map): New cpp table of signal symbol basenames.
Packit 437b5e
	(Ssigmacros, Fsigmacros): Generate from sigmacros_map.
Packit 437b5e
	(R): Use cpp to keep lua symbols and C implementations in sync.
Packit 437b5e
	(luaopen_posix_c): Replace each group of preprocessor exports with
Packit 437b5e
	a cpp macro call to keep C API macro values and their lua symbol
Packit 437b5e
	names in sync.
Packit 437b5e
Packit 437b5e
2011-12-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Allow signal handlers to be set to nil (unset), as well as a function or macro.
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.16.
Packit 437b5e
Packit 437b5e
	Clarify a NULL pointer.
Packit 437b5e
Packit 437b5e
	Remove non-POSIX SIG_IGN and SIG_HOLD.
Packit 437b5e
Packit 437b5e
	Fix some deviant indentation.
Packit 437b5e
Packit 437b5e
2011-11-18  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #19 from spbnick/master
Packit 437b5e
	Fix corner cases in Pread and Pgetgroups. Thanks to Nikolai Kondrashov.
Packit 437b5e
Packit 437b5e
2011-11-18  Nikolai Kondrashov  <nkondrashov@nvidia.com>
Packit 437b5e
Packit 437b5e
	Fix getgroups corner cases
Packit 437b5e
	Fix getgroups memory deallocation by simply using lua_newuserdata instead of
Packit 437b5e
	potentially mismatching lalloc/free pair.
Packit 437b5e
	Handle getgroups(0, NULL) returning 0 - although practically impossible,
Packit 437b5e
	documentation doesn't say it can't happen.
Packit 437b5e
	Handle getgroups returning negative values (reporting errors).
Packit 437b5e
Packit 437b5e
2011-11-17  Nikolai Kondrashov  <nkondrashov@nvidia.com>
Packit 437b5e
Packit 437b5e
	Handle and report Pread allocation errors properly
Packit 437b5e
	Report Pread buffer allocation errors with pusherror, account for allocation
Packit 437b5e
	functions which don't modify errno.
Packit 437b5e
	Handle allocation of zero bytes in Pread properly: don't consider returned
Packit 437b5e
	NULL an error.
Packit 437b5e
	Add some "air" into Pread formatting.
Packit 437b5e
Packit 437b5e
2011-10-28  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #18 from ittner/fix-unused-var
Packit 437b5e
	Remove unused variable (thanks, Alexandre Ittner).
Packit 437b5e
Packit 437b5e
	Merge pull request #17 from ittner/add-fnmatch
Packit 437b5e
	Add function fnmatch() (thanks, Alexandre Ittner).
Packit 437b5e
Packit 437b5e
2011-10-27  Alexandre Erwin Ittner  <alexandre@ittner.com.br>
Packit 437b5e
Packit 437b5e
	Remove unused variable in the poll interface
Packit 437b5e
Packit 437b5e
	Add function fnmatch()
Packit 437b5e
	According to
Packit 437b5e
	http://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html
Packit 437b5e
	plus GNU extensions (if available)
Packit 437b5e
Packit 437b5e
2011-10-25  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #16 from spbnick/master
Packit 437b5e
	Add full poll(2) interface
Packit 437b5e
Packit 437b5e
2011-10-22  Nikolai Kondrashov  <nkondrashov@nvidia.com>
Packit 437b5e
Packit 437b5e
	Add full poll(2) interface
Packit 437b5e
	Rename Ppoll to Prpoll to match external name of "rpoll".
Packit 437b5e
	Add full poll(2) interface under name "poll".
Packit 437b5e
Packit 437b5e
	The arguments to the "poll" function are fd->pollfd map and an optional
Packit 437b5e
	timeout in milliseconds (default being -1, i.e. infinity).
Packit 437b5e
Packit 437b5e
	"Pollfd" is a table analogue of struct pollfd, with "event" and "revent"
Packit 437b5e
	fields being tables with boolean fields corresponding to bits, named without
Packit 437b5e
	"POLL" suffix.
Packit 437b5e
Packit 437b5e
	Example usage:
Packit 437b5e
Packit 437b5e
	local pollfd_map = {
Packit 437b5e
	    [fd1]   = {events = {IN = true}},
Packit 437b5e
	    [fd2]   = {events = {IN = true}},
Packit 437b5e
	    [fd3]   = {events = {IN = true}}
Packit 437b5e
	}
Packit 437b5e
Packit 437b5e
	while next(pollfd_map) ~= nil do
Packit 437b5e
	    local ready, errmsg = posix.poll(pollfd_map)
Packit 437b5e
Packit 437b5e
	    if ready == nil then
Packit 437b5e
	        error(errmsg)
Packit 437b5e
	    end
Packit 437b5e
Packit 437b5e
	    for fd, pollfd in pairs(polfd_map) do
Packit 437b5e
	        if pollfd.revents.IN or pollfd.revents.HUP then
Packit 437b5e
	            local input, errmsg, errno = posix.read(fd, 8)
Packit 437b5e
Packit 437b5e
	            if input == nil then
Packit 437b5e
	                error(errmsg)
Packit 437b5e
	            elseif #input == 0 then
Packit 437b5e
	                pollfd_map[fd] = nil
Packit 437b5e
	            else
Packit 437b5e
	                print(tostring(fd) .. ":", input:byte(1, -1))
Packit 437b5e
	            end
Packit 437b5e
	        end
Packit 437b5e
	    end
Packit 437b5e
	end
Packit 437b5e
Packit 437b5e
2011-10-10  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Don't leave status uninitialized
Packit 437b5e
	SUSv4 states that &status is undefined if WNOHANG option is passed to
Packit 437b5e
	waitpid and no processes are ready to be collected at the time of call.
Packit 437b5e
Packit 437b5e
2011-10-10  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Fix bug -- posix.read returns wrong value
Packit 437b5e
	Pread() is documented to return a single value, and pushed only one
Packit 437b5e
	return value to stack, but it told Lua that it returns two values.
Packit 437b5e
Packit 437b5e
	Note that this change may existing workarounds and should be
Packit 437b5e
	explicitly mentioned in release notes.
Packit 437b5e
Packit 437b5e
2011-10-10  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Expose new fcntl function (oops!) and rewrite tests to use it.
Packit 437b5e
Packit 437b5e
	tests: Call fcntl tests with lunit (fixes issue #13); thanks Mikhail Gusarov.
Packit 437b5e
Packit 437b5e
2011-10-09  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Rewrite fcntl support.
Packit 437b5e
	* Remove fcntl table and special handlers for F_GET/SETFL.
Packit 437b5e
Packit 437b5e
	* Add instead a single fcntl functions, with constants for all the
Packit 437b5e
	  standard commands except for the file-locking commands (this would
Packit 437b5e
	  require support for struct flock).
Packit 437b5e
Packit 437b5e
2011-09-29  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	rockspec: move distribution & home page to github
Packit 437b5e
Packit 437b5e
	Makefile.am: update to latest woger
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.15.
Packit 437b5e
Packit 437b5e
	tests: rename test_fcntl.lua -> tests-fcntl.lua for consistency
Packit 437b5e
Packit 437b5e
	tests: fix Lua paths and xargs usage to run tests correctly
Packit 437b5e
Packit 437b5e
	Fix license.
Packit 437b5e
Packit 437b5e
	Merge pull request #11 from avnik/feature-pipe-and-dup2
Packit 437b5e
	Add dup, pipe & more, from avnik. Thanks!
Packit 437b5e
Packit 437b5e
2011-09-27  Mikhail Gusarov  <dottedmag@dottedmag.net>
Packit 437b5e
Packit 437b5e
	Tests for fcntl (untested)
Packit 437b5e
Packit 437b5e
2011-09-25  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Add setfl/getfl
Packit 437b5e
	Access to functionality of fcntl(fd, F_GETFL) and fcntl(fd, F_SETFL, arg)
Packit 437b5e
Packit 437b5e
2011-09-23  Alexander V. Nikolaev  <avn@daemon.hole.ru>
Packit 437b5e
Packit 437b5e
	Export WNOHANG to lua and pass options to wait
Packit 437b5e
Packit 437b5e
	Add pipe() and test
Packit 437b5e
Packit 437b5e
	Add dup/dup2 functions
Packit 437b5e
Packit 437b5e
2011-09-23  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: replace literal name of package with $(PACKAGE) once more.
Packit 437b5e
Packit 437b5e
2011-09-19  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: fix deps of the rockspec.
Packit 437b5e
Packit 437b5e
	Makefile.am: make release message shorter and more precise.
Packit 437b5e
Packit 437b5e
	Use $PACKAGE instead of luaposix.
Packit 437b5e
Packit 437b5e
	Fix distribution of rockspec source.
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.14.
Packit 437b5e
Packit 437b5e
	Make some symbolic constants case-insensitive in Lua.
Packit 437b5e
Packit 437b5e
	configure.ac: use $PACKAGE rather than spelling out the name.
Packit 437b5e
Packit 437b5e
	Makefile.am: actually make rockspec on release
Packit 437b5e
Packit 437b5e
2011-09-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: fixes for building with rockspec.
Packit 437b5e
	Don’t put the fully expanded rockspec in EXTRA_DIST, as this creates a
Packit 437b5e
	recursive dependency (on the distribution archive).
Packit 437b5e
Packit 437b5e
	Fix the extraction of the summary description from the rockspec.
Packit 437b5e
Packit 437b5e
	Whitespace fixes to reminder output at end of make release.
Packit 437b5e
Packit 437b5e
2011-09-17  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	rockspec: Find a remaining non-parametrized reference to the package name.
Packit 437b5e
Packit 437b5e
	rockspec: auto-generate (except for part of download URL, argh).
Packit 437b5e
Packit 437b5e
2011-09-16  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.13.
Packit 437b5e
Packit 437b5e
	tests-posix.lua: Fix glob test again; we seem to have no .o files, so use .la files.
Packit 437b5e
Packit 437b5e
2011-09-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Don't build or install useless static libs or versioned symlinks.
Packit 437b5e
Packit 437b5e
2011-09-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Update curses documentation for luaposix integration.
Packit 437b5e
Packit 437b5e
2011-09-10  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	configury: don’t try to guess install paths.
Packit 437b5e
	Remove machinery for guessing non-standardized install paths, and
Packit 437b5e
	instead expand documentation so it covers the standard Debian/Ubuntu
Packit 437b5e
	case.
Packit 437b5e
Packit 437b5e
2011-09-09  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	.gitignore: Add distribution tarball.
Packit 437b5e
Packit 437b5e
	Merge pull request #10 from gvvaughan/pull-request/refactor-lookup_symbol-mappings
Packit 437b5e
	refactor: lookup_symbol mappings with macro splicing
Packit 437b5e
Packit 437b5e
2011-09-09  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	refactor: lookup_symbol mappings with macro splicing
Packit 437b5e
	Tabulate just the basename for each mapping, and then stringify with an
Packit 437b5e
	offset, or splice in the prefix before macro expansion as each static
Packit 437b5e
	table initializer is built by the preprocessor.
Packit 437b5e
Packit 437b5e
2011-09-09  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Makefile.am: fix make distcheck.
Packit 437b5e
Packit 437b5e
	.gitignore: Add *.html and ChangeLog.
Packit 437b5e
Packit 437b5e
	Distribute tests.
Packit 437b5e
Packit 437b5e
	Distribute strlcpy.c.
Packit 437b5e
Packit 437b5e
	configury: Make building curses optional.
Packit 437b5e
Packit 437b5e
	Merge lcurses into luaposix.
Packit 437b5e
Packit 437b5e
2011-09-08  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #9 from gvvaughan/pull-request/tabulate-lookup_symbol-mappings
Packit 437b5e
	bugfix: tabulate lookup_symbol mappings
Packit 437b5e
Packit 437b5e
2011-09-08  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	bugfix: tabulate lookup_symbol mappings
Packit 437b5e
	By keeping the map relationship explicitly in a macro expanded table,
Packit 437b5e
	prevent: And in this case fix a bug in the earlier changeset 58f586b
Packit 437b5e
	where they got out of sync.
Packit 437b5e
Packit 437b5e
2011-09-08  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #8 from gvvaughan/pull-request/add-libcrypt-if-required
Packit 437b5e
	configury: add libcrypt if required
Packit 437b5e
Packit 437b5e
	Merge pull request #7 from gvvaughan/pull-request/no-m4-quotes-in-configure-ac
Packit 437b5e
	configury: no m4 quotes in configure.ac
Packit 437b5e
Packit 437b5e
	Merge pull request #6 from gvvaughan/pull-request/need-dummy-incase-gnulib-has-no-objects
Packit 437b5e
	configury: need dummy module incase gnulib has no other objects
Packit 437b5e
Packit 437b5e
	Merge pull request #5 from gvvaughan/pull-request/let-bootstrap-conf-manage-gnulib-gitignore
Packit 437b5e
	configury: let bootstrap.conf manage gnulib .gitignore
Packit 437b5e
Packit 437b5e
	Merge pull request #4 from gvvaughan/pull-request/darwin-has-no-o-rsync-definition
Packit 437b5e
	portability: darwin has no O_RSYNC definition
Packit 437b5e
Packit 437b5e
2011-09-08  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	configury: add libcrypt if required
Packit 437b5e
	When the crypt() function does not work unaided, try again by adding
Packit 437b5e
	libcrypt to LIBS and substituting into Makefile.in.
Packit 437b5e
Packit 437b5e
	portability: darwin has no O_RSYNC definition
Packit 437b5e
Packit 437b5e
	configury: need dummy module incase gnulib has no other objects
Packit 437b5e
	It's only safe to use --avoid=dummy when there will never be a libgnu.a
Packit 437b5e
	built, i.e there are no other modules with C code, and thus the parent
Packit 437b5e
	project is never linked with libgnu.
Packit 437b5e
Packit 437b5e
2011-09-08  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	configury: let bootstrap.conf manage gnulib .gitignore
Packit 437b5e
	No need to check these files in when bootstrap.conf has functions to
Packit 437b5e
	manage them automatically without creating merge conflicts.
Packit 437b5e
Packit 437b5e
	For this changeset to work properly, you'll need to `git clean -f -x -d`
Packit 437b5e
	and then rerun bootstrap to generate a proper set of .gitignore files.
Packit 437b5e
Packit 437b5e
2011-09-08  Gary V. Vaughan  <gary@vaughan.pe>
Packit 437b5e
Packit 437b5e
	configury: no m4 quotes in configure.ac
Packit 437b5e
	Also, for the sake of forming good habits, keep the lvalua on the left
Packit 437b5e
	of a comparison, and avoid the potential for uname returning something
Packit 437b5e
	that test might interpret as an argument.
Packit 437b5e
Packit 437b5e
2011-09-07  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	lposix.c: Include config.h.
Packit 437b5e
Packit 437b5e
	Rename luaopen function to match new library name.
Packit 437b5e
Packit 437b5e
	Add missing quotes.
Packit 437b5e
Packit 437b5e
	Replace previous machinery for detecting extra cc and ld flags.
Packit 437b5e
Packit 437b5e
	autotoolize the build system.
Packit 437b5e
Packit 437b5e
	Add read and write.
Packit 437b5e
Packit 437b5e
2011-09-07  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add open and close.
Packit 437b5e
	Generalise get_rlimit_const to lookup_symbol, and use it for open
Packit 437b5e
	flags.
Packit 437b5e
Packit 437b5e
	Add a FIXME.
Packit 437b5e
Packit 437b5e
2011-09-06  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Tidy up whitespace and comments a bit for consistency.
Packit 437b5e
Packit 437b5e
2011-06-20  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Merge pull request #3 from jdegges/master
Packit 437b5e
	Add nanosleep.
Packit 437b5e
Packit 437b5e
2011-06-20  Joey Degges  <jdegges@gmail.com>
Packit 437b5e
Packit 437b5e
	Add nanosleep.
Packit 437b5e
Packit 437b5e
2011-06-04  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove unneeded shim for luaL_register; Lua 5.2 still has compatibility code for this.
Packit 437b5e
Packit 437b5e
2011-05-11  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove pushfile, which uses undocumented tricks which don’t work on LuaJIT, and hence dup, fdopen and pipe.
Packit 437b5e
Packit 437b5e
	Reformat test.lua a bit more consistently.
Packit 437b5e
Packit 437b5e
	Separate out Lua 5.2 compatibility.
Packit 437b5e
Packit 437b5e
2011-05-11  David Favro  <lua@meta-dynamic.com>
Packit 437b5e
Packit 437b5e
	Ported to 5.2.0-alpha.
Packit 437b5e
	 * Lightly tested.
Packit 437b5e
	 * Conditional compilation, so remains backwards-compatible with 5.1.
Packit 437b5e
Packit 437b5e
2011-05-11  David Favro  <lua@meta-dynamic.com>
Packit 437b5e
Packit 437b5e
	Makefile fix/enhancement.
Packit 437b5e
	 * Fixed incorrect version string in library.
Packit 437b5e
Packit 437b5e
	 * Compiles with -O2 rather than no optimization.
Packit 437b5e
Packit 437b5e
	 * Added 'debug' target.  This may not work for non-GNU makes.
Packit 437b5e
Packit 437b5e
2011-05-11  David Favro  <lua@meta-dynamic.com>
Packit 437b5e
Packit 437b5e
	Fixed bugs in dup().
Packit 437b5e
	 * Fixed bug: segfault (null pointer dereference) in dup(x,nil).
Packit 437b5e
Packit 437b5e
	 * Fixed bug: non-conforming mode "rw" changed to "w+".  POSIX specifies "w+" or
Packit 437b5e
	   "r+" for read/write open.  "rw" is incorrect and fails to open for writing
Packit 437b5e
	   on GNU libc's fdopen().
Packit 437b5e
Packit 437b5e
2011-05-11  David Favro  <lua@meta-dynamic.com>
Packit 437b5e
Packit 437b5e
	Updated test.lua and added new tests.
Packit 437b5e
	 * Removed deprecated constructs foreach(), getn().
Packit 437b5e
	 * Added --no-times command-line option since that test is a bear to wait for.
Packit 437b5e
	 * Added new tests: dup(), fdopen().
Packit 437b5e
Packit 437b5e
2011-04-27  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.11.
Packit 437b5e
Packit 437b5e
	Fix a typo which caused a buffer overrun.
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.10.
Packit 437b5e
Packit 437b5e
	Fix typo in Pmkstemp.
Packit 437b5e
Packit 437b5e
	Fix possibly dangerous typos in mode_munch.
Packit 437b5e
Packit 437b5e
	Update maintainer and bump copyright year.
Packit 437b5e
Packit 437b5e
	Fix typo in error mesage.
Packit 437b5e
Packit 437b5e
	Add mkstemp.
Packit 437b5e
Packit 437b5e
2011-04-03  Gary V. Vaughan  <gary@gnu.org>
Packit 437b5e
Packit 437b5e
	lposix.c: Widen the _XOPEN_REALTIME guards around CLOCK_MONOTONIC et.al.
Packit 437b5e
	Several constants that are only defined with _XOPEN_REALTIME were
Packit 437b5e
	referenced even when _XOPEN_REALTIME is -1.
Packit 437b5e
Packit 437b5e
	Makefile: Darwin needs -D_POSIX_C_SOURCE in order to define SIGPOLL
Packit 437b5e
Packit 437b5e
2011-03-30  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Make sure _XOPEN_REALTIME is defined before testing its value.
Packit 437b5e
Packit 437b5e
	Remove non-POSIX rlimit resources, and as missing RLIMIT_AS.
Packit 437b5e
Packit 437b5e
2011-03-29  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Test _XOPEN_REALTIME correctly (!= -1, not merely defined).
Packit 437b5e
Packit 437b5e
2011-03-24  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Update maintainer and git repo location.
Packit 437b5e
Packit 437b5e
	Bump version to 5.1.9.
Packit 437b5e
Packit 437b5e
	Fix some Darwin problems.
Packit 437b5e
Packit 437b5e
	Guard realtime functions with _XOPEN_REALTIME, and remove a bogus debug line.
Packit 437b5e
Packit 437b5e
	Add getgroups.
Packit 437b5e
Packit 437b5e
	Add set_errno.
Packit 437b5e
Packit 437b5e
	Add _exit.
Packit 437b5e
Packit 437b5e
	Add signals support.
Packit 437b5e
Packit 437b5e
	Use lua_setfield where possible.
Packit 437b5e
Packit 437b5e
2011-03-22  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	release 5.1.8
Packit 437b5e
Packit 437b5e
2010-11-13  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add getopt_long.
Packit 437b5e
Packit 437b5e
2010-11-12  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Update maintainer and documentation information.
Packit 437b5e
Packit 437b5e
2010-10-26  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	isgraph/isprint: use function pointer to save a few bytes
Packit 437b5e
Packit 437b5e
2010-10-26  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	test: use execp instead of exec when testing fork (cherry picked from commit 42ec4caff2d4895577298f6f26156b80beacdaa6)
Packit 437b5e
	Conflicts:
Packit 437b5e
Packit 437b5e
		test.lua
Packit 437b5e
Packit 437b5e
2010-10-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Add isprint and isgraph.
Packit 437b5e
Packit 437b5e
	Add errno and stdio.h constants.
Packit 437b5e
Packit 437b5e
	Add abort and raise.
Packit 437b5e
Packit 437b5e
	Add some comments.
Packit 437b5e
Packit 437b5e
	Remove excess white space to aid readability, and fix some indenting.
Packit 437b5e
Packit 437b5e
	Remove Lua 5.0 compatibility.
Packit 437b5e
Packit 437b5e
	Add copyright notices for new contributors and tidy up old ones.
Packit 437b5e
Packit 437b5e
	Fold modemuncher.c into lposix.c, removing modesel array (same as lposix.c's M array).
Packit 437b5e
Packit 437b5e
	Use pushmode in Pumask, and hence remove modechopper from modemuncher.c.
Packit 437b5e
Packit 437b5e
	Put old ChangeLog in correct date order; remove non-ChangeLog format EOF marker.
Packit 437b5e
Packit 437b5e
2010-10-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Tidy up modemuncher.c.
Packit 437b5e
	Remove never-compiled debug code. This code is fairly well tested now.
Packit 437b5e
Packit 437b5e
	Fix whitespace and indentation.
Packit 437b5e
Packit 437b5e
	Remove camelCase name of modeLookup struct and typedef, which is only
Packit 437b5e
	used once, and use an anonymous struct instead.
Packit 437b5e
Packit 437b5e
	Rename the only remaining camelCase identifier in the entire file to a
Packit 437b5e
	non-camelCase one.
Packit 437b5e
Packit 437b5e
2010-10-26  Reuben Thomas  <rrt@sc3d.org>
Packit 437b5e
Packit 437b5e
	Remove unnecessary phony targets.
Packit 437b5e
Packit 437b5e
	Fix building with glibc (support for crypt).
Packit 437b5e
Packit 437b5e
	Remove non-POSIX gecos field of struct passwd.
Packit 437b5e
Packit 437b5e
	Improve a comment.
Packit 437b5e
Packit 437b5e
	Fix inconsistent indentation.
Packit 437b5e
Packit 437b5e
	Remove support for obsolete timezone argument of gettimeofday.
Packit 437b5e
Packit 437b5e
	Remove declaration of crypt; it's a build system problem.
Packit 437b5e
Packit 437b5e
	Add .gitignore file.
Packit 437b5e
Packit 437b5e
	Compile syslog functions on any system with new-enough POSIX.
Packit 437b5e
Packit 437b5e
	Clean up whitespace.
Packit 437b5e
Packit 437b5e
	Remove bogus whitespace.
Packit 437b5e
Packit 437b5e
2010-10-26  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	Revert "test: use execp instead of exec when testing fork"
Packit 437b5e
	This reverts commit 42ec4caff2d4895577298f6f26156b80beacdaa6.
Packit 437b5e
Packit 437b5e
	reverting so i can apply patchset
Packit 437b5e
Packit 437b5e
2010-10-23  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	test: use execp instead of exec when testing fork
Packit 437b5e
Packit 437b5e
2010-09-15  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	use integers for gettimeofday
Packit 437b5e
	so it works for platforms that uses float for lua numbers.
Packit 437b5e
Packit 437b5e
	Add note to ChangeLog that we moved to git
Packit 437b5e
Packit 437b5e
	rename ChangeLog to ChangeLog.old
Packit 437b5e
	We will only use git to provide the history from now on.
Packit 437b5e
Packit 437b5e
	fix bug in setrlimit
Packit 437b5e
Packit 437b5e
2010-08-12  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	release 5.1.7
Packit 437b5e
Packit 437b5e
2010-08-11  Tim Niemueller  <niemueller@kbsg.rwth-aachen.de>
Packit 437b5e
Packit 437b5e
	Make clock_* arguments optional
Packit 437b5e
	With the last change the clock id argument was no longer optional as
Packit 437b5e
	intended.
Packit 437b5e
Packit 437b5e
2010-08-11  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	set LIBVERSION=6
Packit 437b5e
	should have been done before the 5.1.5 release :-(
Packit 437b5e
Packit 437b5e
2010-08-10  Tim Niemueller  <niemueller@kbsg.rwth-aachen.de>
Packit 437b5e
Packit 437b5e
	Make clock_get* functions take string argument
Packit 437b5e
	For consistency with existing functions.
Packit 437b5e
Packit 437b5e
2010-08-10  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	added function definitions for 'make show-funcs'
Packit 437b5e
Packit 437b5e
2010-08-09  Tim Niemueller  <niemueller@kbsg.rwth-aachen.de>
Packit 437b5e
Packit 437b5e
	Use realtime clock by default in clock_get*
Packit 437b5e
Packit 437b5e
	Added strftime
Packit 437b5e
Packit 437b5e
	Add localtime, gmtime and time
Packit 437b5e
Packit 437b5e
	Compilation fixes
Packit 437b5e
	+ Fix compilation warnings (uninitialized values, signed vs. unsigned)
Packit 437b5e
	+ if VERSION macro is not passed on command line, set to "unknown", allows
Packit 437b5e
	  to integrate source file into other buildsystems more easily
Packit 437b5e
Packit 437b5e
	Add gettimeofday, clock_getres, clock_gettime
Packit 437b5e
Packit 437b5e
2010-03-29  Natanael Copa  <ncopa@alpinelinux.org>
Packit 437b5e
Packit 437b5e
	release 5.1.5
Packit 437b5e
Packit 437b5e
	use git describe to generate version string
Packit 437b5e
	and use cgit do distribute tarball so we dont need the tar stuff in makefile
Packit 437b5e
Packit 437b5e
2009-08-11  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	luafication of getrlimit/setrlimit
Packit 437b5e
	Use strings as parameters to select resource rather than integer
Packit 437b5e
	constants.
Packit 437b5e
Packit 437b5e
2009-08-11  Enrico Tassi  <gares@fettunta.org>
Packit 437b5e
Packit 437b5e
	set/getrlimit, set/getuid and setlogmask bindings
Packit 437b5e
	Hi,
Packit 437b5e
Packit 437b5e
	  while packagin the jabber server "prosody" for Debian, I noticed that
Packit 437b5e
	it was using a custom binding of some posix function not available in
Packit 437b5e
	luaposix. After asking prosody author, I wrote a patch for luaposix
Packit 437b5e
	that adds the missing functionalities prosody is actually shipping in a
Packit 437b5e
	custom .so.
Packit 437b5e
Packit 437b5e
	The attached patch binds the following functions:
Packit 437b5e
	set/getrlimit, set/getuid and setlogmask.
Packit 437b5e
Packit 437b5e
	I'd like it to be integrated in a future release of luaposix, if
Packit 437b5e
	posible.
Packit 437b5e
Packit 437b5e
	Cheers
Packit 437b5e
	--
Packit 437b5e
	Enrico Tassi
Packit 437b5e
Packit 437b5e
2008-07-18  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	Set LIBVERSION=4 for release 5.1.4.
Packit 437b5e
Packit 437b5e
2008-07-18  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	support for crypt()
Packit 437b5e
	from openwrt.
Packit 437b5e
Packit 437b5e
	https://dev.openwrt.org/cgi-bin/trac.fcgi/browser/packages/lang/luaposix/patches/200-crypt.patch?rev=11585
Packit 437b5e
Packit 437b5e
2008-07-18  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	ignore POLLHUP and POLLNVAL since they are only for output
Packit 437b5e
	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491257
Packit 437b5e
Packit 437b5e
2008-06-03  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	updated readme and changelog
Packit 437b5e
Packit 437b5e
	use luaL_register
Packit 437b5e
Packit 437b5e
	From: 	Felix Fietkau <nbd@openwrt.org>
Packit 437b5e
	here's a small patch that fixes luaposix compile on Darwin / Mac OS X
Packit 437b5e
Packit 437b5e
2008-01-29  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	added fdopen()
Packit 437b5e
Packit 437b5e
	updated changelog
Packit 437b5e
Packit 437b5e
	version 5.1.2
Packit 437b5e
Packit 437b5e
	added syslog funcs dup() takes and returns lua files. added fileno() exec renamed to execp and new exec func uses execv(3) rather than execvp(3)
Packit 437b5e
Packit 437b5e
2008-01-28  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	dont run test by default
Packit 437b5e
Packit 437b5e
	sorted #includes, removed dead code, whitspacefixes
Packit 437b5e
Packit 437b5e
2008-01-25  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	cleaned up Makefile
Packit 437b5e
Packit 437b5e
	avoid warning on 64 bit hosts
Packit 437b5e
Packit 437b5e
2008-01-24  Natanael Copa  <natanael.copa@gmail.com>
Packit 437b5e
Packit 437b5e
	added poll() from http://lua-users.org/lists/lua-l/2007-11/msg00346.html
Packit 437b5e
Packit 437b5e
	included stuff from http://lua-users.org/lists/lua-l/2006-10/msg00448.html
Packit 437b5e
Packit 437b5e
	Initial revision