English pages are provided only to compare translations to original pages,
better looking pages can be browsed
at the Linux man-pages official site.
Linux Programmer's Manual (3)
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.66 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:42:59 GMT, July 12, 2014