gmid/have
Omar Polo d13b044d59 address the strnvis(3) portability fiasco
strnvis originates on OpenBSD.  When NetBSD added it to their libc
they decided to swap the argument.  Without starting a holy war on
the "best" argument order, adding an implementation of a function
that's widely available and making its signature purposefully
incompatible is beyond justification.  FreeBSD (and so macos too?)
followed NetBSD in this, so we end up with *two* major and incompatible
strnvis implementations.  libbsd is in a limbo, they started with
the OpenBSD version but they'll probably switch to the NetBSD version
in the future.

That's why we can't have nice things.

Do the right thing(tm) and check for the presence of the original
strnvis(3), if not available or broken use the bundled one.
2023-08-07 15:39:57 +00:00
..
Makefile address the strnvis(3) portability fiasco 2023-08-07 15:39:57 +00:00
endian_h.c add compat for endian (now required by imsg) 2023-07-02 09:14:44 +00:00
err.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
explicit_bzero.c more OpenBSD goodies 2021-01-21 15:37:02 +00:00
freezero.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
getdtablecount.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
getdtablesize.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
getprogname.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
imsg.c tests and compat for imsg 2021-02-23 13:43:14 +01:00
libevent.c add check for libevent 2021-02-08 10:11:23 +00:00
libevent2.c improve libevent2 handling 2021-10-02 17:20:56 +00:00
libtls.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
machine_endian.c add compat for endian (now required by imsg) 2023-07-02 09:14:44 +00:00
memmem.c add memmem compat 2022-10-31 22:53:16 +00:00
noop.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
openssl.c adding openssl test 2021-01-25 15:06:59 +00:00
pr_set_name.c add compat for setproctitle 2021-02-04 13:42:35 +00:00
program_invocation_short_name.c add check for program_invocation_short_name 2021-02-11 09:12:40 +00:00
queue_h.c check if sys/queue.h provides TAILQ_FOREACH_SAFE 2021-03-31 16:52:07 +00:00
reallocarray.c add compat for reallocarray 2021-04-25 12:50:19 +00:00
recallocarray.c more OpenBSD goodies 2021-01-21 15:37:02 +00:00
setproctitle.c fix setproctitle detection on FreeBSD 2021-02-10 22:17:20 +00:00
setresgid.c add tests and compat for setresuid and setresgid 2022-12-02 11:53:35 +00:00
setresuid.c add tests and compat for setresuid and setresgid 2022-12-02 11:53:35 +00:00
strlcat.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
strlcpy.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
strtonum.c more OpenBSD goodies 2021-01-21 15:37:02 +00:00
sys_endian_h.c add compat for endian (now required by imsg) 2023-07-02 09:14:44 +00:00
tree_h.c add compat for sys/tree.h 2021-10-07 11:36:25 +00:00
vasprintf.c add a configure script and some compat 2021-01-21 11:57:46 +00:00
vis.c address the strnvis(3) portability fiasco 2023-08-07 15:39:57 +00:00
wait_any.c configure: look for WAIT_ANY 2023-06-08 19:46:06 +00:00