commit 54796231c7eea5e2a404fd0e08773f68d7f2eead
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 22 22:41:51 2022 +0100

    Release libbsd 0.11.4

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 7aed0edf73ad71e9224c4ff6c74bbeb9547f8fb6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Dec 2 00:35:05 2021 +0100

    man: Add missing comma in .Dd for tree(3)
    
    Reported-by: Thorsten Glaser <tg@mirbsd.de>

 man/tree.3bsd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit fafcc397accedf1b8c3ef451cafa5f008bdb071d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Nov 30 04:00:54 2021 +0100

    man: Update tree(3) man page from OpenBSD
    
    This man page has a BSD-3-clause-author license instead of the old
    BSD-4-clause license.

 COPYING       |   2 +-
 man/tree.3bsd | 391 +++++++++++++++++++++++++++++++++++-----------------------
 2 files changed, 236 insertions(+), 157 deletions(-)

commit 48107fc8c4aa6dd6bff7e209003677d5ec3e49ea
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 28 23:19:16 2021 +0100

    build: Clarify link-time warnings
    
    Mention the involved function instead of stating an implicit "this
    function". Mention libbsd when proposing using an alternative libmd
    to make the context clear.

 src/fgetln.c  |  2 +-
 src/fgetwln.c |  2 +-
 src/md5.c     | 27 ++++++++++++++++++---------
 3 files changed, 20 insertions(+), 11 deletions(-)

commit e7cf8c5785b14fc8fbd37bb665a5f9a4f28c7888
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 28 22:44:08 2021 +0100

    Switch md5 compatibility logic back to direct linking
    
    When using the recent dlsym() based wrapper, we are not requiring any
    symbol from libmd, as we resolve those dynamically at run-time. We were
    ending up linking against libmd because in another part of the code we
    require (depending on the architecture) the SHA512 functions for the
    getentropy() local implementation. But that function might be provided
    by the system libc on some systems, which means we end up not linking
    against libmd at all.
    
    To solve this we go back to the previous simpler solution of linking
    directly, which had the main drawback of then making programs fail to
    link when not specifying -lmd (on platforms that need it). And then
    switch the .so link point from a symlink to a linker script, so that we
    can inject the -lmd library as-needed. This is similar to what glibc is
    doing.
    
    Fixes: commit 31f034e3862debda8615a449b1c11c4d6920dcc7

 .gitignore       |  1 +
 configure.ac     | 11 +++-----
 src/Makefile.am  | 32 ++++++++++++++++++++-
 src/md5.c        | 85 ++++++++++++++++++--------------------------------------
 test/Makefile.am |  5 ++++
 5 files changed, 68 insertions(+), 66 deletions(-)

commit 25d35625ebd8e41756751cbb069dd607fc9fc49f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 28 22:40:58 2021 +0100

    build: Split libmd dependency due to MD5 functions from SHA requirements
    
    To be able to rework the md5 deprecation logic, we need to detangle when
    we depend on libmd due to requiring MD5 functions, which might be
    otherwise provided by libc, or when we require SHA functions for the
    internal getentropy() implementation.

 configure.ac             | 3 ++-
 src/Makefile.am          | 1 +
 src/libbsd-overlay.pc.in | 2 +-
 src/libbsd.pc.in         | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

commit 500b3080a2fd27dcd14113235e05ca003ce23190
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 28 22:34:59 2021 +0100

    build: Add new libbsd_symver_weak() macro
    
    We will use it for the reworked md5 deprecation logic.

 src/local-link.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

commit 1eba40602175e9ee231cba7577c3eee975680dcb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 27 21:09:18 2021 +0100

    test: Check that strdup() does not fail
    
    Warned-by: gcc

 test/fgetln.c | 1 +
 1 file changed, 1 insertion(+)

commit 8ad7570c20d2381a5e1962d9b1b813d44c080837
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 27 21:07:00 2021 +0100

    getentropy: Add missing prototype for BSD variant
    
    Warned-by: gcc

 src/getentropy_bsd.c | 2 ++
 1 file changed, 2 insertions(+)

commit 43a827031779650e63a5f787fc1959d146355153
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 27 20:26:05 2021 +0100

    nlist: Remove condition which is always true
    
    The nlist() function is limited to handle ELF binaries of the same class
    as size as the size_t of the architecture built.
    
    In addition the SIZE_T_MAX macro is BSD specific, and was falling back
    to the wrong constant on most 64-bit non-BSD systems.
    
    Warned-by: gcc

 src/nlist.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

commit 6a71b24b63ba403e6c49dbed2d31d9a73cab4890
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 27 22:52:28 2021 +0100

    build: Append __ after __attribute and __typeof keywords
    
    Be consistent with other usages in the code base.

 src/local-link.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

commit 7389fe8d243989f40900a4bbba4e493c8bd114f7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 27 06:54:49 2021 +0100

    build: Ignore backup files

 .gitignore | 1 +
 1 file changed, 1 insertion(+)

commit 2716dfd0b7d570b6a6cbba8a4a7bc9e538d0520c
Author: Victor Westerhuis <victor@westerhu.is>
Date:   Fri Nov 26 20:24:20 2021 +0100

    test: Explicitly mark symbols as used
    
    Because some of the symbols are not otherwise referenced, GCC would like
    to remove them.
    
    Closes: !14
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 test/nlist.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 54f874565716766d6453ff050d78c70ea326d89a
Author: Victor Westerhuis <victor@westerhu.is>
Date:   Fri Nov 26 20:01:18 2021 +0100

    build: Enable .init_array support when building with LTO
    
    Because these symbols are not otherwise referenced, GCC would like
    to remove them.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 configure.ac            | 2 +-
 src/setproctitle_ctor.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 428be9e0302915525513bb757e10103dbff60d4e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Oct 7 23:08:42 2021 +0200

    man: Fix .Nx macro usage
    
    Its arguments are used as version numbers, so we need continue the
    content on the next line.

 man/libbsd.7 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit c7a5d780ae58b6f7ae7d814fd5bc53cf1f58ee5f
Author: Alexander Miller <alex.miller@gmx.de>
Date:   Thu Sep 30 03:39:57 2021 +0200

    build: Allow building with -flto on gcc-10 and newer
    
    Global asm statements (like .symver directives) do not work reliably
    in gcc with link time optimization. Use the symver attribute introduced
    with gcc-10 to set symbol versions instead, if available.
    
    [guillem@hadrons.org:
     - Simplify by using __has_attribute fallback from <sys/cdefs.h>.
     - Coding style changes. ]
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-link.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

commit 1808d64b772cf03bac159210f8692125c9a84606
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Mar 1 05:14:10 2021 +0100

    test: Fix pipe_feed() to allow checking fprintf format strings
    
    Warned-by: gcc -W

 test/fgetln.c      | 8 ++++----
 test/fparseln.c    | 2 +-
 test/test-stream.c | 8 ++++++--
 test/test-stream.h | 7 ++++++-
 4 files changed, 17 insertions(+), 8 deletions(-)

commit beafad2657c7a57109c28f8bad9cb028c84c7dd5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Mar 7 00:22:59 2021 +0100

    build: Add missing proctitle unit test program

 test/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

commit 6145b561784467bc6a483f48468ba4f6a742e2fe
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 17 03:14:57 2021 +0200

    test: Do not pass NULL as the first funopen() argument
    
    Warned-by: gcc -W

 test/funopen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 731b0a773903a5e631071d6070d98563a7c3cb3e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 17 02:59:59 2021 +0200

    build: Detect sed at configure time
    
    Check whether sed is available and use the implementation matching the
    requirements via the SED variable.

 configure.ac    | 1 +
 man/Makefile.am | 2 +-
 src/Makefile.am | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

commit 50b50a4330e54b701d4a7b887deb864af26cd638
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 2 05:18:04 2021 +0100

    vis: Add prototypes for strnvis() and strnunvis() variants
    
    Warned-by: gcc

 src/unvis.c | 4 ++++
 src/vis.c   | 4 ++++
 2 files changed, 8 insertions(+)

commit 25e88f6479466f2164c5dcf4a0798002e43f342e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 2 00:48:31 2021 +0100

    test: Cast literal strings to (char *) on n_name assignment
    
    The member is declared as n_name so we cannot directly assign a literal
    string constant.
    
    Warned-by: gcc

 test/nlist.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

commit 04a8fb2469439ef3397062b4b1792d45bc95f469
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 2 00:48:02 2021 +0100

    Add missing prototypes to functions
    
    Warned-by: gcc

 src/explicit_bzero.c | 5 ++++-
 src/setproctitle.c   | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)

commit 4f68a88f5519e1bbc8b339dd48882f7f8c613edf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 19 06:55:17 2021 +0100

    build: Add compiler warnings support
    
    Detect as many warnings as possible during configure and enable them
    if the user did not supply any, so that any such problem can be spotted
    and fixed.

 .gitignore            |  1 -
 configure.ac          | 42 +++++++++++++++++++++++++++++++++++++++---
 m4/.gitignore         |  2 ++
 m4/libbsd-compiler.m4 | 24 ++++++++++++++++++++++++
 4 files changed, 65 insertions(+), 4 deletions(-)

commit 8f59221c4f0383153a7c7b499fbd1344cd9ad0f1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 19 06:51:18 2021 +0100

    nlist: Remove repeated shadowing variable declaration
    
    Warned-by: gcc

 src/nlist.c | 1 -
 1 file changed, 1 deletion(-)

commit 72a82ee262795c9162e712885381a111fcf988bc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Feb 20 22:22:54 2021 +0100

    getentropy: Fix function cast for getauxval()
    
    Warned-by: gcc

 src/getentropy_linux.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 3c305f2873580322823af53d9b9202b8ce658c32
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 19 06:49:53 2021 +0100

    test: Add proper prototypes for main() function
    
    Warned-by: gcc

 test/bzero.c     | 2 +-
 test/closefrom.c | 2 +-
 test/endian.c    | 2 +-
 test/fpurge.c    | 2 +-
 test/md5.c       | 2 +-
 test/overlay.c   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

commit 25278891d8b0c5af378ff548881cd3558426ba3d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 19 06:49:24 2021 +0100

    Mark local functions as static
    
    Warned-by: gcc

 src/closefrom.c | 2 +-
 test/funopen.c  | 8 ++++----
 test/md5.c      | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

commit e35d9141dcff06931287e392706f70c92c239e2e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Feb 11 04:41:46 2021 +0100

    Add link-time warnings to MD5 wrapper functions
    
    Let's get the word out that these functions are deprecated and should be
    switched away from.

 src/md5.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

commit 4feda8704972a1eac88b5ba9ff7add92c25245ab
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Feb 11 04:40:48 2021 +0100

    Require a semicolon for libbsd_link_warning() macro
    
    Remove the semicolon in the macro definition to force adding one on the
    call sites, to make the code look like an actual function.

 src/fgetln.c     | 2 +-
 src/fgetwln.c    | 2 +-
 src/local-link.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

commit d563a17430845d043d667892c4457a14998dd4c3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Feb 18 23:38:30 2021 +0100

    man: Call the libbsd-ctor library by its name instead of bsd-ctor

 man/libbsd.7 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 785cf9d1e97220483857dda9fe75728cd51e0d84
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Feb 18 23:38:30 2021 +0100

    man: Fix pkg-config(1) references in libbsd(7) man page

 man/libbsd.7 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

commit 15bd284b29411638b9434bf7c4c4b1feae32033a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 28 05:16:01 2021 +0100

    build: Add code coverage support in the GitLab CI

 .gitignore     |  2 ++
 .gitlab-ci.yml | 19 ++++++++++++++-----
 2 files changed, 16 insertions(+), 5 deletions(-)

commit a9fc285988c010eaf1deb682c5d6335abf87ccab
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 28 05:14:54 2021 +0100

    build: Use apt-get instead of apt in the GitLab CI
    
    The former is to be used programmatically, while the latter is intended
    for interactive use.

 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit c0d86a641269cab5bd4583afce82f171a6215aa9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 08:35:36 2021 +0100

    build: Add a Libs.private field to overlay pkg-config file
    
    We need to list all internal libraries there so that we can statically
    link.
    
    Fixes: commit 2374f409defb380d0c5c07f28b9c166ef8bdc742

 src/libbsd-overlay.pc.in | 1 +
 1 file changed, 1 insertion(+)

commit 1fb25b7dcad8f40ee8944208224ea0c625af8d82
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 06:14:25 2021 +0100

    Release libbsd 0.11.3

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 31f034e3862debda8615a449b1c11c4d6920dcc7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 05:57:37 2021 +0100

    Switch libmd wrapper to use dlsym()
    
    Switch from the previous versioned symbol implementation which required
    users to also link against the message digest provider explicitly, or
    they would fail to find the symbols, to an implementation that loads
    the symbols from the linked library providing the functions using
    dlsym(), thus preserving backwards compatibility.

 configure.ac     | 10 +++++--
 src/md5.c        | 86 ++++++++++++++++++++++++++++++++++++++------------------
 test/Makefile.am |  2 --
 3 files changed, 66 insertions(+), 32 deletions(-)

commit 2374f409defb380d0c5c07f28b9c166ef8bdc742
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 05:56:49 2021 +0100

    build: Add a Libs.private field to pkg-config file
    
    We need to list all internal libraries there so that we can statically
    link.

 src/libbsd.pc.in | 1 +
 1 file changed, 1 insertion(+)

commit a4e0db2b9773d28e2e1601f5e6dc77b7bc2df60b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 06:04:38 2021 +0100

    build: Use a single variable to track libraries to link against
    
    Using various variables means we have to keep these in sync in various
    places. Just use a single variable that we can use anywhere where this
    is needed.

 configure.ac    | 10 ++++++----
 src/Makefile.am |  4 +---
 2 files changed, 7 insertions(+), 7 deletions(-)

commit 43d34c9d3b2a24113d3901c3c7d229656cd4ce98
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 06:02:46 2021 +0100

    build: Fix message digest library checks
    
    They were not failing when not finding the SHA-2 functions and
    were hardcoding -lmd regardless of what library had been found.

 configure.ac | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

commit 1c3ff61699a6343ea4b5b6a757300581c5374d35
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 9 02:46:49 2021 +0100

    Use uintptr_t and size_t instead of __-prefixed types in <sys/cdefs.h>
    
    The __-prefixed types cannot be assumed to be defined. Use the standard
    types instead.
    
    Closes: #6

 include/bsd/sys/cdefs.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

commit edea268ce9367e33b8981a3c581c5ecb531944e7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Feb 8 03:59:56 2021 +0100

    Release libbsd 0.11.2

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit e832b7687ed42ecf0daf7c5deefa86a1445d62fd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Feb 8 03:45:06 2021 +0100

    closefrom: Use close_range() on Linux when available
    
    Closes: !11
    Based-on-patch-by: cptpcrd <cptpcrd.git@gmail.com>
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/closefrom.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

commit c4fca5bb4fcf8509cb93db6e20314f22994c093b
Author: cptpcrd <cptpcrd.git@gmail.com>
Date:   Sun Feb 7 14:22:21 2021 -0500

    closefrom: Handle lowfd < 0 properly
    
    More important if close_range() is going to be used, since casting
    negative values to 'unsigned int' might hide the errors.
    
    [guillem@hadrons.org: Minor coding style fix. ]
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/closefrom.c | 3 +++
 1 file changed, 3 insertions(+)

commit a1f79978e8c60720d1b4217d3ada638ceb6593a5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Feb 8 02:52:50 2021 +0100

    closefrom: Import some changes from sudo
    
    Take most of the changes done in sudo, but preserve the existing local
    changes and refactoring.
    
    In addition, refactor pstat implementation into closefrom_pstat(), so
    that the code is easier to read, and requires no conditional
    declarations.

 src/closefrom.c | 93 ++++++++++++++++++++++++++++++---------------------------
 1 file changed, 49 insertions(+), 44 deletions(-)

commit 467602628660326a54f7af7344d5539cf31aeea3
Author: Faidon Liambotis <paravoid@debian.org>
Date:   Sun Feb 7 20:47:00 2021 +0200

    Update <sys/queue.h> from FreeBSD
    
    This brings <sys/queue.h> to the most up-to-date version from FreeBSD,
    incorporating 18 commits from the past 5 years (2015-02-24 - 2021-01-25):
    
      $ git log --oneline 9090a24aed70..8d55837dc133 sys/sys/queue.h share/man/man3/queue.3
    
    Only minimal changes compared to the FreeBSD version have been applied
    (queue.3 -> queue.3bsd, _LIBBSD_ prefix).
    
    [guillem@hadrons.org: Remove reference to kernel mode in man page. ]
    
    Closes: !12
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 include/bsd/sys/queue.h       | 236 +++++++++++++++++++++++++++++++++++++-----
 man/LIST_CLASS_ENTRY.3bsd     |   1 +
 man/LIST_CLASS_HEAD.3bsd      |   1 +
 man/Makefile.am               |   9 ++
 man/SLIST_CLASS_ENTRY.3bsd    |   1 +
 man/SLIST_CLASS_HEAD.3bsd     |   1 +
 man/SLIST_REMOVE_PREVPTR.3bsd |   1 +
 man/STAILQ_CLASS_ENTRY.3bsd   |   1 +
 man/STAILQ_CLASS_HEAD.3bsd    |   1 +
 man/TAILQ_CLASS_ENTRY.3bsd    |   1 +
 man/TAILQ_CLASS_HEAD.3bsd     |   1 +
 man/queue.3bsd                | 153 ++++++++++++++++++++++-----
 12 files changed, 356 insertions(+), 51 deletions(-)

commit 25f9b30678b352e8275c98e118f5beacffbb94b4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 23:24:51 2021 +0100

    test: Improve code coverage for strnstr(3) unit tests

 test/strnstr.c | 4 ++++
 1 file changed, 4 insertions(+)

commit 18ebabf22306453f29ef63b1b1e7fb6c9ebb6ebf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 10:56:51 2021 +0100

    man: Update libbsd(7) man page with updates in 0.11.0

 man/libbsd.7 | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

commit 4ab11c7f4893684811077574c9a2c233bedf964f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 10:37:18 2021 +0100

    build: Install libmd-dev in the gitlab CI

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 766c883e30b5f254a3352a5fd3c0540be9416b90
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 10:35:57 2021 +0100

    build: Switch gitlab CI to use a Debian buster

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a4de4d95a66188ede6ff4dd2a9c858ab9ade0ca0
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 02:03:59 2021 +0100

    Release libbsd 0.11.1

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 233cab9d649137b14bb0caac045a75e4a7a562c4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Feb 6 23:28:42 2021 +0100

    Add support for new LIBBSD_VIS_OPENBSD selection macro
    
    This will make it possible to explicitly select the OpenBSD vis
    implementation (the current default) for code of OpenBSD origins.

 include/bsd/vis.h  | 5 ++++-
 test/vis-openbsd.c | 5 ++---
 2 files changed, 6 insertions(+), 4 deletions(-)

commit 2462cd88889a79f50017d23eaa376de67affc59c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 00:23:43 2021 +0100

    Release libbsd 0.11.0

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit d54ceb37ce9d7c04fa450a6638eaee31375bbde1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 00:09:45 2021 +0100

    Update copyright claims

 COPYING        | 2 +-
 src/funopen.c  | 2 +-
 test/fgetln.c  | 2 +-
 test/setmode.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

commit 847e682f8de452d5f0038458f06ae68ae3959b3a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 00:09:30 2021 +0100

    Use libmd hashing function implementations instead of embedding our own
    
    This splits the implementation responsibilities, and reduces embedded
    code copies, which was one of the driving points with this project to
    start with, so it's nice to give a good example.

 COPYING                  |  15 ---
 README                   |   3 +
 configure.ac             |  11 ++
 include/bsd/md5.h        |  75 ++++-------
 man/libbsd.7             |   5 +-
 src/Makefile.am          |  15 +--
 src/getentropy_aix.c     |   8 +-
 src/getentropy_hpux.c    |   8 +-
 src/getentropy_hurd.c    |  10 +-
 src/getentropy_linux.c   |  10 +-
 src/getentropy_osx.c     |   6 +-
 src/getentropy_solaris.c |   8 +-
 src/hash/.gitignore      |   1 -
 src/hash/helper.c        | 105 ----------------
 src/hash/md5.c           | 248 ------------------------------------
 src/hash/sha512.h        |  53 --------
 src/hash/sha512c.c       | 318 -----------------------------------------------
 src/libbsd.map           |   2 +
 src/md5.c                |  91 ++++++++++++++
 test/Makefile.am         |   2 +
 20 files changed, 163 insertions(+), 831 deletions(-)

commit 68f980c90d914e5fd6f7512e00dec334dbb71bed
Author: Aaron Dierking <aarond@fb.com>
Date:   Thu Jul 5 14:47:47 2018 -0700

    Provide a default progname on Windows
    
    [guillem@hadrons.org:
     - Remove .exe extension from default program name.
     - Call reallocarray() once by switching to a «do {} while» loop.
     - Minor coding style fixes. ]
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/progname.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 71 insertions(+), 1 deletion(-)

commit 37a9b56c05339301510213c41fc507ea31cc2464
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Feb 6 23:43:12 2021 +0100

    Import pwcache module from OpenBSD

 COPYING                             |   3 +
 configure.ac                        |   2 +-
 include/Makefile.am                 |   2 +
 test/overlay.c => include/bsd/grp.h |  38 ++--
 test/overlay.c => include/bsd/pwd.h |  40 ++--
 man/Makefile.am                     |   5 +
 man/gid_from_group.3bsd             |   1 +
 man/group_from_gid.3bsd             |   1 +
 man/pwcache.3bsd                    | 143 ++++++++++++
 man/uid_from_user.3bsd              |   1 +
 man/user_from_uid.3bsd              |   1 +
 src/Makefile.am                     |   1 +
 src/libbsd.map                      |   5 +
 src/pwcache.c                       | 437 ++++++++++++++++++++++++++++++++++++
 test/.gitignore                     |   1 +
 test/Makefile.am                    |   1 +
 test/overlay.c                      |   3 +
 test/{overlay.c => pwcache.c}       |  36 ++-
 18 files changed, 662 insertions(+), 59 deletions(-)

commit 45dd5229ea5f3c62877f5f66f80ab8e52d40a281
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 01:27:51 2021 +0100

    man: Remove empty line in reallocarray(3bsd)
    
    Warned-by: lintian
    Fixes: commit 01f0d1ea1e71f1018a009ebd9203dd48e6d90c45

 man/reallocarray.3bsd | 1 -
 1 file changed, 1 deletion(-)

commit 01f0d1ea1e71f1018a009ebd9203dd48e6d90c45
Author: Faidon Liambotis <paravoid@debian.org>
Date:   Thu Dec 31 12:46:03 2020 +0200

    Add recallocarray() and freezero() from OpenBSD
    
    Add recallocarray(), introduced in OpenBSD 6.1, and freezero(),
    introduced in OpenBSD 6.2. The former is imported as-is from OpenBSD,
    while the latter is the non-malloc-internal branch of the same code (and
    also the OpenSSH portable variant).
    
    Both of these originated in OpenBSD, but have also been implemented by
    IllumOS, cf. https://www.illumos.org/issues/8546
    
    Documentation for these functions is in malloc(3) upstream, the relevant
    parts of which were previously imported in reallocarray(3bsd). Update
    reallocarray(3bsd) with the changes that were introduced since, and add
    the relevant bits for recallocarray() and freezero(), plus aliases.
    
    [guillem@hadrons.org: Update copyright in COPYING. ]
    
    Closes: !10
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING                |   4 +-
 include/bsd/stdlib.h   |   2 +
 man/Makefile.am        |   2 +
 man/freezero.3bsd      |   1 +
 man/reallocarray.3bsd  | 256 ++++++++++++++++++++++++++++++++++++++++++-------
 man/recallocarray.3bsd |   1 +
 src/Makefile.am        |   2 +
 src/freezero.c         |  30 ++++++
 src/libbsd.map         |   3 +
 src/recallocarray.c    |  80 ++++++++++++++++
 10 files changed, 346 insertions(+), 35 deletions(-)

commit 9c85d828a1abdd698f8a587abe8cbbaaa80eade8
Author: Seth R Johnson <johnsonsr@ornl.gov>
Date:   Thu Nov 14 07:26:41 2019 -0500

    Fix ELF detection on Intel compilers
    
    The Intel compiler does not define __amd64__ on x86_64 platforms;
    instead, like other compilers, it defines __x86_64__ .
    
    Closes: !8
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit eac4ce0c674cf5051e3c90afda74db6718b0518d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Sep 20 03:30:20 2020 +0200

    man: Add a timespec(3bsd) alias to timeval(3bsd)
    
    Even though man-pages project now includes man pages for system data
    types, we still include these for any other system that does not have
    them, to provide a self-contained project with code and documentation.

 man/Makefile.am   | 1 +
 man/timespec.3bsd | 1 +
 2 files changed, 2 insertions(+)

commit 5ecff0c9034243d5277c5f27ff2b620770ffc72a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 16 23:41:28 2020 +0200

    man: Add missing LIBRARY section

 man/bitstring.3bsd | 4 ++++
 man/byteorder.3bsd | 4 ++++
 man/queue.3bsd     | 4 ++++
 man/tree.3bsd      | 4 ++++
 4 files changed, 16 insertions(+)

commit 8c5a83d678cc438f53023346afe64fa3e09e15cc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Sep 20 03:32:57 2020 +0200

    Fix coding style

 include/bsd/stdlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit d5b04ab19cf2273becb0b95274964c02f8b26c66
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Aug 16 22:01:42 2020 +0200

    test: Fix short lived memory leaks
    
    These are non-issues, but having a clean ASAN test suite makes it
    possible to detect actual problems in the tested code.
    
    Warned-by: gcc ASAN

 test/fgetln.c  | 13 +++++++++++--
 test/setmode.c | 20 ++++++++++++++++----
 2 files changed, 27 insertions(+), 6 deletions(-)

commit cfeafeabad1d415e55afb0bdc0c7b2244b4bac10
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Aug 16 21:58:04 2020 +0200

    funopen: Fix memory leak in funopen_close() when closefn is NULL
    
    We need to free the cookiewrap even when the closefn method is NULL.
    
    Warned-by: gcc ASAN

 src/funopen.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

commit 3d6b6ead64d0c822790fb017c1ad97676af5c3b9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 16 00:04:18 2019 +0100

    build: Detect support for --version-script in ld

 configure.ac    | 19 +++++++++++++++++++
 src/Makefile.am |  5 ++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

commit eb445425ff4559070328410574b135dcda4a96e3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Aug 12 23:52:10 2019 +0200

    Do not define SIZE_T_MAX if already defined

 src/nlist.c | 2 ++
 1 file changed, 2 insertions(+)

commit 59f6a95609203dd2f21a78afe94cf58bb89d2dad
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Aug 12 23:25:20 2019 +0200

    man: Add missing doc-operating-system-NetBSD string variable
    
    Fixes: commit 99320b9168ffb0112def1a712e8d59441d1b46d9.

 man/vis.3bsd | 1 +
 1 file changed, 1 insertion(+)

commit 3548c5f6bf10fd39336356233faedfea3f723592
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Aug 26 05:39:17 2019 +0200

    Add missing strnvisx() to the symbols script
    
    Fixes: commit 2d7de186e9cb19a756c0630ee85cb3f2d29b3484.

 src/libbsd.map | 4 ++++
 1 file changed, 4 insertions(+)

commit a11c98a6b5f57666260a5a4792404d81d59e418d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Aug 7 18:34:09 2019 +0200

    Release libbsd 0.10.0

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 5745ca03626cce0298196481dc25579063720e46
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 6 15:49:41 2019 +0200

    err: Add err(), warn(), errx() and warnx() familiy of functions
    
    Some systems such as Windows or musl-libc based ones do not have these
    BSD extensions. In addition libbsd itself is making use of the warnx()
    functions, so we better provide these interfaces in case they are
    missing.

 include/bsd/err.h | 24 ++++++++++++++++++
 src/err.c         | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libbsd.map    | 13 ++++++++++
 3 files changed, 113 insertions(+)

commit 9628798d7d02e5f93b8dea02677676449a1ccd6c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 6 15:37:43 2019 +0200

    err: Rewrite warnc() and errc() family functions to be standalone
    
    Do not depend on the system vwarn() and verr() functions to implement
    the *c() variants, as the system might actually lack any of the <err.h>
    BSD extensions.

 COPYING           |  2 +-
 include/bsd/err.h |  8 ++++----
 src/err.c         | 38 +++++++++++++++++++++++---------------
 3 files changed, 28 insertions(+), 20 deletions(-)

commit f34a5f71d92f5625875f16a883790de75dd4477d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 6 15:29:54 2019 +0200

    err: Mark error functions as non-returning with __dead2

 include/bsd/err.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit 72c68868c87c1d31bc658b43c337e8c162d16997
Author: Michael Shigorin <mike@altlinux.org>
Date:   Wed Aug 7 00:02:09 2019 +0200

    Add e2k support for nlist()
    
    This is a Russian 64-bit LE VLIW architecture named Elbrus
