|
|
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 r
Length: 1564 (0x61c)
Types: TextFile
Names: »rtsapwait.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/rtsap/rtsapwait.c«
/* rtsapwait.c - RTPM: wait for an indication */
#ifndef lint
static char *rcsid = "$Header: /f/osi/rtsap/RCS/rtsapwait.c,v 7.0 89/11/23 22:22:43 mrose Rel $";
#endif
/*
* $Header: /f/osi/rtsap/RCS/rtsapwait.c,v 7.0 89/11/23 22:22:43 mrose Rel $
*
*
* $Log: rtsapwait.c,v $
* Revision 7.0 89/11/23 22:22:43 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 "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);
}