X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/70ad1dc8a19d6edd9b97aa81f32cfd65758ae97d..refs/heads/master:/libdarwin/h/err.h diff --git a/libdarwin/h/err.h b/libdarwin/h/err.h index f33730a..c912c53 100644 --- a/libdarwin/h/err.h +++ b/libdarwin/h/err.h @@ -55,6 +55,10 @@ #include #include +#if DARWIN_TAPI +#include "tapi.h" +#endif + __BEGIN_DECLS; /*! @@ -75,7 +79,7 @@ __BEGIN_DECLS; * error code using {@link darwin_sysexit} and pass it to exit(3). */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NORETURN OS_NONNULL2 OS_FORMAT_PRINTF(2, 3) +OS_EXPORT OS_NORETURN OS_COLD OS_NONNULL2 OS_FORMAT_PRINTF(2, 3) void err_np(errno_t code, const char *fmt, ...); @@ -96,7 +100,7 @@ err_np(errno_t code, const char *fmt, ...); * The arguments corresponding to the format string. */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NORETURN OS_NONNULL3 OS_FORMAT_PRINTF(3, 4) +OS_EXPORT OS_NORETURN OS_COLD OS_NONNULL3 OS_FORMAT_PRINTF(3, 4) void errc_np(int eval, errno_t code, const char *fmt, ...); @@ -114,7 +118,7 @@ errc_np(int eval, errno_t code, const char *fmt, ...); * The arguments corresponding to the format string. */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NONNULL2 OS_FORMAT_PRINTF(2, 3) +OS_EXPORT OS_COLD OS_NONNULL2 OS_FORMAT_PRINTF(2, 3) void warn_np(errno_t code, const char *fmt, ...); @@ -136,7 +140,7 @@ warn_np(errno_t code, const char *fmt, ...); * error code using {@link darwin_sysexit} and pass it to exit(3). */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NORETURN OS_NONNULL2 OS_NONNULL3 +OS_EXPORT OS_NORETURN OS_COLD OS_NONNULL2 OS_NONNULL3 void verr_np(errno_t code, const char *fmt, va_list ap); @@ -157,7 +161,7 @@ verr_np(errno_t code, const char *fmt, va_list ap); * The argument pointer corresponding to the format string. */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NORETURN OS_NONNULL3 OS_NONNULL4 +OS_EXPORT OS_NORETURN OS_COLD OS_NONNULL3 OS_NONNULL4 void verrc_np(int eval, errno_t code, const char *fmt, va_list ap); @@ -175,7 +179,7 @@ verrc_np(int eval, errno_t code, const char *fmt, va_list ap); * The arguments corresponding to the format string. */ DARWIN_API_AVAILABLE_20170407 -OS_EXPORT OS_NONNULL2 OS_NONNULL3 +OS_EXPORT OS_COLD OS_NONNULL2 OS_NONNULL3 void vwarn_np(errno_t code, const char *fmt, va_list ap);