gmid/compat
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
..
vis address the strnvis(3) portability fiasco 2023-08-07 15:39:57 +00:00
Makefile address the strnvis(3) portability fiasco 2023-08-07 15:39:57 +00:00
err.c fix various error in compat/err.c 2021-02-23 13:43:53 +01:00
explicit_bzero.c include config.h first 2021-02-12 12:49:36 +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 add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
getprogname.c fix getprogname shim 2022-07-04 13:43:27 +00:00
imsg-buffer.c update imsg 2023-07-02 08:55:38 +00:00
imsg.c update imsg 2023-07-02 08:55:38 +00:00
imsg.h update imsg 2023-07-02 08:55:38 +00:00
memmem.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
queue.h tests and compat for imsg 2021-02-23 13:43:14 +01:00
reallocarray.c add compat for reallocarray 2021-04-25 12:50:19 +00:00
recallocarray.c sync recallocarary.c 2022-03-19 14:52:11 +00:00
setproctitle.c include config.h first 2021-02-12 12:49:36 +00:00
setresgid.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
setresuid.c add missing include of ../config.h in regress/*.c 2023-06-23 22:40:09 +00:00
strlcat.c include config.h first 2021-02-12 12:49:36 +00:00
strlcpy.c include config.h first 2021-02-12 12:49:36 +00:00
strtonum.c include config.h first 2021-02-12 12:49:36 +00:00
tree.h add compat for sys/tree.h 2021-10-07 11:36:25 +00:00
vasprintf.c include config.h first 2021-02-12 12:49:36 +00:00
vis.c address the strnvis(3) portability fiasco 2023-08-07 15:39:57 +00:00