|
|
1.1 root 1: /* psapminor2.c - PPM: respond to minorsyncs */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/psap2/RCS/psapminor2.c,v 7.0 89/11/23 22:14:25 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/psap2/RCS/psapminor2.c,v 7.0 89/11/23 22:14:25 mrose Rel $
9: *
10: *
11: * $Log: psapminor2.c,v $
12: * Revision 7.0 89/11/23 22:14:25 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: #include "ppkt.h"
33:
34: /* P-MINOR-SYNC.RESPONSE */
35:
36: int PMinSyncResponse (sd, ssn, data, ndata, pi)
37: int sd;
38: long ssn;
39: int ndata;
40: PE *data;
41: struct PSAPindication *pi;
42: {
43: SBV smask;
44: int len,
45: result;
46: char *base,
47: *realbase;
48: register struct psapblk *pb;
49: struct SSAPindication sis;
50: register struct SSAPabort *sa = &sis.si_abort;
51:
52: toomuchP (data, ndata, NPDATA, "minorsync");
53: missingP (pi);
54:
55: smask = sigioblock ();
56:
57: psapPsig (pb, sd);
58:
59: if ((result = info2ssdu (pb, pi, data, ndata, &realbase, &base, &len,
60: "P-MINOR-SYNC user-data", PPDU_NONE)) != OK)
61: goto out2;
62:
63: if ((result = SMinSyncResponse (sd, ssn, base, len, &sis)) == NOTOK)
64: if (SC_FATAL (sa -> sa_reason))
65: (void) ss2pslose (pb, pi, "SMinSyncResponse", sa);
66: else {
67: (void) ss2pslose (NULLPB, pi, "SMinSyncResponse", sa);
68: goto out1;
69: }
70:
71: out2: ;
72: if (result == NOTOK)
73: freepblk (pb);
74: else
75: if (result == DONE)
76: result = NOTOK;
77: out1: ;
78: if (realbase)
79: free (realbase);
80: else
81: if (base)
82: free (base);
83:
84: (void) sigiomask (smask);
85:
86: return result;
87: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.