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 2021-03-22 "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)):
29 Glibc 2.19 and earlier:
33 This function allows the introduction of new severity classes
34 which can be addressed by the
39 By default, that function knows only how to
40 print messages for severity 0-4 (with strings (none), HALT,
41 ERROR, WARNING, INFO).
42 This call attaches the given string
48 is NULL, the severity class with the numeric value
51 It is not possible to overwrite or remove one of the default
53 The severity value must be nonnegative.
55 Upon success, the value
58 Upon error, the return value is
60 Possible errors include: out of memory, attempt to remove a
61 nonexistent or default severity class.
64 is provided in glibc since version 2.1.
66 For an explanation of the terms used in this section, see
74 Interface Attribute Value
77 T} Thread safety MT-Safe
83 This function is not specified in the X/Open Portability Guide
87 It is available on System V
90 New severity classes can also be added by setting the environment variable