|
|
1.1 root 1: /* acsapfindpci.c - find PCI for ACSE */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/acsap/RCS/acsapfindpci.c,v 7.0 89/11/23 21:21:49 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/acsap/RCS/acsapfindpci.c,v 7.0 89/11/23 21:21:49 mrose Rel $
9: *
10: *
11: * $Log: acsapfindpci.c,v $
12: * Revision 7.0 89/11/23 21:21:49 mrose
13: * Release 6.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: #define ACSE
33: #include "acpkt.h"
34:
35: /* */
36:
37: int AcFindPCI (sd, pci, aci)
38: int sd;
39: int *pci;
40: struct AcSAPindication *aci;
41: {
42: SBV smask;
43: register struct assocblk *acb;
44:
45: missingP (pci);
46: missingP (aci);
47:
48: smask = sigioblock ();
49:
50: if ((acb = findacblk (sd)) == NULL) {
51: (void) sigiomask (smask);
52: return acsaplose (aci, ACS_PARAMETER, NULLCP,
53: "invalid association descriptor");
54: }
55:
56: *pci = acb -> acb_id;
57:
58: (void) sigiomask (smask);
59:
60: return OK;
61: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.