include/bsd/err.h


Log

Author Commit Date CI Message
Guillem Jover 5745ca03 2019-08-06T15:49:41 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.
Guillem Jover 9628798d 2019-08-06T15:37:43 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.
Guillem Jover f34a5f71 2019-08-06T15:29:54 err: Mark error functions as non-returning with __dead2
Aaron Dierking c2d9d840 2018-06-14T11:38:32 Guard non-portable forwarded includes These headers are not available on Windows. <bsd/sys/cdefs.h> ensures that __has_include() and __has_include_next() are defined. Signed-off-by: Guillem Jover <guillem@hadrons.org>
Guillem Jover 48ac79b1 2015-12-12T14:27:12 Use the non-overlayed libbsd headers when we need our own definitions
Guillem Jover ee26e59e 2015-09-23T05:50:52 Mark functions handling format strings with __printflike
Guillem Jover e7f39760 2012-03-23T10:31:42 Add email address to my name
Guillem Jover 866f73af 2012-01-03T05:39:22 Move overlay inclusions outside of header protection Glibc tends to include standard headers with special definitions that make few declarations or macros visible, this stomps over the overlay #include_next <> logic. Based-on-patch-by: Robert Millan <rmh@debian.org>
Guillem Jover 17a9a847 2011-05-25T07:36:19 Rename transparent support to overlay This affects the pkg-config file now named libbsd-overlay.pc, and the macro to use the overlay LIBBSD_OVERLAY.
Guillem Jover 520682e5 2011-02-23T14:04:57 Add support for transparent compilation This means that software being ported should not need to be modified in the usual case, as the libbsd headers will take over the standard namespace and fill the missing gaps, and include the system headers. To use this the new libbsd-transparent.pc file can be used through pkg-config, which should end up doing the right thing.
Guillem Jover cb1346e5 2009-05-25T09:25:13 Export public functions as extern C
Guillem Jover 61fa98ea 2009-05-25T09:12:45 Add missing <stdarg.h> include in <bsd/err.h>
Guillem Jover 1f0b016e 2009-05-20T04:20:21 Use UTF-8 copyright symbols for non-imported files
Guillem Jover b0f64624 2008-07-09T07:16:20 Add missing license headers With permission from Robert Millan and Aurelien Jarno.
Robert Millan 33eb3ecc 2006-02-10T14:59:03 Add errc, warnc, verrc and vwarnc