Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 31, 2015
  1. @gvvaughan

    signal: workaround a printf long vs int type coercion issue.

    gvvaughan authored
    * ext/posix/signal.c (sig_handle): Some architectures use a long
    for sig_atomic_t, so we need a %ld specifier to display it without
    a warning.  In case sig_atomic_t is narrower than a long, cast it
    up before passing to fprintf.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    sys.socket: move sys/types.h include earlier.

    gvvaughan authored
    * ext/posix/sys/socket.c: netinet/udp.h complains about lack of
    u_short definition on FreeBSD 10, so move sys/types.h before it
    in the hope of fixing that.
    Reported by jeangit@github.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. @gvvaughan

    sys.resource: add ifdef guards to RLIM_SAVED_CUR and RLIM_SAVED_MAX.

    gvvaughan authored
    * ext/posix/sys/resource.c (luaopen_posix_sys_resource): Add
    ifdef guards around RLIM_SAVED_CUR and RLIM_SAVED_MAX declarations,
    because FreeBSD 10 does not provide them.
    Reported by jeangit@github.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jan 20, 2015
Commits on Jan 19, 2015
  1. @gvvaughan

    doc: improve LDocs for sys.socket sockaddr tables.

    gvvaughan authored
    Closes #200
    * ext/posix/sys/socket.c (sockaddr): Document all optional fields.
    * NEWS.md: Update.
    Reported by Bernd Eggink
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    slingshot: sync with upstream for lua 5.3.0 final support.

    gvvaughan authored
    * slingshot: Sync with upstream.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jan 18, 2015
  1. Make posix.pipeline_slurp more efficient

    authored
    Use standard table.concat method instead of repeated string
    concatenation.
Commits on Jan 4, 2015
  1. @gvvaughan

    maint: post-release administrivia.

    gvvaughan authored
    * NEWS: Add header line for next release.
    * .prev-version: Record previous version.
    * ./local.mk (old_NEWS_hash): Auto-update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    Release version 33.2.1

    gvvaughan authored
    * NEWS.md: Record release date.
  3. @gvvaughan

    configury: distribute posix.curses.html correctly.

    gvvaughan authored
    * local.mk (dist_modules_DATA): Add posix.curses.html.
    * configure.ac (AC_INIT): Bump release version to 33.2.1.
    * .travis.yml: Regenerate.
    * NEWS.md: Update.
    Reported by Ulrich Schmidt <u.sch.zw@gmx.de>
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jan 3, 2015
  1. @gvvaughan

    maint: post-release administrivia.

    gvvaughan authored
    * NEWS: Add header line for next release.
    * .prev-version: Record previous version.
    * ./local.mk (old_NEWS_hash): Auto-update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    Release version 33.2.0

    gvvaughan authored
    * NEWS.md: Record release date.
  3. @gvvaughan

    specs: accept '?' as function name in Lua bad argument errors.

    gvvaughan authored
    LuaJIT in particular often fails to find the name of a function,
    so we must accept '?' when checking error message contents.
    * specs/spec_helper.lua (typeerrors): Call badargs.format twice,
    and return a table of results.
    (init): Use typerrors wrapper.
    * specs/posix_compat_spec.yaml, specs/posix_deprecated_spec.yaml,
    specs/posix_spec.yaml, specs/posix_sys_resource_spec.yaml,
    specs/posix_sys_socket_spec.yaml, specs/posix_time_spec.yaml: Use
    spec_helper.lua:init, or manually create a list of error messages
    including returned function name, or "?" when that could not be
    found, e.g. by LuaJIT.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jan 2, 2015
  1. @gvvaughan

    configury: bump release version to 33.2.0.

    gvvaughan authored
    * configure.ac (AC_INIT): Bump release version to 33.2.0.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    maint: adjust indentation for github markdown multi-para bullets.

    gvvaughan authored
    * NEWS.md: Adjust indentation so that multi-paragram bullet
    points are correctly rendered by github markdown.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. @gvvaughan

    specs: fix off by one error in localtime and gmtime examples.

    gvvaughan authored
    * specs/posix_time_spec.yaml (gmtime, localtime): Fix expectation
    range to fit (correct) description.
    * NEWS.md: Update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  4. @gvvaughan

    gnulib: sync with upstream.

    gvvaughan authored
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  5. @gvvaughan

    maint: commit git rockspec to master branch.

    gvvaughan authored
    * .gitignore: Allow git rockspecs.
    * luaposix-git-1.rockspec: New file.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  6. @gvvaughan

    configury: add ansicolors to travis_extra_rocks.

    gvvaughan authored
    * bootstrap.conf (buildreq): Reference Specl 14.0.0 with correct
    version number.
    (travis_extra_rocks): Add ansicolors for color specl outpet.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jan 1, 2015
  1. @gvvaughan

    maint: add 5.3 to compatiblity statement in files' preamble.

    gvvaughan authored
    * ext/include/_helpers.c, ext/posix/bit32.c, ext/posix/ctype.c,
    ext/posix/curses.c, ext/posix/curses/chstr.c,
    ext/posix/curses/window.c, ext/posix/dirent.c,
    ext/posix/errno.c, ext/posix/fcntl.c, ext/posix/fnmatch.c,
    ext/posix/getopt.c, ext/posix/glob.c, ext/posix/grp.c,
    ext/posix/libgen.c, ext/posix/poll.c, ext/posix/posix.c,
    ext/posix/pwd.c, ext/posix/sched.c, ext/posix/signal.c,
    ext/posix/stdio.c, ext/posix/stdlib.c, ext/posix/sys/msg.c,
    ext/posix/sys/resource.c, ext/posix/sys/socket.c,
    ext/posix/sys/stat.c, ext/posix/sys/statvfs.c,
    ext/posix/sys/time.c, ext/posix/sys/times.c,
    ext/posix/sys/utsname.c, ext/posix/sys/wait.c,
    ext/posix/syslog.c, ext/posix/termio.c, ext/posix/time.c,
    ext/posix/unistd.c, ext/posix/utime.c, lib/posix.lua.in,
    lib/posix/_argcheck.lua, lib/posix/compat.lua,
    lib/posix/deprecated.lua, lib/posix/util.lua: Add 5.3 to
    compatibility statement in files' preamble.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    maint: update copyrights.

    gvvaughan authored
    * COPYING, bootstrap.conf, configure.ac, ext/include/_helpers.c,
    ext/posix/bit32.c, ext/posix/ctype.c, ext/posix/curses.c,
    ext/posix/curses/chstr.c, ext/posix/curses/window.c,
    ext/posix/dirent.c, ext/posix/errno.c, ext/posix/fcntl.c,
    ext/posix/fnmatch.c, ext/posix/getopt.c, ext/posix/glob.c,
    ext/posix/grp.c, ext/posix/libgen.c, ext/posix/poll.c,
    ext/posix/posix.c, ext/posix/pwd.c, ext/posix/sched.c,
    ext/posix/signal.c, ext/posix/stdio.c, ext/posix/stdlib.c,
    ext/posix/sys/msg.c, ext/posix/sys/resource.c,
    ext/posix/sys/socket.c, ext/posix/sys/stat.c,
    ext/posix/sys/statvfs.c, ext/posix/sys/time.c,
    ext/posix/sys/times.c, ext/posix/sys/utsname.c,
    ext/posix/sys/wait.c, ext/posix/syslog.c, ext/posix/termio.c,
    ext/posix/time.c, ext/posix/unistd.c, ext/posix/utime.c,
    lib/posix.lua.in, lib/posix/_argcheck.lua, lib/posix/compat.lua,
    lib/posix/deprecated.lua, lib/posix/util.lua, local.mk: Add 2015
    to copyright statement.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. @gvvaughan

    rockspec: Lua 5.4 and higher not yet supported.

    gvvaughan authored
    * rockspec.conf (dependencies): Add lua < 5.4 constraint.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  4. @gvvaughan

    maint: use correct Specl >= 14 arity for bad argument errors.

    gvvaughan authored
    Now that Specl's badargs module is generating examples with
    the correct messages, we can now say 'no more than 0 arguments'.
    * ext/include/_helpers.c (checknargs): Return singular 'argument'
    in error message only for exactly 1 expected argument, otherwise
    plural.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  5. @gvvaughan

    slingshot: sync with upstream.

    gvvaughan authored
    * slingshot: Sync with upstream.
    * bootstrap: Update from slingshot.
    * configure.ac: Remove SS_CONFIG_TRAVIS invocation. Move extra
    rocks from here...
    * bootstrap.conf (travis_extra_rocks): ...to here.
    (require_bootstrap_uptodate): Remove.
    * .gitignore: Remove slingshot.m4.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Dec 22, 2014
  1. @gvvaughan

    configury: enable mkdtemp on _XOPEN_SOURCE incompatible hosts.

    gvvaughan authored
    * configure.ac (POSIX_EXTRA_CPPFLAGS) <darwin*, openbsd*>: Add
    -DLPOSIX_2008_COMPLIANT instead of -D_XOPENSOURCE=700.
    * ext/include/_helpers (LPOSIX_2008_COMPLIANT): When manually
    defined, also ensure LPOSIX_2001_COMPLIANT is defined.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Dec 19, 2014
  1. @gvvaughan

    maint: use table.unpack over unpack for 5.3.0 compatibility.

    gvvaughan authored
    Lua 5.3 has table.unpack but not _G.unpack; Lua 5.2 has
    table.unpack and _G.unpack; Lua 5.1 has _G.unpack but not
    table.unpack
    * lib/posix.lua.in (unpack): Use table.unpack over unpack, to
    work on all three!
    * lib/posix/deprecated.lua (unpack): Likewise.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    maint: add missing NEWS.

    gvvaughan authored
    * NEWS: Note recent QNX support.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. @gvvaughan

    stdlib: mkdtemp returns an error on substandard hosts.

    gvvaughan authored
    * ext/posix/stdlib.c (mkdtemp): Move POSIX compliance guards
    inside the function definition, with an alternate function body
    that returns an error when there is no mkdtemp in the C library.
    (posix_stdlib_fns): Remove POSIX compliance guard from mkdtemp.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  4. @gvvaughan

    maint: detect POSIX 2001 or POSIX 2008 compliance.

    gvvaughan authored
    Close #197.
    * configure.ac: Reformat comments.
    Pass LPOSIX_2001_COMPLIANT directly to cpp on QNX.
    * ext/include/_helpers.c (LPOSIX_2008_COMPLIANT): Enable only
    if _POSIX_C_SOURCE or _XOPEN_SOURCE are set appropriately.
    (LPOSIX_2001_COMPLIANT): Add _XOPEN_SOURCE >= 600 condition.
    * ext/posix/stdlib.c (Pmkdtemp): Disable this function unless
    LPOSIX_2008_COMPLIANT is defined.
    Reported by James Harris <jimmy@jamesharris.org>
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  5. @gvvaughan

    maint: post-release administrivia.

    gvvaughan authored
    * NEWS: Add header line for next release.
    * .prev-version: Record previous version.
    * ./local.mk (old_NEWS_hash): Auto-update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  6. @gvvaughan

    Release version 33.1.0

    gvvaughan authored
    * NEWS.md: Record release date.
  7. @gvvaughan

    specs: adjust setrlimit error message expectations.

    gvvaughan authored
    * specs/posix_sys_resource_spec.yaml (setrlimit): Adjust error
    messages to reflect recent int->number table field type changes.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  8. @gvvaughan

    slingshot: sync with upstream, for Lua 5.3.0 improvements.

    gvvaughan authored
    * slingshot: Sync with upstream.
    * bootstrap: Update from slingshot.
    * NEWS: Move from here...
    * NEWS.md: ...to here. Convert to Markdown format.
    * .gitignore: Add NEWS.
    * local.mk (old_NEWS_hash): Regenerate.
    (luaexec_LTLIBRARIES): Change from assigment to appending.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Dec 18, 2014
  1. @gvvaughan

    resources: don't truncate rlim structure field values.

    gvvaughan authored
    With f8d8939 we were too zealous with changing all internal
    types from lua_Number (et. al) to lua_Integer (et. al), where
    lua_Integer is not wide enough to contain an rlim_t.
    * ext/include/_helpers (checknumberfield, pushnumberfield)
    (setnumberfield): New function and macros equivalent to the
    earlier implementations of checkintegerfield, pushintegerfield
    and setintegerfield respectively.
    * ext/posix/sys/resource.c (pushrlimit): Set PosixRlimit table
    entries with setnumberfield.
    (setrlimit): Extract PosixRlimit fields with checknumberfield.
    * specs/posix_sys_resource_spec.yaml (setrlimit): Remove
    spurious braces.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. @gvvaughan

    posix: fix bad argument errors for spawn.

    gvvaughan authored
    * specs/posix_spec.yaml (spawn): Uncomment badargs diagnosis.
    * lib/posix.lua.in (M.spawn): Fix argument type error message for
    nil-valued argument 2.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Something went wrong with that request. Please try again.