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 r

⟦c23767086⟧ TextFile

    Length: 1832 (0x728)
    Types: TextFile
    Names: »rt2psreleas2.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/rtsap/rt2psreleas2.c« 

TextFile

/* rt2psreleas2.c - RTPM: respond to release */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/rtsap/RCS/rt2psreleas2.c,v 6.0 89/03/18 23:43:12 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/rtsap/RCS/rt2psreleas2.c,v 6.0 89/03/18 23:43:12 mrose Rel $
 *
 *
 * $Log:	rt2psreleas2.c,v $
 * 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"

/* \f

   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;
}

/* \f

 */

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;
}