report.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 104 行
C
104 行
/* report.c -- event reporting */#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/others/callback/RCS/report.c,v 9.0 1992/06/16 12:41:50 isode Rel $";#endif/* * $Header: /xtel/isode/isode/others/callback/RCS/report.c,v 9.0 1992/06/16 12:41:50 isode Rel $ * * * $Log: report.c,v $ * Revision 9.0 1992/06/16 12:41:50 isode * Release 8.0 * *//* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */#include <stdio.h>#include <varargs.h>#include "general.h"#include "manifest.h"#include "logger.h"static LLog _pgm_log = { "callback.log", NULLCP, NULLCP, LLOG_FATAL | LLOG_EXCEPTIONS | LLOG_NOTICE, LLOG_FATAL, -1, LLOGCLS | LLOGCRT | LLOGZER, NOTOK};static LLog *pgm_log = &_pgm_log;/* */reportailor (myname)char *myname;{ isodetailor (myname, 0); ll_hdinit (pgm_log, myname);}/* */#ifndef lintvoid adios (va_alist)va_dcl{ va_list ap; va_start (ap); _ll_log (pgm_log, LLOG_FATAL, ap); va_end (ap); _exit (1);}#else/* VARARGS */void adios (what, fmt)char *what, *fmt;{ adios (what, fmt);}#endif#ifndef lintvoid advise (va_alist)va_dcl{ int code; va_list ap; va_start (ap); code = va_arg (ap, int); _ll_log (pgm_log, code, ap); va_end (ap);}#else/* VARARGS */void advise (code, what, fmt)char *what, *fmt;int code;{ advise (code, what, fmt);}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?