|
|
1.1 root 1: /* rydsureject.c - ROSY: reject invocation */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/rosy/RCS/rydsureject.c,v 6.0 89/03/18 23:42:51 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/rosy/RCS/rydsureject.c,v 6.0 89/03/18 23:42:51 mrose Rel $
9: *
10: *
11: * $Log: rydsureject.c,v $
12: * Revision 6.0 89/03/18 23:42:51 mrose
13: * Release 5.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 "rosy.h"
32:
33:
34: #define missingP(p) \
35: { \
36: if (p == NULL) \
37: return rosaplose (roi, ROS_PARAMETER, NULLCP, \
38: "mandatory parameter \"%s\" missing", "p"); \
39: }
40:
41: /* U-REJECT */
42:
43: int RyDsUReject (sd, id, reason, priority, roi)
44: int sd;
45: int id,
46: reason,
47: priority;
48: struct RoSAPindication *roi;
49: {
50: int result;
51: register struct opsblk *opb;
52:
53: missingP (roi);
54:
55: if ((opb = findopblk (sd, id, OPB_RESPONDER)) == NULLOPB)
56: return rosaplose (roi, ROS_PARAMETER, NULLCP,
57: "invocation %d not in progress on association %d",
58: id, sd);
59:
60: if ((result = RoURejectRequest (sd, &id, reason, priority, roi)) != NOTOK)
61: freeopblk (opb);
62:
63: return result;
64: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.