|
|
1.1 ! root 1: /* report.c -- event reporting */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/others/callback/RCS/report.c,v 7.0 89/11/23 21:58:13 mrose Rel $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/others/callback/RCS/report.c,v 7.0 89/11/23 21:58:13 mrose Rel $ ! 9: * ! 10: * ! 11: * $Log: report.c,v $ ! 12: * Revision 7.0 89/11/23 21:58:13 mrose ! 13: * Release 6.0 ! 14: * ! 15: */ ! 16: ! 17: /* ! 18: * NOTICE ! 19: * ! 20: * Acquisition, use, and distribution of this module and related ! 21: * materials are subject to the restrictions of a license agreement. ! 22: * Consult the Preface in the User's Manual for the full terms of ! 23: * this agreement. ! 24: * ! 25: */ ! 26: ! 27: ! 28: #include <stdio.h> ! 29: #include <varargs.h> ! 30: #include "general.h" ! 31: #include "manifest.h" ! 32: #include "logger.h" ! 33: ! 34: ! 35: static LLog _pgm_log = { ! 36: "callback.log", NULLCP, NULLCP, LLOG_FATAL | LLOG_EXCEPTIONS | LLOG_NOTICE, ! 37: LLOG_FATAL, -1, LLOGCLS | LLOGCRT | LLOGZER, NOTOK ! 38: }; ! 39: static LLog *pgm_log = &_pgm_log; ! 40: ! 41: /* */ ! 42: ! 43: reportailor (myname) ! 44: char *myname; ! 45: { ! 46: isodetailor (myname, 0); ! 47: ll_hdinit (pgm_log, myname); ! 48: } ! 49: ! 50: /* */ ! 51: ! 52: #ifndef lint ! 53: void adios (va_alist) ! 54: va_dcl ! 55: { ! 56: va_list ap; ! 57: ! 58: va_start (ap); ! 59: ! 60: _ll_log (pgm_log, LLOG_FATAL, ap); ! 61: ! 62: va_end (ap); ! 63: ! 64: _exit (1); ! 65: } ! 66: #else ! 67: /* VARARGS */ ! 68: ! 69: void adios (what, fmt) ! 70: char *what, ! 71: *fmt; ! 72: { ! 73: adios (what, fmt); ! 74: } ! 75: #endif ! 76: ! 77: ! 78: #ifndef lint ! 79: void advise (va_alist) ! 80: va_dcl ! 81: { ! 82: int code; ! 83: va_list ap; ! 84: ! 85: va_start (ap); ! 86: ! 87: code = va_arg (ap, int); ! 88: ! 89: _ll_log (pgm_log, code, ap); ! 90: ! 91: va_end (ap); ! 92: } ! 93: #else ! 94: /* VARARGS */ ! 95: ! 96: void advise (code, what, fmt) ! 97: char *what, ! 98: *fmt; ! 99: int code; ! 100: { ! 101: advise (code, what, fmt); ! 102: } ! 103: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.