mirror of git://git.musl-libc.org/musl
32 lines
586 B
C
32 lines
586 B
C
#ifndef _ERR_H
|
|
#define _ERR_H
|
|
|
|
#if __STDC_VERSION__ >= 201112L
|
|
#elif defined(__GNUC__)
|
|
#define _Noreturn __attribute__((__noreturn__))
|
|
#else
|
|
#define _Noreturn
|
|
#endif
|
|
|
|
#include <stdarg.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void warn(const char *, ...);
|
|
void vwarn(const char *, va_list);
|
|
void warnx(const char *, ...);
|
|
void vwarnx(const char *, va_list);
|
|
|
|
_Noreturn void err(int, const char *, ...);
|
|
_Noreturn void verr(int, const char *, va_list);
|
|
_Noreturn void errx(int, const char *, ...);
|
|
_Noreturn void verrx(int, const char *, va_list);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|