1. 03 Feb, 2019 1 commit
    • James Clarke's avatar
      nlist.h: Re-allow direct use of nlist.n_name · fcc3cb5b
      James Clarke authored
      Commit e8d340de ("Remove a.out support from nlist()") introduced a copy of the
      definition of nlist from a.out.h. However, as well as having n_name inside
      n_un, n_name could also be accessed as a direct member of nlist, and this is
      made use of by FreeBSD's usr.bin/netstat/main.c. Thus we should also add the
      same enclosing anonymous union.
      fcc3cb5b
  2. 18 Jun, 2018 9 commits
  3. 17 Jun, 2018 3 commits
    • Guillem Jover's avatar
      Remove dead code in vis · 5e0998fa
      Guillem Jover authored
      The loop only executes while len > 0, and the trinary operator in the
      function argument is checking against len >= 1 which will always be
      true.
      
      Warned-by: coverity
      5e0998fa
    • Guillem Jover's avatar
      Fix vis family of functions to not leak · 8e2d5504
      Guillem Jover authored
      The code uses an internal helper function to avoid code repetition. But
      to get there, the function takes a pointer to a pointer, so that the few
      functions that require returning an allocated buffer can get hold of it
      this way.
      
      The problem is that the user might pass a NULL pointer and trigger an
      internal allocation even if the functions are not expected to do so.
      
      Add a new internal helper for non-allocations, that will assert that
      condition, and make any other function that requires this behavior call
      this one instead.
      
      Warned-by: coverity
      8e2d5504
    • Baruch Siach's avatar
      flopen: Add missing <fcntl.h> include · 13c32916
      Baruch Siach authored
      Commit 993828d8 (Add flopenat() function from FreeBSD) dropped the
      fcntl.h header. This breaks the build with musl libc:
      
      flopen.c: In function ‘vflopenat’:
      flopen.c:60:14: error: ‘O_CREAT’ undeclared (first use in this function)
        if (flags & O_CREAT) {
                    ^~~~~~~
      
      Restore the fcntl.h header include to fix the build.
      
      Fixes: commit 993828d8Submitted-also-by: 's avatarparazyd <parazyd@dyne.org>
      Signed-off-by: 's avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: Guillem Jover's avatarGuillem Jover <guillem@hadrons.org>
      13c32916
  4. 31 May, 2018 4 commits
  5. 23 May, 2018 2 commits
  6. 22 May, 2018 4 commits
    • Guillem Jover's avatar
      Release libbsd 0.9.1 · 1ca09c18
      Guillem Jover authored
      1ca09c18
    • Guillem Jover's avatar
      Fix strnvis() and strnunvis() NetBSD ABI break · e4e15ed2
      Guillem Jover authored
      The NetBSD implementations have different prototypes to the ones coming
      from OpenBSD, which will break builds, and have caused segfaults at
      run-time. We provide now both interfaces with different prototypes as
      different version nodes allow selecting them at compile-time, defaulting
      for now to the OpenBSD one to avoid build-time breakage, while emitting
      a compile-time warning. Later on, in 0.10.0, we will be switching the
      compile-time default to the NetBSD version.
      
      Ref: http://gnats.netbsd.org/44977
      Fixes: https://bugs.debian.org/899282
      e4e15ed2
    • Guillem Jover's avatar
      Add symbol redirection support · bf697b90
      Guillem Jover authored
      We need this to be able to select different version symbols at
      compile-time.
      bf697b90
    • Guillem Jover's avatar
      Fix COPYING file format · f1966385
      Guillem Jover authored
      We cannot refer to a License short-name if that is not on its own
      License paragraph. Split several other common License fields into
      their own paragraphs to avoid this problem in the future.
      f1966385
  7. 21 May, 2018 17 commits