define additional severities
int addsev(int int_val, const char *string);
defines additional severities for use in subsequent calls to
Those add-on severities are effective
only within the applications defining them.
associates an integer value int_val
in the range 5 to 255 inclusive
with a character string, string.
It overwrites any previous association between
int_val and string.
If int_val is ORed with the flags passed to subsequent calls to
string is used as the severity.
Passing a null string removes the severity.
Only the standard severities are automatically displayed
for the locale in effect at run time.
An application must provide the means for displaying locale-specific
versions of add-on severities.
returns 0 in case of success, otherwise -1.
This function does not set errno.
The example below displays the message to
stderr and forwards it to the logging service:
#define Panic 5
addsev(Panic, gettxt(":26", "PANIC"));
/* ... */
is not part of any currently supported standard;
it was developed by UNIX System Laboratories, Inc.
and is maintained by The SCO Group.
© 2003 System Services (S)
SCO OpenServer Release 5.0.7 -- 11 February 2003