Section: Linux Programmer's Manual (3)
Return to Main Contents
addseverity - introduce new severity classes
int addseverity(int severity, const char *s);
Feature Test Macro Requirements for glibc (see
This function allows the introduction of new severity classes
which can be addressed by the
argument of the
By default that latter function only knows how to
print messages for severity 0-4 (with strings (none), HALT,
ERROR, WARNING, INFO).
This call attaches the given string
to the given value
is NULL, the severity class with the numeric value
It is not possible to overwrite or remove one of the default
The severity value must be nonnegative.
Upon success, the value
Upon error, the return value is
Possible errors include: out of memory, attempt to remove a
nonexistent or default severity class.
is provided in glibc since version 2.1.
This function is not specified in the X/Open Portability Guide
It is available on System V
New severity classes can also be added by setting the environment variable
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 14:54:26 GMT, January 17, 2018