1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
4 .\" adapted glibc info page
6 .\" polished a little, aeb
7 .TH ADDSEVERITY 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
9 addseverity \- introduce new severity classes
12 .RI ( libc ", " \-lc )
16 .B #include <fmtmsg.h>
18 .BI "int addseverity(int " severity ", const char *" s );
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
30 Glibc 2.19 and earlier:
34 This function allows the introduction of new severity classes
35 which can be addressed by the
40 By default, that function knows only how to
41 print messages for severity 0-4 (with strings (none), HALT,
42 ERROR, WARNING, INFO).
43 This call attaches the given string
49 is NULL, the severity class with the numeric value
52 It is not possible to overwrite or remove one of the default
54 The severity value must be nonnegative.
56 Upon success, the value
59 Upon error, the return value is
61 Possible errors include: out of memory, attempt to remove a
62 nonexistent or default severity class.
65 is provided in glibc since version 2.1.
67 For an explanation of the terms used in this section, see
75 Interface Attribute Value
78 T} Thread safety MT-Safe
84 This function is not specified in the X/Open Portability Guide
88 It is available on System V
91 New severity classes can also be added by setting the environment variable