|
|
1.1 root 1: /* rydiscard.c - ROSY: discard invocation in progress */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/rosy/RCS/rydiscard.c,v 6.0 89/03/18 23:42:46 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/rosy/RCS/rydiscard.c,v 6.0 89/03/18 23:42:46 mrose Rel $
9: *
10: *
11: * $Log: rydiscard.c,v $
12: * Revision 6.0 89/03/18 23:42:46 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: /* */
42:
43: int do_response ();
44:
45: /* DISCARD */
46:
47: int RyDiscard (sd, id, roi)
48: int sd,
49: id;
50: struct RoSAPindication *roi;
51: {
52: register struct opsblk *opb;
53:
54: missingP (roi);
55:
56: if ((opb = findopblk (sd, id, OPB_INITIATOR)) == NULLOPB)
57: return rosaplose (roi, ROS_PARAMETER, NULLCP,
58: "invocation %d not in progress on association %d",
59: id, sd);
60:
61: opb -> opb_resfnx = opb -> opb_errfnx = do_response;
62:
63: return OK;
64: }
65:
66: /* */
67:
68: /* ARGSUSED */
69:
70: static int do_response (sd, id, dummy, value, roi)
71: int sd,
72: id,
73: dummy;
74: caddr_t value;
75: struct RoSAPindication *roi;
76: {
77: return OK;
78: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.