xref: /third_party/musl/include/fmtmsg.h (revision 570af302)
1#ifndef _FMTMSG_H
2#define _FMTMSG_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define MM_HARD		1
9#define MM_SOFT		2
10#define MM_FIRM		4
11
12#define MM_APPL		8
13#define MM_UTIL		16
14#define MM_OPSYS	32
15
16#define MM_RECOVER	64
17#define MM_NRECOV	128
18
19#define MM_PRINT	256
20#define MM_CONSOLE	512
21
22#define MM_NULLMC	0L
23
24#define MM_HALT		1
25#define MM_ERROR	2
26#define MM_WARNING	3
27#define MM_INFO		4
28#define MM_NOSEV	0
29
30#define MM_OK		0
31#define MM_NOTOK	(-1)
32#define MM_NOMSG	1
33#define MM_NOCON	4
34
35#define MM_NULLLBL	((char*)0)
36#define MM_NULLTXT	((char*)0)
37#define MM_NULLACT	((char*)0)
38#define MM_NULLTAG	((char*)0)
39#define MM_NULLSEV	0
40
41int fmtmsg(long, const char *, int, const char *, const char *, const char *);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif
48