|
|
1.1 root 1: /* rtsapasync.c - RTPM: set asynchronous events */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/rtsap/RCS/rtsapasync.c,v 6.0 89/03/18 23:43:26 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/rtsap/RCS/rtsapasync.c,v 6.0 89/03/18 23:43:26 mrose Rel $
9: *
10: *
11: * $Log: rtsapasync.c,v $
12: * Revision 6.0 89/03/18 23:43:26 mrose
13: * Release 5.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include <stdio.h>
31: #include <signal.h>
32: #include "rtpkt.h"
33:
34: /* define vectors for INDICATION events */
35:
36: int RtSetIndications (sd, indication, rti)
37: int sd;
38: IFP indication;
39: struct RtSAPindication *rti;
40: {
41: SBV smask;
42: int result;
43: register struct assocblk *acb;
44:
45: smask = sigioblock ();
46:
47: rtsapPsig (acb, sd);
48:
49: if (acb -> acb_flags & ACB_PLEASE) {
50: (void) sigiomask (smask);
51:
52: return rtsaplose (rti, RTS_WAITING, NULLCP, NULLCP);
53: }
54:
55: result = (*acb -> acb_rtsetindications) (acb, indication, rti);
56:
57: (void) sigiomask (smask);
58:
59: return result;
60: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.