|
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: 1953 (0x7a1) Types: TextFile Names: »psaprelease2.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/psap2/psaprelease2.c«
/* psaprelease2.c - PPM: respond to release */ #ifndef lint static char *rcsid = "$Header: /f/osi/psap2/RCS/psaprelease2.c,v 7.0 89/11/23 22:14:26 mrose Rel $"; #endif /* * $Header: /f/osi/psap2/RCS/psaprelease2.c,v 7.0 89/11/23 22:14:26 mrose Rel $ * * * $Log: psaprelease2.c,v $ * Revision 7.0 89/11/23 22:14:26 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 "ppkt.h" /* \f P-RELEASE.RESPONSE */ int PRelResponse (sd, status, data, ndata, pi) int sd; int status; PE *data; int ndata; struct PSAPindication *pi; { SBV smask; int len, result; char *base, *realbase; register struct psapblk *pb; struct SSAPindication sis; register struct SSAPabort *sa = &sis.si_abort; toomuchP (data, ndata, NPDATA, "release"); missingP (pi); smask = sigioblock (); psapFsig (pb, sd); switch (result = info2ssdu (pb, pi, data, ndata, &realbase, &base, &len, "P-RELEASE user-data", PPDU_NONE)) { case NOTOK: goto out2; case OK: default: break; case DONE: result = NOTOK; goto out1; } if ((result = SRelResponse (pb -> pb_fd, status, base, len, &sis)) == NOTOK) if (SC_FATAL (sa -> sa_reason)) { (void) ss2pslose (pb, pi, "SRelResponse", sa); goto out2; } else { (void) ss2pslose (NULLPB, pi, "SRelResponse", sa); goto out1; } if (status == SC_ACCEPT) pb -> pb_fd = NOTOK; else pb -> pb_flags &= ~PB_FINN; result = OK; out2: ; if (result == NOTOK || status == SC_ACCEPT) freepblk (pb); out1: ; if (base) free (base); (void) sigiomask (smask); return result; }