Annotation of 43BSDReno/contrib/isode-beta/doc/manual/ryinit-async.tex, revision 1.1.1.1

1.1       root        1: \File{ryinit\-async.c},{22:23},{Jun 12 1988}
                      2: \L{\LB{...}}
                      3: \L{\LB{}}
                      4: \L{\LB{\K{int}}\Tab{8}{do\_result (), do\_error ();}}
                      5: \L{\LB{}}
                      6: \L{\LB{...}}
                      7: \L{\LB{}}
                      8: \L{\LB{    \K{int}}\Tab{8}{    result;}}
                      9: \L{\LB{    \K{struct} RoSAPindication rois;}}
                     10: \L{\LB{    \K{register} \K{struct} RoSAPindication *roi = \&rois;}}
                     11: \L{\LB{    \K{register} \K{struct} RoSAPpreject   *rop = \&roi \-\> roi\_preject;}}
                     12: \L{\LB{}}
                     13: \L{\LB{    \C{}\/* allocate and initialize ``arg\'\' here... *\/\CE{}}}
                     14: \L{\LB{}}
                     15: \L{\LB{    \K{switch} (result = stub\_MODULE\_operation (sd, RyGenID (sd), arg, do\_result,}}
                     16: \L{\LB{}\Tab{40}{    do\_error, ROS\_SYNC, roi)) \{}}
                     17: \L{\LB{}\Tab{8}{\K{case} NOTOK:}\Tab{32}{\C{}\/* failure *\/\CE{}}}
                     18: \L{\LB{}\Tab{8}{    \K{if} (ROS\_FATAL (rop \-\> rop\_reason))}}
                     19: \L{\LB{}\Tab{16}{ros\_adios (rop, \S{}\"STUB\"\SE{});}}
                     20: \L{\LB{}\Tab{8}{    ros\_advise (rop, \S{}\"STUB\"\SE{});}}
                     21: \L{\LB{}\Tab{8}{    \K{break};}}
                     22: \L{\LB{}}
                     23: \L{\LB{}\Tab{8}{\K{case} OK:}}
                     24: \L{\LB{}\Tab{8}{    \K{break};}}
                     25: \L{\LB{}}
                     26: \L{\LB{}\Tab{8}{\K{case} DONE:}\Tab{32}{\C{}\/* got RO\-END? *\/\CE{}}}
                     27: \L{\LB{}\Tab{8}{    adios (NULLCP, \S{}\"got RO\-END.INDICATION\"\SE{});}}
                     28: \L{\LB{}\Tab{8}{    \C{}\/* NOTREACHED *\/\CE{}}}
                     29: \L{\LB{}}
                     30: \L{\LB{}\Tab{8}{\K{default}:}}
                     31: \L{\LB{}\Tab{8}{    adios (NULLCP, \S{}\"unknown return from RyStub=\%d\"\SE{}, result);}}
                     32: \L{\LB{}\Tab{8}{    \C{}\/* NOTREACHED *\/\CE{}}}
                     33: \L{\LB{    \}}}
                     34: \L{\LB{}}
                     35: \L{\LB{    free\_MODULE\_argument (arg);}}
                     36: \L{\LB{}}
                     37: \L{\LB{...}}
                     38: \L{\LB{}}
                     39: \L{\LB{\Proc{do\_result}do\_result (sd, id, dummy, result, roi)}}
                     40: \L{\LB{\K{int}}\Tab{8}{sd;}}
                     41: \L{\LB{\K{int}}\Tab{8}{id,}}
                     42: \L{\LB{}\Tab{8}{dummy;}}
                     43: \L{\LB{\K{struct} type\_MODULE\_result *result;}}
                     44: \L{\LB{\K{struct} RoSAPindication *roi;}}
                     45: \L{\LB{\{}}
                     46: \L{\LB{    \C{}\/* do something with ``result\'\' here... *\/\CE{}}}
                     47: \L{\LB{}}
                     48: \L{\LB{    \C{}\/* ``result\'\' will be automatically free\'d when do\_result returns *\/\CE{}}}
                     49: \L{\LB{}}
                     50: \L{\LB{    \K{return} OK;}}
                     51: \L{\LB{\}}}
                     52: \L{\LB{}}
                     53: \L{\LB{...}}
                     54: \L{\LB{}}
                     55: \L{\LB{}}
                     56: \L{\LB{\Proc{do\_error}do\_error (sd, id, error, parameter, roi)}}
                     57: \L{\LB{\K{int}}\Tab{8}{sd;}}
                     58: \L{\LB{\K{int}}\Tab{8}{id,}}
                     59: \L{\LB{}\Tab{8}{error;}}
                     60: \L{\LB{caddr\_t parameter;}}
                     61: \L{\LB{\K{struct} RoSAPindication *roi;}}
                     62: \L{\LB{\{}}
                     63: \L{\LB{    \K{switch} (error) \{}}
                     64: \L{\LB{}\Tab{8}{\K{case} error\_MODULE\_error1:}}
                     65: \L{\LB{}\Tab{8}{\{}}
                     66: \L{\LB{}\Tab{8}{    \K{register} \K{struct} type\_MODULE\_parameter *parm =}}
                     67: \L{\LB{}\Tab{24}{    (\K{struct} type\_MODULE\_parameter *) parameter;}}
                     68: \L{\LB{}}
                     69: \L{\LB{}\Tab{8}{    \C{}\/* do something with ``parm\'\' here... *\/\CE{}}}
                     70: \L{\LB{}}
                     71: \L{\LB{}\Tab{8}{    \K{break};}}
                     72: \L{\LB{}\Tab{8}{\}}}
                     73: \L{\LB{}}
                     74: \L{\LB{}\Tab{8}{\C{}\/* other errors are handled here... *\/\CE{}}}
                     75: \L{\LB{}\Tab{8}{}}
                     76: \L{\LB{}}
                     77: \L{\LB{}\Tab{8}{\K{default}:}}
                     78: \L{\LB{}\Tab{8}{    adios (NULLCP, \S{}\"unknown error returned (\%d)\"\SE{}, error);}}
                     79: \L{\LB{}\Tab{8}{    \C{}\/* NOTREACHED *\/\CE{}}}
                     80: \L{\LB{    \}}}
                     81: \L{\LB{    }}
                     82: \L{\LB{    \C{}\/* ``parameter\'\' will be automatically free\'d when do\_error returns *\/\CE{}}}
                     83: \L{\LB{}}
                     84: \L{\LB{    \K{return} OK;}}
                     85: \L{\LB{\}}}
                     86: \L{\LB{}}
                     87: \L{\LB{...}}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.