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.
This commit is contained in:
Guillem Jover
2019-08-06 15:49:41 +02:00
parent 9628798d7d
commit 5745ca0362
3 changed files with 113 additions and 0 deletions

View File

@@ -168,3 +168,16 @@ LIBBSD_0.9.1 {
strnvis_netbsd;
strnunvis_netbsd;
} LIBBSD_0.9;
LIBBSD_0.10.0 {
/* These BSD extensions are available on GNU systems, but not on other
* systems such as Windows or musl libc based ones. */
vwarn;
vwarnx;
warn;
warnx;
verr;
verrx;
err;
errx;
} LIBBSD_0.9.1;