|
|
Initial revision
/* rt2psreleas2.c - RTPM: respond to release */
#ifndef lint
static char *rcsid = "$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/rtsap/rt2psreleas2.c,v 1.1 2018/04/24 16:12:56 root Exp $";
#endif
/*
* $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/rtsap/rt2psreleas2.c,v 1.1 2018/04/24 16:12:56 root Exp $
*
*
* $Log: rt2psreleas2.c,v $
* Revision 1.1 2018/04/24 16:12:56 root
* Initial revision
*
* Revision 6.0 89/03/18 23:43:12 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 "rtpkt.h"
/* RT-CLOSE.RESPONSE */
int RtCloseResponse (sd, reason, data, rti)
int sd,
reason;
PE data;
struct RtSAPindication *rti;
{
SBV smask;
int result;
register struct assocblk *acb;
missingP (rti);
smask = sigioblock ();
rtsapFsig (acb, sd);
result = RtCloseResponseAux (acb, reason, data, rti);
(void) sigiomask (smask);
return result;
}
/* */
static int RtCloseResponseAux (acb, reason, data, rti)
register struct assocblk *acb;
int reason;
PE data;
register struct RtSAPindication *rti;
{
int result;
struct AcSAPindication acis;
register struct AcSAPindication *aci = &acis;
register struct AcSAPabort *aca = &aci -> aci_abort;
if (!(acb -> acb_flags & ACB_ACS))
return rtsaplose (rti, RTS_OPERATION, NULLCP,
"not an association descriptor for RTS");
if (data)
data -> pe_context = acb -> acb_rtsid;
acb -> acb_flags &= ~ACB_STICKY;
if (AcRelResponse (acb -> acb_fd, ACS_ACCEPT, reason, &data, data ? 1 : 0,
aci) == NOTOK)
result = acs2rtslose (acb, rti, "AcRelResponse", aca);
else
result = OK;
return result;
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.