2 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\" adapted glibc info page
7 .\" polished a little, aeb
8 .TH addseverity 3 (date) "Linux man-pages (unreleased)"
10 addseverity \- introduce new severity classes
13 .RI ( libc ", " \-lc )
17 .B #include <fmtmsg.h>
19 .BI "int addseverity(int " severity ", const char *" s );
23 Feature Test Macro Requirements for glibc (see
24 .BR feature_test_macros (7)):
31 glibc 2.19 and earlier:
35 This function allows the introduction of new severity classes
36 which can be addressed by the
41 By default, that function knows only how to
42 print messages for severity 0-4 (with strings (none), HALT,
43 ERROR, WARNING, INFO).
44 This call attaches the given string
50 is NULL, the severity class with the numeric value
53 It is not possible to overwrite or remove one of the default
55 The severity value must be nonnegative.
57 Upon success, the value
60 Upon error, the return value is
62 Possible errors include: out of memory, attempt to remove a
63 nonexistent or default severity class.
66 is provided since glibc 2.1.
68 For an explanation of the terms used in this section, see
76 Interface Attribute Value
79 T} Thread safety MT-Safe
85 This function is not specified in the X/Open Portability Guide
89 It is available on System V
92 New severity classes can also be added by setting the environment variable