/* rosapwait.c - ROPM: wait for an indication */

#ifndef	lint
static char *rcsid = "$Header: /a/vulcan/xtel/isode/isode-master/rosap/RCS/rosapwait.c,v 8.0 91/07/17 12:55:34 isode Rel $";
#endif

/* 
 * $Header: /a/vulcan/xtel/isode/isode-master/rosap/RCS/rosapwait.c,v 8.0 91/07/17 12:55:34 isode Rel $
 *
 * Based on an TCP-based implementation by George Michaelson of University
 * College London.
 *
 *
 * $Log:	rosapwait.c,v $
 * Revision 8.0  91/07/17  12:55:34  isode
 * Release 7.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 "ropkt.h"

/*    RO-WAIT.REQUEST (pseudo) */

int	RoWaitRequest (sd, secs, roi)
int	sd;
int	secs;
struct RoSAPindication *roi;
{
    SBV	    smask;
    int     result;
    register struct assocblk   *acb;

    missingP (roi);

    smask = sigioblock ();

    rosapXsig (acb, sd);

    result =  (*acb -> acb_rowaitrequest) (acb, NULLIP, secs, roi);

    (void) sigiomask (smask);

    return result;
}
