Debian Codegraph @

share/libc/fmtmsg.h

raw
1 /**************************************************************************/
2 /* */
3 /* This file is part of Frama-C. */
4 /* */
5 /* Copyright (C) 2007-2022 */
6 /* CEA (Commissariat à l'énergie atomique et aux énergies */
7 /* alternatives) */
8 /* */
9 /* you can redistribute it and/or modify it under the terms of the GNU */
10 /* Lesser General Public License as published by the Free Software */
11 /* Foundation, version 2.1. */
12 /* */
13 /* It is distributed in the hope that it will be useful, */
14 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
15 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
16 /* GNU Lesser General Public License for more details. */
17 /* */
18 /* See the GNU Lesser General Public License version 2.1 */
19 /* for more details (enclosed in the file licenses/LGPLv2.1). */
20 /* */
21 /**************************************************************************/
22
23 #ifndef __FC_FMTMSG
24 #define __FC_FMTMSG
25 #include "features.h"
26 __PUSH_FC_STDLIB
27
28 __BEGIN_DECLS
29
30 #define MM_HARD 0x001
31 #define MM_SOFT 0x002
32 #define MM_FIRM 0x004
33 #define MM_APPL MM_APPL
34 #define MM_UTIL 0x010
35 #define MM_OPSYS 0x020
36 #define MM_RECOVER 0x040
37 #define MM_NRECOV 0x080
38 #define MM_HALT 1
39 #define MM_ERROR 2
40 #define MM_WARNING 3
41 #define MM_INFO 4
42 #define MM_NOSEV 0
43 #define MM_PRINT 0x100
44 #define MM_CONSOLE 0x200
45
46 #define MM_NULLLBL ((char*)0)
47 #define MM_NULLSEV 0
48 #define MM_NULLMC 0L
49 #define MM_NULLTXT ((char*)0)
50 #define MM_NULLACT ((char*)0)
51 #define MM_NULLTAG ((char*)0)
52
53 #define MM_OK 0
54 #define MM_NOTOK (-1)
55 #define MM_NOMSG 1
56 #define MM_NOCON 4
57
58 extern int fmtmsg(long classification, const char *label, int severity,
59 const char *text, const char *action, const char *tag);
60
61 __END_DECLS
62
63 __POP_FC_STDLIB
64 #endif