|
|
1.1 root 1: \File{ryinit\-invoke.c},{22:23},{Jun 12 1988}
2: \L{\LB{...}}
3: \L{\LB{}}
4: \L{\LB{ \K{int}}\Tab{8}{ result,}}
5: \L{\LB{}\Tab{8}{ response;}}
6: \L{\LB{ \K{struct} type\_MODULE\_argument *arg;}}
7: \L{\LB{ caddr\_t out;}}
8: \L{\LB{ \K{struct} RoSAPindication rois;}}
9: \L{\LB{ \K{register} \K{struct} RoSAPindication *roi = \&rois;}}
10: \L{\LB{ \K{register} \K{struct} RoSAPpreject *rop = \&roi \-\> roi\_preject;}}
11: \L{\LB{}}
12: \L{\LB{ \C{}\/* allocate and initialize ``arg\'\' here... *\/\CE{}}}
13: \L{\LB{}}
14: \L{\LB{\Proc{switch} \K{switch} (result = op\_MODULE\_operation (sd, arg, \&out, \&response, roi)) \{}}
15: \L{\LB{}\Tab{8}{\K{case} NOTOK:}\Tab{32}{\C{}\/* failure *\/\CE{}}}
16: \L{\LB{}\Tab{8}{ \K{if} (ROS\_FATAL (rop \-\> rop\_reason))}}
17: \L{\LB{}\Tab{16}{ros\_adios (rop, \S{}\"OPERATION\"\SE{});}}
18: \L{\LB{}\Tab{8}{ ros\_advise (rop, \S{}\"OPERATION\"\SE{});}}
19: \L{\LB{}\Tab{8}{ \K{break};}}
20: \L{\LB{}}
21: \L{\LB{}\Tab{8}{\K{case} OK:}\Tab{32}{\C{}\/* got a result\/error response *\/\CE{}}}
22: \L{\LB{}\Tab{8}{ \K{switch} (response) \{}}
23: \L{\LB{}\Tab{16}{\K{case} RY\_RESULT:}\Tab{32}{\C{}\/* got a result *\/\CE{}}}
24: \L{\LB{}\Tab{16}{ \{}}
25: \L{\LB{}\Tab{24}{\K{register} \K{struct} type\_MODULE\_result *res =}}
26: \L{\LB{}\Tab{32}{ (\K{struct} type\_MODULE\_result *) out;}}
27: \L{\LB{}}
28: \L{\LB{\C{}\/* do something with ``res\'\' here... *\/\CE{}}}
29: \L{\LB{}}
30: \L{\LB{}\Tab{24}{free\_MODULE\_result (res);}}
31: \L{\LB{}\Tab{24}{\K{break};}}
32: \L{\LB{}\Tab{16}{ \}}}
33: \L{\LB{}\Tab{8}{}}
34: \L{\LB{}\Tab{16}{\K{case} error\_MODULE\_error1:}}
35: \L{\LB{}\Tab{16}{ \{}}
36: \L{\LB{}\Tab{24}{\K{register} \K{struct} type\_MODULE\_parameter *parm =}}
37: \L{\LB{}\Tab{32}{ (\K{struct} type\_MODULE\_parameter *) out;}}
38: \L{\LB{}}
39: \L{\LB{\C{}\/* do something with ``parm\'\' here... *\/\CE{}}}
40: \L{\LB{}}
41: \L{\LB{}\Tab{24}{free\_MODULE\_parameter (parm);}}
42: \L{\LB{}\Tab{24}{\K{break};}}
43: \L{\LB{}\Tab{16}{ \}}}
44: \L{\LB{}}
45: \L{\LB{}\Tab{16}{\C{}\/* other errors are handled here... *\/\CE{}}}
46: \L{\LB{}}
47: \L{\LB{}\Tab{16}{\K{default}:}}
48: \L{\LB{}\Tab{16}{ adios (NULLCP, \S{}\"unknown result\/error returned (\%d)\"\SE{},}}
49: \L{\LB{}\Tab{32}{response);}}
50: \L{\LB{}\Tab{16}{ \C{}\/* NOTREACHED *\/\CE{}}}
51: \L{\LB{}\Tab{8}{ \}}}
52: \L{\LB{}\Tab{8}{ \K{break};}}
53: \L{\LB{}}
54: \L{\LB{}\Tab{8}{\K{case} DONE:}\Tab{32}{\C{}\/* got RO\-END? *\/\CE{}}}
55: \L{\LB{}\Tab{8}{ adios (NULLCP, \S{}\"got RO\-END.INDICATION\"\SE{});}}
56: \L{\LB{}\Tab{8}{ \C{}\/* NOTREACHED *\/\CE{}}}
57: \L{\LB{}}
58: \L{\LB{}\Tab{8}{\K{default}:}}
59: \L{\LB{}\Tab{8}{ adios (NULLCP, \S{}\"unknown return from RyOperation=\%d\"\SE{}, result);}}
60: \L{\LB{}\Tab{8}{ \C{}\/* NOTREACHED *\/\CE{}}}
61: \L{\LB{ \}}}
62: \L{\LB{}}
63: \L{\LB{ free\_MODULE\_argument (arg);}}
64: \L{\LB{}}
65: \L{\LB{...}}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.