|
|
1.1 ! root 1: \File{grind2b\-2.c},{14:12},{Feb 14 1990} ! 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{\K{int}}\Tab{8}{ros\_indication ();}} ! 8: \L{\LB{}} ! 9: \L{\LB{}} ! 10: \L{\LB{\Proc{main}main (argc, argv, envp)}} ! 11: \L{\LB{\K{int}}\Tab{8}{argc;}} ! 12: \L{\LB{\K{char} **argv,}} ! 13: \L{\LB{ **envp;}} ! 14: \L{\LB{\{}} ! 15: \L{\LB{ \K{int}}\Tab{8}{ result,}} ! 16: \L{\LB{}\Tab{8}{ sd;}} ! 17: \L{\LB{ \K{struct} AcSAPstart acss;}} ! 18: \L{\LB{ \K{register} \K{struct} AcSAPstart *acs = \&acss;}} ! 19: \L{\LB{ \K{struct} AcSAPindication acis;}} ! 20: \L{\LB{ \K{register} \K{struct} AcSAPindication *aci = \&acis;}} ! 21: \L{\LB{ \K{register} \K{struct} AcSAPabort *aca = \&aci \-\> aci\_abort;}} ! 22: \L{\LB{ \K{register} \K{struct} PSAPstart *ps = \&acs \-\> acs\_start;}} ! 23: \L{\LB{ \K{struct} RoSAPindication rois;}} ! 24: \L{\LB{ \K{register} \K{struct} RoSAPindication *roi = \&rois;}} ! 25: \L{\LB{ \K{register} \K{struct} RoSAPpreject *rop = \&roi \-\> roi\_preject;}} ! 26: \L{\LB{}} ! 27: \L{\LB{ \K{if} (AcInit (argc, argv, acs, aci) == NOTOK)}} ! 28: \L{\LB{}\Tab{8}{error (\S{}\"initialization fails: \%s\"\SE{}, AcErrString (aca \-\> aca\_reason));}} ! 29: \L{\LB{}} ! 30: \L{\LB{ sd = acs \-\> acs\_sd;}} ! 31: \L{\LB{ ACSFREE (acs);}} ! 32: \L{\LB{ }} ! 33: \L{\LB{\C{}\/* read command line arguments here... *\/\CE{}}} ! 34: \L{\LB{}} ! 35: \L{\LB{ \K{if} (AcAssocResponse (sd, ACS\_ACCEPT, ACS\_USER\_NULL, NULLOID, NULLAEI,}} ! 36: \L{\LB{}\Tab{16}{\&ps \-\> ps\_called, NULLPC, ps \-\> ps\_defctxresult,}} ! 37: \L{\LB{}\Tab{16}{ps \-\> ps\_prequirements, ps \-\> ps\_srequirements,}} ! 38: \L{\LB{}\Tab{16}{SERIAL\_NONE, ps \-\> ps\_settings, \&ps \-\> ps\_connect,}} ! 39: \L{\LB{}\Tab{16}{NULLPEP, 0, aci) == NOTOK)}} ! 40: \L{\LB{}\Tab{8}{error (\S{}\"A\-ASSOCIATE.RESPONSE: \%s\"\SE{}, AcErrString (aca \-\> aca\_reason));}} ! 41: \L{\LB{}} ! 42: \L{\LB{ \K{if} (RoSetService (sd, RoPService, roi) == NOTOK)}} ! 43: \L{\LB{}\Tab{8}{error (\S{}\"RoSetService: \%s\"\SE{}, RoErrString (rop \-\> rop\_reason));}} ! 44: \L{\LB{}} ! 45: \L{\LB{ \K{if} (RoSetIndications (sd, ros\_indication, roi) == NOTOK)}} ! 46: \L{\LB{}\Tab{8}{error (\S{}\"RoSetIndications: \%s\"\SE{}, RoErrString (rop \-\> rop\_reason));}} ! 47: \L{\LB{}} ! 48: \L{\LB{ \K{for} (;;)}} ! 49: \L{\LB{}\Tab{8}{pause ();}} ! 50: \L{\LB{\}}}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.