BSD 4_3_Net_2 release
[unix-history] / usr / src / contrib / isode / rosap / rosapwait.c
CommitLineData
9e8e5516
C
1/* rosapwait.c - ROPM: wait for an indication */
2
3#ifndef lint
4static char *rcsid = "$Header: /f/osi/rosap/RCS/rosapwait.c,v 7.1 91/02/22 09:41:39 mrose Interim $";
5#endif
6
7/*
8 * $Header: /f/osi/rosap/RCS/rosapwait.c,v 7.1 91/02/22 09:41:39 mrose Interim $
9 *
10 * Based on an TCP-based implementation by George Michaelson of University
11 * College London.
12 *
13 *
14 * $Log: rosapwait.c,v $
15 * Revision 7.1 91/02/22 09:41:39 mrose
16 * Interim 6.8
17 *
18 * Revision 6.0 89/03/18 23:42:33 mrose
19 * Release 5.0
20 *
21 */
22
23/*
24 * NOTICE
25 *
26 * Acquisition, use, and distribution of this module and related
27 * materials are subject to the restrictions of a license agreement.
28 * Consult the Preface in the User's Manual for the full terms of
29 * this agreement.
30 *
31 */
32
33
34/* LINTLIBRARY */
35
36#include <stdio.h>
37#include <signal.h>
38#include "ropkt.h"
39
40/* \f RO-WAIT.REQUEST (pseudo) */
41
42int RoWaitRequest (sd, secs, roi)
43int sd;
44int secs;
45struct RoSAPindication *roi;
46{
47 SBV smask;
48 int result;
49 register struct assocblk *acb;
50
51 missingP (roi);
52
53 smask = sigioblock ();
54
55 rosapXsig (acb, sd);
56
57 result = (*acb -> acb_rowaitrequest) (acb, NULLIP, secs, roi);
58
59 (void) sigiomask (smask);
60
61 return result;
62}