|
|
1.1 root 1: /* ssapactchk.c - SPM: check activity constraints */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.0 89/11/23 22:25:21 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.0 89/11/23 22:25:21 mrose Rel $
9: *
10: *
11: * $Log: ssapactchk.c,v $
12: * Revision 7.0 89/11/23 22:25:21 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 "spkt.h"
32:
33: /* */
34:
35: int SDoActivityAux (sb, si, act, rls)
36: register struct ssapblk *sb;
37: register struct SSAPindication *si;
38: int act,
39: rls;
40: {
41: if (act) {
42: if (!(sb -> sb_requirements & SR_ACT_EXISTS))
43: return ssaplose (si, SC_OPERATION, NULLCP,
44: "activity management service unavailable");
45:
46: if (sb -> sb_flags & SB_Vact)
47: return ssaplose (si, SC_OPERATION, NULLCP, "activity in progress");
48: }
49: else
50: if (!(sb -> sb_requirements & SR_MAJ_EXISTS))
51: return ssaplose (si, SC_OPERATION, NULLCP,
52: "major synchronize service unavailable");
53:
54: if ((sb -> sb_requirements & SR_DAT_EXISTS)
55: && !(sb -> sb_owned & ST_DAT_TOKEN))
56: return ssaplose (si, SC_OPERATION, NULLCP,
57: "data token not owned by you");
58:
59: if ((sb -> sb_requirements & SR_MIN_EXISTS)
60: && !(sb -> sb_owned & ST_MIN_TOKEN))
61: return ssaplose (si, SC_OPERATION, NULLCP,
62: "minorsync not owned by you");
63:
64: if (act) {
65: if (!(sb -> sb_owned & ST_ACT_TOKEN))
66: return ssaplose (si, SC_OPERATION, NULLCP,
67: "activity token not owned by you");
68: }
69: else
70: if (!(sb -> sb_owned & ST_MAJ_TOKEN))
71: return ssaplose (si, SC_OPERATION, NULLCP,
72: "majorsync token not owned by you");
73:
74: if (rls)
75: if ((sb -> sb_requirements & SR_RLS_EXISTS)
76: && !(sb -> sb_owned & ST_RLS_TOKEN))
77: return ssaplose (si, SC_OPERATION, NULLCP,
78: "release token not owned by you");
79:
80: return OK;
81: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.