|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T p
Length: 1971 (0x7b3) Types: TextFile Names: »plog.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/dsap/net/plog.c«
/* plog.c - address logging routines */ #ifndef lint static char *rcsid = "$Header: /f/osi/dsap/net/RCS/plog.c,v 6.0 89/03/18 23:28:59 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/net/RCS/plog.c,v 6.0 89/03/18 23:28:59 mrose Rel $ * * * $Log: plog.c,v $ * Revision 6.0 89/03/18 23:28:59 mrose * Release 5.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. * */ /* LINTLIBRARY */ #include "rosap.h" #include "tsap.h" #include "quipu/util.h" extern LLog * log_dsap; void ros_log(rop, event) register struct RoSAPpreject *rop; char *event; { if(rop->rop_cc > 0) LLOG(log_dsap, LLOG_NOTICE, ("%s: [%s] %*.*s", event, RoErrString(rop->rop_reason), rop->rop_cc, rop->rop_cc, rop->rop_data)); else LLOG(log_dsap, LLOG_NOTICE, ("%s: [%s]", event, RoErrString(rop->rop_reason))); } void acs_log(aca, event) register struct AcSAPabort *aca; char *event; { if(aca->aca_cc > 0) LLOG(log_dsap, LLOG_NOTICE, ("%s: [%s] %*.*s", event, AcErrString(aca->aca_reason), aca->aca_cc, aca->aca_cc, aca->aca_data)); else LLOG(log_dsap, LLOG_NOTICE, ("%s: [%s]", event, AcErrString(aca->aca_reason))); } td_log(td) struct TSAPdisconnect *td; { if(td->td_cc > 0) { LLOG(log_dsap, LLOG_NOTICE, ("TNetAccept: [%s] %*.*s", TErrString(td->td_reason), td->td_cc, td->td_cc, td->td_data)); } else { LLOG(log_dsap, LLOG_NOTICE, ("TNetAccept: [%s]", TErrString(td->td_reason))); } } int SetROPS(ad) int ad; { struct RoSAPindication roi_s; struct RoSAPindication *roi = &(roi_s); struct RoSAPpreject *rop = &(roi->roi_preject); if(RoSetService(ad, RoPService, roi) != OK) { (void) ros_log(rop, "RoSetService"); return NOTOK; } return(OK); }