1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
6 .\" adapted glibc info page
8 .\" polished a little, aeb
9 .TH ADDSEVERITY 3 2016-03-15 "GNU" "Linux Programmer's Manual"
11 addseverity \- introduce new severity classes
15 .B #include <fmtmsg.h>
17 .BI "int addseverity(int " severity ", const char *" s );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
28 Glibc 2.19 and earlier:
31 This function allows the introduction of new severity classes
32 which can be addressed by the
37 By default, that function knows only how to
38 print messages for severity 0-4 (with strings (none), HALT,
39 ERROR, WARNING, INFO).
40 This call attaches the given string
46 is NULL, the severity class with the numeric value
49 It is not possible to overwrite or remove one of the default
51 The severity value must be nonnegative.
53 Upon success, the value
56 Upon error, the return value is
58 Possible errors include: out of memory, attempt to remove a
59 nonexistent or default severity class.
62 is provided in glibc since version 2.1.
64 For an explanation of the terms used in this section, see
70 Interface Attribute Value
73 T} Thread safety MT-Safe
76 This function is not specified in the X/Open Portability Guide
80 It is available on System V
83 New severity classes can also be added by setting the environment variable