|
|
1.1 root 1: \File{grind2b\-4a.c},{22:23},{Jun 12 1988}
2: \L{\LB{\K{\#include} \<stdio.h\>}}
3: \L{\LB{\K{\#include} \S{}\"generic.h\"\SE{}}\Tab{32}{\C{}\/* defines OPERATIONS and ERRORS *\/\CE{}}}
4: \L{\LB{\K{\#include} \<isode\/rosap.h\>}}
5: \L{\LB{}}
6: \L{\LB{}}
7: \L{\LB{}\Tab{32}{\C{}\/* e.g., \"directory\" *\/\CE{}}}
8: \L{\LB{\K{static} \K{char} *myservice = \S{}\"service\"\SE{};}}
9: \L{\LB{}}
10: \L{\LB{}\Tab{32}{\C{}\/* e.g., \"directory services\" *\/\CE{}}}
11: \L{\LB{\K{static} \K{char} *mycontext = \S{}\"iso service\"\SE{};}}
12: \L{\LB{\K{static} \K{char} *mypci = \S{}\"service pci version m.n\"\SE{};}}
13: \L{\LB{}}
14: \L{\LB{}}
15: \L{\LB{\Proc{main}main (argc, argv, envp)}}
16: \L{\LB{\K{int}}\Tab{8}{argc;}}
17: \L{\LB{\K{char} **argv,}}
18: \L{\LB{ **envp;}}
19: \L{\LB{\{}}
20: \L{\LB{ \K{int}}\Tab{8}{ sd;}}
21: \L{\LB{ \K{struct} SSAPref sfs;}}
22: \L{\LB{ \K{register} \K{struct} SSAPref *sf;}}
23: \L{\LB{ \K{register} \K{struct} PSAPaddr *pa;}}
24: \L{\LB{ \K{struct} AcSAPconnect accs;}}
25: \L{\LB{ \K{register} \K{struct} AcSAPconnect *acc = \&accs;}}
26: \L{\LB{ \K{struct} AcSAPrelease acrs;}}
27: \L{\LB{ \K{register} \K{struct} AcSAPrelease *acr = \&acrs;}}
28: \L{\LB{ \K{struct} AcSAPindication acis;}}
29: \L{\LB{ \K{register} \K{struct} AcSAPindication *aci = \&acis;}}
30: \L{\LB{ \K{register} \K{struct} AcSAPabort *aca = \&aci \-\> aci\_abort;}}
31: \L{\LB{ \K{struct} RoSAPindication rois;}}
32: \L{\LB{ \K{register} \K{struct} RoSAPpreject *rop = \&rois.roi\_preject;}}
33: \L{\LB{ \K{register} AEI aei;}}
34: \L{\LB{ \K{register} OID ctx, pci;}}
35: \L{\LB{ \K{struct} PSAPctxlist pcs;}}
36: \L{\LB{ \K{register} \K{struct} PSAPctxlist *pc = \&pcs;}}
37: \L{\LB{}}
38: \L{\LB{ \K{if} ((aei = str2aei (argv[1], myservice)) == NULLAEI)}}
39: \L{\LB{}\Tab{8}{error (\S{}\"\%s\-\%s: unknown application\-entity\"\SE{}, argv[1], myservice);}}
40: \L{\LB{ \K{if} ((pa = aei2addr (aei)) == NULLPA)}}
41: \L{\LB{}\Tab{8}{error (\S{}\"address translation failed\"\SE{});}}
42: \L{\LB{ \K{if} ((ctx = ode2oid (mycontext)) == NULLOID)}}
43: \L{\LB{}\Tab{8}{error (\S{}\"\%s: unknown object descriptor\"\SE{}, mycontext);}}
44: \L{\LB{ \K{if} ((ctx = oid\_cpy (ctx)) == NULLOID)}}
45: \L{\LB{}\Tab{8}{error (\S{}\"oid\_cpy\"\SE{});}}
46: \L{\LB{ \K{if} ((pci = ode2oid (mypci)) == NULLOID)}}
47: \L{\LB{}\Tab{8}{error (\S{}\"\%s: unknown object descriptor\"\SE{}, mypci);}}
48: \L{\LB{ \K{if} ((pci = oid\_cpy (pci)) == NULLOID)}}
49: \L{\LB{}\Tab{8}{error (\S{}\"oid\_cpy\"\SE{});}}
50: \L{\LB{ pc \-\> pc\_nctx = 1;}}
51: \L{\LB{ pc \-\> pc\_ctx[0].pc\_id = 1;}}
52: \L{\LB{ pc \-\> pc\_ctx[0].pc\_asn = pci;}}
53: \L{\LB{ pc \-\> pc\_ctx[0].pc\_atn = NULLOID;}}
54: \L{\LB{}}
55: \L{\LB{...}}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.