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 );
20 This function allows the introduction of new severity classes
21 which can be addressed by the
25 function. By default that latter function only knows how to
26 print messages for severity 0-4 (with strings (none), HALT,
27 ERROR, WARNING, INFO). This call attaches the given string
33 is NULL, the severity class with the numeric value
36 It is not possible to overwrite or remove one of the default
37 severity classes. The severity value must be nonnegative.
39 Upon success, the value
41 is returned. Upon error, the return value is
43 Possible errors include: out of memory, attempt to remove a
44 nonexistent or default severity class.
46 New severity classes can also be added by setting the environment varible
49 This function is not specified in the X/Open Portability Guide
50 although the `fmtsmg' function is. It is available on System V