DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T f

⟦5c814a581⟧ TextFile

    Length: 2244 (0x8c4)
    Types: TextFile
    Names: »ftamtrace.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/ftam/ftamtrace.c« 

TextFile

/* ftamtrace.c - FPM: tracing */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamtrace.c,v 7.0 89/11/23 21:53:54 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/ftam/RCS/ftamtrace.c,v 7.0 89/11/23 21:53:54 mrose Rel $
 *
 *
 * $Log:	ftamtrace.c,v $
 * Revision 7.0  89/11/23  21:53:54  mrose
 * Release 6.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);
}