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 2008-06-14 "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 This function allows the introduction of new severity classes
29 which can be addressed by the
34 By default that latter function only knows how to
35 print messages for severity 0-4 (with strings (none), HALT,
36 ERROR, WARNING, INFO).
37 This call attaches the given string
43 is NULL, the severity class with the numeric value
46 It is not possible to overwrite or remove one of the default
48 The severity value must be nonnegative.
50 Upon success, the value
53 Upon error, the return value is
55 Possible errors include: out of memory, attempt to remove a
56 nonexistent or default severity class.
59 is provided in glibc since version 2.1.
61 This function is not specified in the X/Open Portability Guide
65 It is available on System V
68 New severity classes can also be added by setting the environment variable