Permalink
Commits on Nov 20, 2015
  1. Merge pull request #239 from jimmyharris/fix-termios

    gvvaughan committed Nov 20, 2015
    Preserve baud rates in termios table
  2. Preserve baud rates in termios table

    James Harris
    James Harris committed Nov 19, 2015
    Previous versions of the termios interface assumed that the baud rate
    constants B0 B50 ... B115200 were bit masks that needed to be set in the
    cflags member of the termios struct. On most modern operating systems
    those are actually mapped to different members (not usually documented)
    that contain the baud speed. This speed is set using the posix
    functions: cfgetispeed(), cfgetospeed(), cfsetispeed(), and
    cfsetospeed(). Because the termios_p struct is translated into a lua
    table rather than being maintained in its original data format, extra
    information like the baud rate is lost.  This doesn't effect
    manipulations on ptty devices, but attempting to use this functionality
    over a physical serial connection results in the baud rate being set to
    whatever value was in the termios_p when it was created.
    
    This patch fixes this issue by adding the ispeed and ospeed to the lua
    representation of termios_p. This will allow luaposix to properly handle
    serial files backed by physical pipes.
Commits on Oct 18, 2015
  1. posix: don't leak execx into global namespace.

    gvvaughan committed Oct 18, 2015
    Close #236
    * lib/posix.lua.in (execx): Should be declared as a local.
    * NEWS.md (Bugs Fixed): Update.
    Reported by Felix Strilitz
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. unistd: readlink works on links to special devices.

    gvvaughan committed Oct 18, 2015
    * ext/include/_helpers.c (PATH_MAX): Fall back to 1024 if the
    system headers don't define this.
    * ext/posix/unistd.c (Preadlink): When st_size is zero, as is the
    case for symlinks to some character and buffer devices on OSX,
    write the symlink destination path into a PATH_MAX length buffer
    instead of an st_size length buffer!
    * NEWS.md (Bug Fixes): Update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Oct 16, 2015
  1. examples: demonstrate use of pipe and dup2 for fork/exec prep.

    gvvaughan committed Oct 16, 2015
    * examples/dup2.lua: New file.  People often want to call a
    subprocess and collect the output, error and status of that
    process in the parent.  Here is a simple example of just that!
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. unistd: add bindings to functions tcgetpgrp, tcsetpgrp

    Deoxyribonucleic authored and gvvaughan committed May 19, 2015
    Close #234
    * ext/posix/unistd.c (tcgetpgrp, tcsetpgrp): New API bindings
    where supported by host C library.
    * NEWS.md (New Features): Update.
Commits on Oct 14, 2015
  1. socket: fix a typo in AF_NETLINK refactor.

    gvvaughan committed Oct 14, 2015
    * ext/posix/sys/socket.c (pushsockaddrinfo): There's only one 'n'
    in 'sockaddr_nl'.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. socket: apparently Linux doesn't have sockaddr_un.sun_len.

    gvvaughan committed Oct 14, 2015
    * ext/posix/sys/socket.c (pushsockaddrinfo): Use sizeof on the
    sun_path array, and always save the entire buffer.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. socket: handle AF_UNIX socket path string lengths properly.

    gvvaughan committed Oct 14, 2015
    Close #232
    * ext/include/_helpers.c (checkstringfield): Add a length pointer,
    and...
    (checklstringfield): ...rename to this.
    (checkstringfield): Add a macro wrapper for the old API.
    (pushlstringfield): New macro to push an lstring.
    * ext/posix/sys/socket.c (pushsockaddrinfo): Use pushlstringfield
    for AF_UNIX path field so as not to terminate at the first \0.
    (sockaddr_from_lua): Use memcpy for the same reason.
    * examples/abstract-ns-server.lua, examples/abstract-ns-client.lua:
    New examples demonstrating non-NULL terminated AF_UNIX paths to
    us the Linux abstract namespace.
    * NEWS.md (New Features, Bugs Fixed): Update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Oct 6, 2015
  1. docs: don't mention removed KEY_MOUSE.

    gvvaughan committed Oct 6, 2015
    * ext/posix/curses.c: Remove KEY_MOUSE doc table entry.
    Reported by Peter Melnichenko.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Oct 3, 2015
  1. maint: update README.md.

    gvvaughan committed Oct 3, 2015
    Closes #233.
    * README.md: Update and overhaul.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Aug 26, 2015
  1. specs: add full examples for deprecated posix.getpid behaviour.

    gvvaughan committed Aug 26, 2015
    * specs/posix_compat_spec.yaml (getpid): Move from here...
    * specs/posix_deprecated_spec.yaml (getpid): ...to here.  Add
    examples of fetching each supported syscall result, as well as
    default full table when called with no arguments.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Aug 23, 2015
  1. configury: set and use HAVE_FDATASYNC for fdatasync support.

    gvvaughan committed Aug 23, 2015
    FreeBSD 10.x claims POSIX.2001 compliance, but doesn't implement
    the fdatasync API.
    * configure.ac (AC_CHECK_FUNCS): Add fdatasync.
    * ext/posix/unistd.c (Pfdatasync, posix_unistd_fns): Elide
    posix.unistd.fdatasync when HAVE_FDATASYNC was not specified,
    instead of LPOSIX_2001_COMPLIANT.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. configury: don't mess up visible symbols on FreeBSD 10.x.

    gvvaughan committed Aug 23, 2015
    * configure.ac: Add openbsd* to the list of platforms that are
    already POSIX.2008 compliant, until _XOPEN_SOURCE definition turns
    off all the other stuff.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jul 4, 2015
  1. fcntl: add constants FD_CLOEXEC, and O_CLOEXEC where supported.

    fabled authored and gvvaughan committed Jul 4, 2015
    Close #227.
    * ext/posix/fcntl.c (O_CLOEXEC): Default to `0` when not defined
    by underlying system so that it can be ORed successfully.
    (open): Note O_CLOEXEC in LDocs.
    (O_CLOEXEC, FD_CLOEXEC): Define as Lua constants.
    * NEWS (New Features): Update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. doc: update opengroup manual links to issue 7 webpages.

    gvvaughan committed Jul 4, 2015
    * build-aux/config.ld.in (upat): Build issue 7 links.
    * NEWS.md (New Features): Update.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. maint: add new posix.stdio.rename binding to NEWS.

    gvvaughan committed Jul 4, 2015
    * NEWS.md (New Features): Add posix.stdio.rename binding.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jun 30, 2015
  1. stdio: add rename(2) binding.

    zevv authored and gvvaughan committed Jun 29, 2015
    Closes #228, #229
    * specs/posix_stdio_spec.yaml (rename): Specify behaviour of
    posix.stdio.rename.
    * ext/posix/stdio.c (Prename): Bind rename(2).
    (posix_stdio_fns): Export Prename.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. maint: add MIT license badge to README.md.

    gvvaughan committed Jun 30, 2015
    * README.md: Add MIT license badge.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jun 27, 2015
  1. slingshot: sync with upstream for Travis Lua 5.3.1 support.

    gvvaughan committed Jun 27, 2015
    * slingshot: Sync with upstream.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Jun 20, 2015
  1. Fix docstring for spawn

    rrthomas committed Jun 20, 2015
Commits on Jun 14, 2015
  1. unistd: add support for alarm(2).

    bblack-cuda authored and gvvaughan committed Jun 14, 2015
    Close #226
    * specs/posix_unistd_spec.yaml (alarm): Specify correct behaviour
    for new alarm(2) call.
    * ext/posix/unistd.c (Palarm): Implement it.
    (posix_unistd_fns): Add Palarm.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Commits on Apr 7, 2015
  1. sched: workaround glibc _POSIX_PRIORITY_SCHEDULING bug.

    gvvaughan committed Apr 7, 2015
    Close #223.
    * configure.ac (AC_CHECK_HEADERS): Add sched.h.
    * ext/posix/sched.c: Remove unistd.h; Predicate use of priority
    scheduling APIs on presence of sched.h instead of
    _POSIX_PRIORITY_SCHEDULING macro erroneously defined by glibc on
    Linux.
    Reported by ncopa@github.com.
    
    Signed-off-by: Gary V. Vaughan <gary@vaughan.pe>
Commits on Mar 22, 2015
  1. curses: fix links to opengroup manual pages.

    gvvaughan committed Mar 22, 2015
    Close #220
    * build-aux/config.ld.in (cpat): Define a new custom handler for
    3x manual pages to set curses urls correctly.
    * ext/posix/curses.c, ext/posix/curses/window.c: Fix LDoc @see
    references to point to existing opengroup pages.
    * NEWS.md (Bugs Fixed): Update.
    
    Signed-off-by: Gary V. Vaughan <gary@vaughan.pe>
  2. docs: fix return type of curses.window:getch.

    gvvaughan committed Mar 22, 2015
    Close #222
    * ext/posix/curses/window.c (Wgetch): This function returns the
    character from the window's input buffer as an int, not a bool.
    Reported by Boris Nagaev <bnagaev@gmail.com>
    
    Signed-off-by: Gary V. Vaughan <gary@vaughan.pe>
  3. docs: add missing y and x parameters to curses.window:mvaddch.

    gvvaughan committed Mar 22, 2015
    Close #221
    * ext/posix/curses/window.c (Wmvaddch): Add missing y and x
    parameters to doc-comments.
    Reported by Boris Nagaev <bnagaev@gmail.com>
    
    Signed-off-by: Gary V. Vaughan <gary@vaughan.pe>
Commits on Mar 7, 2015
  1. slingshot: sync with upstream, to subproject .travis.yml.

    gvvaughan committed Mar 7, 2015
    * slingshot: Sync with upstream.
    * .travis.yml: Regenerate.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  2. examples: be consistent with spaces before parens.

    gvvaughan committed Mar 7, 2015
    * examples/curses.lua: Be consistent with spaces before parens.
    
    Signed-off-by: Gary V. Vaughan <gary@gnu.org>
  3. Merge pull request #219 from starius/master

    gvvaughan committed Mar 7, 2015
    curses example: use Lua boolean false instead of 0
  4. curses example: use Lua boolean false instead of 0

    starius committed Mar 7, 2015
    curses.echo(0) is actually curses.echo(false), because
    value 0 is truthy in Lua.
Commits on Mar 3, 2015
  1. posix/stdio.c: fix usage example for fdopen

    rrthomas committed Mar 3, 2015
    Thanks, Philipp Janda.
  2. posix/stdio.c: add missing parameter documentation to fdopen

    rrthomas committed Mar 3, 2015
    Thanks, Philipp Janda.
Commits on Mar 1, 2015
  1. maint: post-release administrivia.

    gvvaughan committed Mar 1, 2015
    * 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. Release version 33.3.1

    gvvaughan committed Mar 1, 2015
    * NEWS.md: Record release date.