|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 2055 (0x807) Types: TextFile Names: »ssapactchk.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/ssap/ssapactchk.c«
/* ssapactchk.c - SPM: check activity constraints */ #ifndef lint static char *rcsid = "$Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.0 89/11/23 22:25:21 mrose Rel $"; #endif /* * $Header: /f/osi/ssap/RCS/ssapactchk.c,v 7.0 89/11/23 22:25:21 mrose Rel $ * * * $Log: ssapactchk.c,v $ * Revision 7.0 89/11/23 22:25:21 mrose * Release 6.0 * */ /* * NOTICE * * 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 * this agreement. * */ /* LINTLIBRARY */ #include <stdio.h> #include "spkt.h" /* \f */ int SDoActivityAux (sb, si, act, rls) register struct ssapblk *sb; register struct SSAPindication *si; int act, rls; { if (act) { 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"); } else 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 (act) { if (!(sb -> sb_owned & ST_ACT_TOKEN)) return ssaplose (si, SC_OPERATION, NULLCP, "activity token not owned by you"); } else if (!(sb -> sb_owned & ST_MAJ_TOKEN)) return ssaplose (si, SC_OPERATION, NULLCP, "majorsync token not owned by you"); if (rls) 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"); return OK; }