aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/glibc/include/err.h
blob: c3757ab0e9bcc3a190e75c1c374d355fd2e80fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef  _ERR_H
#define  _ERR_H

#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __MLIBC_ABI_ONLY

void warn(const char *, ...);
void vwarn(const char *, va_list);
void warnx(const char *, ...);
void vwarnx(const char *, va_list);

__attribute__((__noreturn__)) void err(int, const char *, ...);
__attribute__((__noreturn__)) void verr(int, const char *, va_list);
__attribute__((__noreturn__)) void errx(int, const char *, ...);
__attribute__((__noreturn__)) void verrx(int, const char *, va_list);

#endif /* !__MLIBC_ABI_ONLY */

#ifdef __cplusplus
}
#endif

#endif // _ERR_H