home *** CD-ROM | disk | FTP | other *** search
Wrap
aaaaddddddddsssseeeevvvveeeerrrriiiittttyyyy((((3333CCCC)))) aaaaddddddddsssseeeevvvveeeerrrriiiittttyyyy((((3333CCCC)))) NNNNAAAAMMMMEEEE _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy - build a list of severity levels for an application for use with _ffff_mmmm_tttt_mmmm_ssss_gggg SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ffff_mmmm_tttt_mmmm_ssss_gggg_...._hhhh_>>>> _iiii_nnnn_tttt _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy_((((_iiii_nnnn_tttt _ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ssss_tttt_rrrr_iiii_nnnn_gggg_))))_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN The _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy function builds a list of severity levels for an application to be used with the message formatting facility, _ffff_mmmm_tttt_mmmm_ssss_gggg. _s_e_v_e_r_i_t_y is an integer value indicating the seriousness of the condition, and _s_t_r_i_n_g is a pointer to a string describing the condition (string is not limited to a specific size). If _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy is called with an integer value that has not been previously defined, the function adds that new severity value and print string to the existing set of standard severity levels. If _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy is called with an integer value that has been previously defined, the function redefines that value with the new print string. Previously defined severity levels may be removed by supplying the _NNNN_UUUU_LLLL_LLLL string. If _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy is called with a negative number or an integer value of 0, 1, 2, 3, or 4, the function fails and returns -1. The values 0-4 are reserved for the standard severity levels and cannot be modified. Identifiers for the standard levels of severity are: _MMMM_MMMM______HHHH_AAAA_LLLL_TTTT indicates that the application has encountered a severe fault and is halting. Produces the print string HALT. _MMMM_MMMM______EEEE_RRRR_RRRR_OOOO_RRRR indicates that the application has detected a fault. Produces the print string ERROR. _MMMM_MMMM______WWWW_AAAA_RRRR_NNNN_IIII_NNNN_GGGG indicates a condition that is out of the ordinary, that might be a problem, and should be watched. Produces the print string WARNING. _MMMM_MMMM______IIII_NNNN_FFFF_OOOO provides information about a condition that is not in error. Produces the print string INFO. _MMMM_MMMM______NNNN_OOOO_SSSS_EEEE_VVVV indicates that no severity level is supplied for the message. Severity levels may also be defined at run time using the _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL environment variable [see _ffff_mmmm_tttt_mmmm_ssss_gggg(3C)]. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS When the function _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy is used as follows: _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy_((((_7777_,,,,_""""_AAAA_LLLL_EEEE_RRRR_TTTT_""""_)))) the following call to _ffff_mmmm_tttt_mmmm_ssss_gggg: PPPPaaaaggggeeee 1111 aaaaddddddddsssseeeevvvveeeerrrriiiittttyyyy((((3333CCCC)))) aaaaddddddddsssseeeevvvveeeerrrriiiittttyyyy((((3333CCCC)))) _ffff_mmmm_tttt_mmmm_ssss_gggg_((((_MMMM_MMMM______PPPP_RRRR_IIII_NNNN_TTTT_,,,, _""""_UUUU_XXXX_::::_cccc_aaaa_tttt_""""_,,,, _7777_,,,, _""""_iiii_nnnn_vvvv_aaaa_llll_iiii_dddd _ssss_yyyy_nnnn_tttt_aaaa_xxxx_""""_,,,, _""""_rrrr_eeee_ffff_eeee_rrrr _tttt_oooo _mmmm_aaaa_nnnn_uuuu_aaaa_llll_""""_,,,, _""""_UUUU_XXXX_::::_cccc_aaaa_tttt_::::_0000_0000_1111_""""_)))) produces: UX:cat: ALERT: invalid syntax TO FIX: refer to manual UX:cat:001 NNNNOOOOTTTTEEEESSSS A slightly different standard error message format and new developer interfaces, pfmt, _llll_ffff_mmmm_tttt, and _aaaa_dddd_dddd_ssss_eeee_vvvv, are being introduced as the replacements for fmtmsg _aaaa_nnnn_dddd _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy_.... _ffff_mmmm_tttt_mmmm_ssss_gggg _aaaa_nnnn_dddd _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy _wwww_iiii_llll_llll _bbbb_eeee _rrrr_eeee_mmmm_oooo_vvvv_eeee_dddd _aaaa_tttt _aaaa _ffff_uuuu_tttt_uuuu_rrrr_eeee _tttt_iiii_mmmm_eeee_.... SSSSEEEEEEEE AAAALLLLSSSSOOOO _ffff_mmmm_tttt_mmmm_ssss_gggg(1M), _ffff_mmmm_tttt_mmmm_ssss_gggg(3C), _gggg_eeee_tttt_tttt_xxxx_tttt(3C), _pppp_rrrr_iiii_nnnn_tttt_ffff(3S). DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy returns _MMMM_MMMM______OOOO_KKKK on success or _MMMM_MMMM______NNNN_OOOO_TTTT_OOOO_KKKK on failure. PPPPaaaaggggeeee 2222