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

⟦1bdf6b8f1⟧ TextFile

    Length: 1564 (0x61c)
    Types: TextFile
    Names: »rtsapwait.c«

Derivation

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

TextFile

/* rtsapwait.c - RTPM: wait for an indication */

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

/* 
 * $Header: /f/osi/rtsap/RCS/rtsapwait.c,v 6.0 89/03/18 23:43:34 mrose Rel $
 *
 *
 * $Log:	rtsapwait.c,v $
 * Revision 6.0  89/03/18  23:43:34  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-WAIT.REQUEST (pseudo) */

int	RtWaitRequest (sd, secs, rti)
int	sd;
int	secs;
struct RtSAPindication *rti;
{
    SBV	    smask;
    int     result;
    register struct assocblk   *acb;

    missingP (rti);

    smask = sigioblock ();

    rtsapPsig (acb, sd);

    result = RtWaitRequestAux (acb, secs, 0, rti);

    (void) sigiomask (smask);

    return result;
}

/* \f

 */

int	RtWaitRequestAux (acb, secs, trans, rti)
register struct assocblk   *acb;
int     secs,
        trans;
register struct RtSAPindication *rti;
{
    if (!trans && (acb -> acb_flags & ACB_PLEASE)) {
	acb -> acb_flags &= ~ACB_PLEASE;

	rti -> rti_type = RTI_TURN;
	{
	    register struct RtSAPturn  *rtu = &rti -> rti_turn;

	    rtu -> rtu_please = 1;
	    rtu -> rtu_priority = acb -> acb_priority;
	}

	return DONE;
    }

    return (*acb -> acb_rtwaitrequest) (acb, secs, trans, rti);
}