1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" adapted glibc info page
5 .\" polished a little, aeb
6 .TH ADDSEVERITY 3 2002-08-07 "gnu" "Linux Programmer's Manual"
8 addseverity \- introduce new severity classes
12 .B #define _SVID_SOURCE
14 .B #include <fmtmsg.h>
16 .BI "int addseverity(int " severity ", const char *" s );
19 This function allows the introduction of new severity classes
20 which can be addressed by the
25 By default that latter function only knows how to
26 print messages for severity 0-4 (with strings (none), HALT,
27 ERROR, WARNING, INFO).
28 This call attaches the given string
34 is NULL, the severity class with the numeric value
37 It is not possible to overwrite or remove one of the default
39 The severity value must be nonnegative.
41 Upon success, the value
44 Upon error, the return value is
46 Possible errors include: out of memory, attempt to remove a
47 nonexistent or default severity class.
49 New severity classes can also be added by setting the environment variable
52 This function is not specified in the X/Open Portability Guide
56 It is available on System V
60 .BR feature_test_macros (7)