Permalink
Commits on Mar 7, 2017
  1. Merge pull request #209 from justincormack/osx_clock

    Add CLOCK_ constants for OSX
    committed on GitHub Mar 7, 2017
  2. Add CLOCK_ constants for OSX

    Since 10.12 these have been available; the functions were added
    automatically.
    
    See daurnimator/luatz#11
    
    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Mar 7, 2017
Commits on Feb 16, 2017
  1. Merge pull request #208 from justincormack/holes

    Add SEEK_DATA and SEEK_HOLE constants
    committed on GitHub Feb 16, 2017
  2. Add SEEK_DATA and SEEK_HOLE constants

    Allow discovery of holes in files with lseek(2).
    
    Fix #207
    
    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 16, 2017
Commits on Feb 15, 2017
  1. Add memfd fnctl sealing support

    - this adds the memfd functionality for immutability.
    
    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 15, 2017
Commits on Feb 13, 2017
  1. more test fixes for memfd

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 13, 2017
  2. fix ctest for new fcntl changes, typowq

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 13, 2017
  3. fix ctest for new fcntl changes

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 13, 2017
  4. fix typo

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 13, 2017
  5. Add more constants for fcntl, memfd

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 13, 2017
Commits on Feb 12, 2017
  1. Fix ppc64le syscall numbers for newer calls

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Feb 12, 2017
Commits on Jan 25, 2017
  1. Merge pull request #206 from johnae/master

    The spook project is using ljsyscall.
    committed on GitHub Jan 25, 2017
Commits on Nov 26, 2016
  1. Merge pull request #205 from lukego/close-fd-safely

    Add more protection against fd double-close
    committed on GitHub Nov 26, 2016
  2. Add more protection against fd double-close

    There are three ways to close a file descriptor object:
    
    - S.close(fd)
    - fd:close()
    - garbage collection finalizer
    
    This change ensures the close() system call is only called once: the
    first time the file descriptor object is closed in any of these ways.
    
    This logic already existed for fd:close() and garbage collection but
    it was bypassed by S.close(fd). This has lead to double-close bugs in
    practice.
    
    Consider this example program:
    
        local fd = S.open("/etc/passwd")
        S.close(fd)
        collectgarbage()
    
    On the parent commit this code would close the file descriptor twice,
    once explicitly and then once with the GC finalizer:
    
        open("/etc/passwd", O_RDONLY)           = 3
        close(3)                                = 0
        close(3)                                = -1 EBADF (Bad file descriptor)
    
    but with this commit it will close only once:
    
        open("/etc/passwd", O_RDONLY)           = 3
        close(3)                                = 0
    
    This seems important because double-close bugs on file descriptors can
    be very difficult to diagnose. If the file descriptor number has been
    reused before the second close then the effect will be unpredictable.
    lukego committed Nov 26, 2016
Commits on Aug 9, 2016
  1. Merge pull request #202 from justincormack/dockerignore

    Use dockerignore to simplify Dockerfile
    committed on GitHub Aug 9, 2016
  2. Use dockerignore to simplify Dockerfile

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Aug 9, 2016
  3. Merge pull request #200 from justincormack/redo-dockerfile

    Rework Dockerfile and tests
    committed on GitHub Aug 9, 2016
  4. Docker Cloud does not start processes at priority 0, remove from test

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Aug 9, 2016
  5. Rework Dockerfile and tests

    Rework Dockerfile so that it installs code in a more
    useful place, much easier for reuse.
    
    Rework tests to be more standalone and work against
    installed version.
    
    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Aug 9, 2016
Commits on Aug 3, 2016
  1. Merge pull request #199 from vavrusa/master

    linux/constants: added new BPF map and prog types
    committed on GitHub Aug 3, 2016
Commits on Jul 11, 2016
  1. use Alpine 3.4 for docker build

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Jul 11, 2016
Commits on May 26, 2016
  1. Merge pull request #196 from kbara/removecunused

    Remove unused variables from c.lua
    committed May 26, 2016
  2. Merge pull request #195 from kbara/fixgetcpu

    Fix getcpu: the cpu argument was incorrectly given the node variable
    committed May 26, 2016
  3. Remove unused variables from c.lua

    Katerina Barone-Adesi committed May 26, 2016
  4. Fix getcpu: the cpu argument was incorrectly given the node variable …

    …previously
    Katerina Barone-Adesi committed May 26, 2016
Commits on May 22, 2016
  1. update changelog and rockspec for 0.12 release

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed May 22, 2016
  2. Merge pull request #192 from vavrusa/master

    linux/bpf_prog_load: support custom kernel builds
    committed May 22, 2016
Commits on May 4, 2016
  1. linux/bpf_prog_load: support custom kernel builds

    for custom-built kernels, kernel.version may not
    always contain the kernel version number
    also support kernel versions with more than one
    digits between dots
    vavrusa committed May 4, 2016
Commits on Apr 21, 2016
  1. fix missing vhangup

    Signed-off-by: Justin Cormack <justin@specialbusservice.com>
    committed Apr 21, 2016
  2. Merge pull request #191 from vavrusa/linux-perf-open

    linux: performance monitoring API
    committed Apr 21, 2016
Commits on Apr 18, 2016
  1. linux: added support for tracing/performance counters

    * added perf_event_open(2), constants and syscalls,
    and a higher-level API over tracing interface
    out of the box it supports performance counters
    and static tracepoints
    
    perf reader has count and sample mode, but the
    sample/mmap mode has no parser for event types
    
    * interface for {att,det}aching {k,u}probes
    
    the semantics is similar to Lua tables, if the
    probe definition is set, function returns
    a tracepoint number if successful (or true if
    detaching a probe), that can be used with perf
    reader API in the same way as tracepoints
    vavrusa committed Apr 13, 2016
Commits on Apr 14, 2016
  1. Merge pull request #190 from vavrusa/master

    linux: BPF improvements
    committed Apr 14, 2016
  2. linux: added new constants (e.g. attach BPF to socket)

    increased default BPF prog load log size (too small)
    vavrusa committed Apr 13, 2016