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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| | #ifndef _FMTMSG_H
#define _FMTMSG_H
/* Major: source of problem */
#define MM_HARD 0x0001
#define MM_SOFT 0x0002
#define MM_FIRM 0x0004
/* Source subclassification: code encountering the problem */
#define MM_APPL 0x0008
#define MM_UTIL 0x0010
#define MM_OPSYS 0x0020
/* Display subclassification */
#define MM_PRINT 0x0100
#define MM_CONSOLE 0x0200
/* Can we recover? */
#define MM_RECOVER 0x0040
#define MM_NRECOV 0x0080
#define MM_NULLMC 0L
/* Severity */
#define MM_HALT 0x1
#define MM_ERROR 0x2
#define MM_WARNING 0x3
#define MM_INFO 0x4
#define MM_NOSEV 0x0
/* Return */
#define MM_OK 0x00000000
#define MM_NOTOK 0xffffffff
#define MM_NOMSG 0x00000001
#define MM_NOCON 0x00000004
#define MM_NULLLBL (char*)0
#define MM_NULLTXT (char*)0
#define MM_NULLACT (char*)0
#define MM_NULLTAG (char*)0
#define MM_NULLSEV 0
#ifdef __cplusplus
extern "C" {
#endif
int fmtmsg(long, const char *, int, const char *, const char *, const char *);
#ifdef __cplusplus
}
#endif
#endif
|