|
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 f
Length: 2244 (0x8c4) Types: TextFile Names: »ftamtrace.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/ftam/ftamtrace.c«
/* ftamtrace.c - FPM: tracing */ #ifndef lint static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamtrace.c,v 6.0 89/03/18 23:31:00 mrose Rel $"; #endif /* * $Header: /f/osi/ftam/RCS/ftamtrace.c,v 6.0 89/03/18 23:31:00 mrose Rel $ * * * $Log: ftamtrace.c,v $ * Revision 6.0 89/03/18 23:31:00 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 <stdio.h> #include <signal.h> #include "fpkt.h" /* \f DATA */ LLog _ftam_log = { "ftam.log", NULLCP, NULLCP, LLOG_FATAL | LLOG_EXCEPTIONS | LLOG_NOTICE, LLOG_NONE, -1, LLOGCLS | LLOGCRT | LLOGZER, NOTOK }; LLog *ftam_log = &_ftam_log; static char *ftam_appls[] = { "Abstract-Syntax-Name", "Access-Context", "Access-Passwords", "Access-Request", "Account", "Action-Result", "Activity-Identifier", "Application-Entity-Title", "Change-Attributes", "Charging", "Concurrency-Control", "Constraint-Set-Name", "Create-Attributes", "Diagnostic", "Document-Type-Name", "FADU-Identity", "FADU-Lock", "Password", "Read-Attributes", "Select-Attributes", "Shared-ASE-Information", "State-Result", "User-Identity" }; static int ftam_nappl = sizeof ftam_appls / sizeof ftam_appls[0]; /* \f set tracing */ int FHookRequest (sd, tracing, fti) int sd; IFP tracing; struct FTAMindication *fti; { SBV smask; register struct ftamblk *fsb; missingP (fti); smask = sigioblock (); ftamPsig (fsb, sd); if (fsb -> fsb_trace = tracing) pe_applist = ftam_appls, pe_maxappl = ftam_nappl; (void) sigiomask (smask); return OK; } /* \f user-defined tracing */ /* ARGSUSED */ int FTraceHook (sd, event, fpdu, pe, rw) int sd; char *event, *fpdu; PE pe; int rw; { if (event) LLOG (ftam_log, LLOG_ALL, ("%s %s", rw > 0 ? "event" : rw == 0 ? "action" : "exception", event)); if (pe) vpdu (ftam_log, print_FTAM_PDU, pe, fpdu ? fpdu : "FPDU", rw) (void) ll_sync (ftam_log); }