/* ssapactchk.c - SPM: check activity constraints */
static char *rcsid
= "$Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.1 91/02/22 09:45:40 mrose Interim $";
* $Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.1 91/02/22 09:45:40 mrose Interim $
* Revision 7.1 91/02/22 09:45:40 mrose
* Revision 7.0 89/11/23 22:25:21 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
int SDoActivityAux (sb
, si
, act
, rls
)
register struct ssapblk
*sb
;
register struct SSAPindication
*si
;
if (!(sb
-> sb_requirements
& SR_ACT_EXISTS
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"activity management service unavailable");
if (sb
-> sb_flags
& SB_Vact
)
return ssaplose (si
, SC_OPERATION
, NULLCP
, "activity in progress");
if (!(sb
-> sb_requirements
& SR_MAJ_EXISTS
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"major synchronize service unavailable");
if ((sb
-> sb_requirements
& SR_DAT_EXISTS
)
&& !(sb
-> sb_owned
& ST_DAT_TOKEN
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"data token not owned by you");
if ((sb
-> sb_requirements
& SR_MIN_EXISTS
)
&& !(sb
-> sb_owned
& ST_MIN_TOKEN
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"minorsync not owned by you");
if (!(sb
-> sb_owned
& ST_ACT_TOKEN
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"activity token not owned by you");
if (!(sb
-> sb_owned
& ST_MAJ_TOKEN
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"majorsync token not owned by you");
if ((sb
-> sb_requirements
& SR_RLS_EXISTS
)
&& !(sb
-> sb_owned
& ST_RLS_TOKEN
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"release token not owned by you");