#include <time.h>
#include "udanax.h"
#include "requests.h"
Include dependency graph for init.cxx:

Go to the source code of this file.
Functions | |
| void | putrequestfailed (Session *sess) |
| ??? | |
| void | finddocscontaining (Session *sess) |
| ??? | |
| void | copy (Session *sess) |
| ??? | |
| void | insert (Session *sess) |
| ??? | |
| void | createlink (Session *sess) |
| ??? | |
| void | followlink (Session *sess) |
| ??? | |
| void | retrievedocvspanset (Session *sess) |
| ??? | |
| void | rearrange (Session *sess) |
| ??? | |
| void | retrievev (Session *sess) |
| ??? | |
| void | findlinksfromtothree (Session *sess) |
| ??? | |
| void | findnumoflinksfromtothree (Session *sess) |
| ??? | |
| void | findnextnlinksfromtothree (Session *sess) |
| ??? | |
| void | navigateonht (Session *sess) |
| ??? | |
| void | showrelationof2versions (Session *sess) |
| ??? | |
| void | createnewdocument (Session *sess) |
| ??? | |
| void | createnewversion (Session *sess) |
| ??? | |
| void | retrievedocvspan (Session *sess) |
| ??? | |
| void | deletevspan (Session *sess) |
| ??? | |
| void | retrieveendsets (Session *sess) |
| ??? | |
| void | xaccount (Session *sess) |
| ??? | |
| void | createnode_or_account (Session *sess) |
| ??? | |
| void | myopen (Session *sess) |
| ??? | |
| void | myclose (Session *sess) |
| ??? | |
| void | quitxanadu (Session *sess) |
| ??? | |
| void | examine (Session *sess) |
| ??? | |
| void | showorgl (Session *sess) |
| ??? | |
| void | showenfilades (Session *sess) |
| ??? | |
| void | sourceunixcommand (Session *sess) |
| ??? | |
| void | nullfun (Session *sess) |
| ??? | |
| void | init (bool safe) |
| ??? | |
Variables | |
| FILE * | febelog |
| bool | isxumain |
| void(* | requestfns [NREQUESTS])(Session *sess) |
| long | nsessorcommand |
(to be defined)
Definition in file init.cxx.
|
|
??? (to be defined)
Definition at line 198 of file fns.cxx. References docopy(), getcopy(), putcopy(), putrequestfailed(), and typespecset. Referenced by init().
00199 : User's session context
00200 {
00201 IStreamAddr docisa, vsa;
00202 typespecset localspecset;
00203
00204 if (getcopy(sess, &docisa, &vsa, &localspecset) && docopy(sess, &docisa, &vsa, localspecset))
00205 putcopy(sess);
00206 else
00207 putrequestfailed(sess);
00208 }
|
|
|
??? (to be defined)
Definition at line 269 of file fns.cxx. References docreatelink(), getcreatelink(), putcreatelink(), putrequestfailed(), and typespecset. Referenced by init().
00270 : User's session context
00271 {
00272 IStreamAddr docisa, linkisa;
00273 typespecset fromspecset, tospecset, threespecset;
00274
00275 if (getcreatelink(sess, &docisa, &fromspecset, &tospecset, &threespecset)
00276 && docreatelink(sess, &docisa, fromspecset, tospecset, threespecset, &linkisa)) {
00277 putcreatelink(sess, &linkisa);
00278 } else
00279 putrequestfailed(sess);
00280 }
|
|
|
??? (to be defined)
Definition at line 504 of file fns.cxx. References docreatenewdocument(), getcreatenewdocument(), putcreatenewdocument(), and putrequestfailed(). Referenced by init().
00505 : User's session context
00506 {
00507 IStreamAddr newdocisa;
00508
00509 getcreatenewdocument();
00510 if (docreatenewdocument(sess, &newdocisa))
00511 putcreatenewdocument(sess, &newdocisa);
00512 else
00513 putrequestfailed(sess);
00514 }
|
|
|
??? (to be defined)
Definition at line 524 of file fns.cxx. References docreatenewversion(), getcreatenewversion(), putcreatenewversion(), and putrequestfailed(). Referenced by init().
00525 : User's session context
00526 {
00527 IStreamAddr originaldocisa, newdocisa;
00528
00529 if (getcreatenewversion(sess, &originaldocisa)
00530 && docreatenewversion(sess, &originaldocisa, &originaldocisa, &newdocisa))
00531 putcreatenewversion(sess, &newdocisa);
00532 else
00533 putrequestfailed(sess);
00534 }
|
|
|
??? (to be defined)
Definition at line 636 of file fns.cxx. References docreatenode_or_account(), getcreatenode_or_account(), putcreatenode_or_account(), and putrequestfailed(). Referenced by init().
00637 : User's session context
00638 {
00639 IStreamAddr t;
00640
00641 if (getcreatenode_or_account(sess, &t)
00642 && docreatenode_or_account(sess, &t)) {
00643 putcreatenode_or_account(sess, &t);
00644 } else {
00645 putrequestfailed(sess);
00646 }
00647 }
|
|
|
??? (to be defined)
Definition at line 573 of file fns.cxx. References dodeletevspan(), getdeletevspan(), L, and putdeletevspan(). Referenced by init().
00574 : User's session context
00575 { /* kluged unix version for speed */
00576 IStreamAddr docisa;
00577 typespan vspan;
00578
00579 (void)getdeletevspan(sess, &docisa, &vspan);
00580 putdeletevspan(sess);
00581 if (!dodeletevspan(sess, &docisa, &vspan))
00582 #ifndef DISTRIBUTION
00583 L("deletevspan failed \n");
00584 #else
00585 ;
00586 #endif
00587 }
|
|
|
??? (to be defined)
Definition at line 723 of file fns.cxx.
00724 : User's session context
00725 {
00726 #ifndef DISTRIBUTION
00727 char c;
00728 //UNUSED IStreamAddr orglisa;
00729 //UNUSED typeorgl orgl;
00730
00731 prompt(sess, "\nspanf (s), orgl (o) or istream (i) ? ");
00732 c = getc(sess->inp);
00733 if (c != '\n')
00734 getc(sess->inp);
00735
00736 L("\n");
00737 switch (c) {
00738 case 'i':
00739 showistream((typecuc *) granf);
00740 break;
00741 case 's':
00742 showspanf((typecuc *) spanf);
00743 break;
00744
00745 case 'o':
00746 /* prompt (sess, "orgl isa => "); if (!( gettumbler (sess, &orglisa) && findorgl (sess, granf, &orglisa,
00747 * &orgl,READBERT))) { L(sess->errp, "\nnot found\n"); } else { showspanf (orgl); } */
00748 showorgl(sess);
00749 break;
00750
00751 default:
00752 return;
00753 }
00754 #endif
00755 }
|
|
|
??? (to be defined)
Definition at line 178 of file fns.cxx. References dofinddocscontaining(), getfinddocscontaining(), putfinddocscontaining(), putrequestfailed(), typeitemset, typelinkset, and typespecset. Referenced by init().
00179 : User's session context
00180 {
00181 typespecset specset;
00182 typelinkset addressset;
00183
00184 if (getfinddocscontaining(sess, &specset) && dofinddocscontaining(sess, specset, &addressset))
00185 putfinddocscontaining(sess, (typeitemset) addressset);
00186 else
00187 putrequestfailed(sess);
00188 }
|
|
|
??? (to be defined)
Definition at line 382 of file fns.cxx. References dofindlinksfromtothree(), getfindlinksfromtothree(), NULL, putfindlinksfromtothree(), putrequestfailed(), typeispan, typeispanset, typelinkset, and typespecset. Referenced by init().
00383 : User's session context
00384 {
00385 typespecset fromvspecset, tovspecset, threevspecset;
00386 typeispanset homeset;
00387 typelinkset linkset;
00388
00389 if (getfindlinksfromtothree(sess, &fromvspecset, &tovspecset, &threevspecset, &homeset)
00390 && dofindlinksfromtothree(sess, fromvspecset, tovspecset, threevspecset, (typeispan *) NULL /* homeset */ ,
00391 &linkset))
00392 putfindlinksfromtothree(sess, linkset);
00393 else
00394 putrequestfailed(sess);
00395 }
|
|
|
??? (to be defined)
Definition at line 427 of file fns.cxx. References dofindnextnlinksfromtothree(), getfindnextnlinksfromtothree(), putfindnextnlinksfromtothree(), putrequestfailed(), typeispanset, typelinkset, and typespecset. Referenced by init().
00428 : User's session context
00429 {
00430 typespecset fromvspecset, tovspecset, threevspecset;
00431 typeispanset homeset;
00432 IStreamAddr lastlink;
00433 typelinkset nextlinkset;
00434 int n;
00435
00436 if (getfindnextnlinksfromtothree(sess, &fromvspecset, &tovspecset, &threevspecset, &homeset, &lastlink, &n)
00437 && dofindnextnlinksfromtothree(sess, (typevspec *) fromvspecset, (typevspec *) tovspecset, (typevspec *) threevspecset, homeset, &lastlink,
00438 &nextlinkset, &n))
00439 putfindnextnlinksfromtothree(sess, n, nextlinkset);
00440 else
00441 putrequestfailed(sess);
00442 }
|
|
|
??? (to be defined)
Definition at line 405 of file fns.cxx. References dofindnumoflinksfromtothree(), getfindnumoflinksfromtothree(), putfindnumoflinksfromtothree(), putrequestfailed(), typeispanset, and typespecset. Referenced by init().
00406 : User's session context
00407 {
00408 typespecset fromvspecset, tovspecset, threevspecset;
00409 typeispanset homeset;
00410 int numberoflinks;
00411
00412 if (getfindnumoflinksfromtothree(sess, &fromvspecset, &tovspecset, &threevspecset, &homeset)
00413 && dofindnumoflinksfromtothree(sess, (typespec **) fromvspecset, (typespec **) tovspecset, (typespec **) threevspecset, homeset, &numberoflinks))
00414 putfindnumoflinksfromtothree(sess, numberoflinks);
00415 else
00416 putrequestfailed(sess);
00417 }
|
|
|
??? (to be defined)
Definition at line 290 of file fns.cxx. References dofollowlink(), getfollowlink(), putfollowlink(), putrequestfailed(), and typespecset. Referenced by init().
00291 : User's session context
00292 {
00293 IStreamAddr linkisa;
00294 typespecset specset;
00295 int whichend;
00296
00297 if (getfollowlink(sess, &linkisa, &whichend)
00298 && dofollowlink(sess, &linkisa, &specset, whichend)) {
00299 putfollowlink(sess, specset);
00300 } else
00301 putrequestfailed(sess);
00302 }
|
|
|
|
??? (to be defined)
Definition at line 244 of file fns.cxx. References doinsert(), getinsert(), L, putinsert(), and typetextset. Referenced by init().
00245 : User's session context
00246 { /* cheating version for unix zzz */
00247 IStreamAddr docisa, vsa;
00248 typetextset textset;
00249
00250 getinsert(sess, &docisa, &vsa, &textset);
00251 putinsert(sess);
00252
00253 if (!doinsert(sess, &docisa, &vsa, textset))
00254 #ifndef DISTRIBUTION
00255 L("requestfailed in insert\n");
00256 #else
00257 ;
00258 #endif
00259 }
|
|
|
??? (to be defined)
Definition at line 679 of file fns.cxx. References doclose(), getclose(), putclose(), and putrequestfailed(). Referenced by init().
00680 : User's session context
00681 {
00682 IStreamAddr t;
00683
00684 if (getclose(sess, &t)
00685 && doclose(sess, &t)) {
00686 putclose(sess);
00687 } else {
00688 putrequestfailed(sess);
00689 }
00690 }
|
|
|
??? (to be defined)
Definition at line 657 of file fns.cxx. References doopen(), getopen(), putopen(), and putrequestfailed(). Referenced by init().
00658 : User's session context
00659 {
00660 IStreamAddr t, newt;
00661 int type, mode;
00662
00663 if (getopen(sess, &t, &type, &mode)
00664 && doopen(sess, &t, &newt, type, mode)) {
00665 putopen(sess, &newt);
00666 } else {
00667 putrequestfailed(sess);
00668 }
00669 }
|
|
|
??? (to be defined)
Definition at line 452 of file fns.cxx. References error(). Referenced by init().
00453 : User's session context
00454 {
00455 #ifndef DISTRIBUTION
00456 error(sess, "GACK ! (historical trace)\n");
00457 #endif
00458
00459 /*
00460 * IStreamAddr docisa, htisa; typehtpath turninginstructions; bool
00461 * getnavigateonht(); if (getnavigateonht(sess, &docisa, &htisa,
00462 * &turninginstructions)) donavigateonht(sess, &docisa, &htisa,
00463 * &turninginstructions); */
00464 }
|
|
|
??? (to be defined) Definition at line 121 of file init.cxx. References putrequestfailed(). Referenced by init().
00123 {
00124 putrequestfailed(sess);
00125 }
|
|
|
??? (to be defined)
Definition at line 610 of file put.cxx. References FAILFLAG, Session::outp, and xuputc(). Referenced by copy(), createlink(), createnewdocument(), createnewversion(), createnode_or_account(), finddocscontaining(), findlinksfromtothree(), findnextnlinksfromtothree(), findnumoflinksfromtothree(), followlink(), myclose(), myopen(), nullfun(), retrievedocvspan(), retrievedocvspanset(), retrieveendsets(), retrievev(), showrelationof2versions(), and xaccount().
00611 : User's session context
00612 {
00613 fprintf(sess->outp, "?\n");
00614 }
|
|
|
??? (to be defined)
Definition at line 700 of file fns.cxx. References backenddaemon, closeberts(), diskexit(), interfaceinput, putquitxanadu(), and QUIT. Referenced by init().
00701 : User's session context
00702 {
00703 putquitxanadu(sess);
00704
00705 if (!backenddaemon) {
00706 if (interfaceinput) {
00707 fprintf(interfaceinput, "%d~\n", QUIT);
00708 fclose(interfaceinput);
00709 }
00710 diskexit();
00711 } else
00712 closeberts(sess); /* Close all of the user's outstanding opens */
00713 }
|
|
|
??? (to be defined)
Definition at line 337 of file fns.cxx. References dorearrange(), getrearrange(), L, and putrearrange(). Referenced by init().
00338 : User's session context
00339 { /* speed hack for unix */
00340 IStreamAddr docisa;
00341 typecutseq cutseq;
00342
00343 (void)getrearrange(sess, &docisa, &cutseq);
00344 putrearrange(sess);
00345 if (!dorearrange(sess, &docisa, &cutseq))
00346 #ifndef DISTRIBUTION
00347 L("rearrange failed \n");
00348 #else
00349 ;
00350 #endif
00351 }
|
|
|
??? (to be defined)
Definition at line 544 of file fns.cxx. References doretrievedocvspan(), getretrievedocvspan(), putrequestfailed(), putretrievedocvspan(), and typevspan. Referenced by init().
00545 : User's session context
00546 {
00547 IStreamAddr docisa;
00548 typevspan vspan;
00549
00550 if (getretrievedocvspan(sess, &docisa)
00551 && doretrievedocvspan(sess, &docisa, &vspan))
00552 putretrievedocvspan(sess, &vspan);
00553 else
00554 putrequestfailed(sess);
00555 }
|
|
|
??? (to be defined)
Definition at line 312 of file fns.cxx. References doretrievedocvspanset(), getretrievedocvspanset(), putrequestfailed(), putretrievedocvspanset(), and typevspanset. Referenced by init().
00313 : User's session context
00314 {
00315 IStreamAddr docisa;
00316 typevspanset vspanset;
00317
00318 if (getretrievedocvspanset(sess, &docisa)
00319 && doretrievedocvspanset(sess, &docisa, &vspanset))
00320 putretrievedocvspanset(sess, &vspanset);
00321 else
00322 putrequestfailed(sess);
00323 }
|
|
|
??? (to be defined)
Definition at line 597 of file fns.cxx. References doretrieveendsets(), getretrieveendsets(), putrequestfailed(), putretrieveendsets(), and typespecset. Referenced by init().
00598 : User's session context
00599 {
00600 typespecset specset, fromset, toset, threeset;
00601
00602 if (getretrieveendsets(sess, &specset)
00603 && doretrieveendsets(sess, specset, &fromset, &toset, &threeset)) {
00604
00605 putretrieveendsets(sess, fromset, toset, threeset);
00606 } else
00607 putrequestfailed(sess);
00608 }
|
|
|
??? (to be defined)
Definition at line 361 of file fns.cxx. References doretrievev(), getretrievev(), putrequestfailed(), putretrievev(), typespecset, and typevstuffset. Referenced by init().
00362 : User's session context
00363 {
00364 typespecset specset;
00365 typevstuffset vstuffset;
00366
00367 if (getretrievev(sess, &specset)
00368 && doretrievev(sess, specset, &vstuffset))
00369 putretrievev(sess, &vstuffset);
00370 else
00371 putrequestfailed(sess);
00372 }
|
|
|
??? (to be defined)
Definition at line 790 of file fns.cxx.
00791 : User's session context
00792 {
00793 #ifndef DISTRIBUTION
00794 char c;
00795
00796 prompt(sess, "\ngranf (g), spanf (s) or orgl (o) ? ");
00797 c = getc(sess->inp);
00798 if (c != '\n')
00799 getc(sess->inp);
00800
00801 L("\n");
00802
00803 switch (c) {
00804 case 'o': showorgl(sess); break;
00805 case 'g': showsubtree((typecorecrumhedr *) granf); break;
00806 case 's': showsubtree((typecorecrumhedr *) spanf); break;
00807 default: break;
00808 }
00809 #endif
00810 }
|
|
|
??? (to be defined)
Definition at line 765 of file fns.cxx.
00766 : User's session context
00767 {
00768 #ifndef DISTRIBUTION
00769 typeorgl orgl;
00770 IStreamAddr orglisa;
00771
00772 prompt(sess, "orgl isa => ");
00773 if (!(gettumbler(sess, &orglisa)
00774 && findorgl(sess, granf, &orglisa, &orgl, READBERT))) {
00775 L("\nnot found\n");
00776 } else {
00777 showsubtree((typecorecrum *) orgl);
00778 }
00779 #endif
00780 }
|
|
|
??? (to be defined)
Definition at line 474 of file fns.cxx. References doshowrelationof2versions(), getshowrelationof2versions(), putrequestfailed(), putshowrelationof2versions(), typespanpairset, and typespecset. Referenced by init().
00475 : User's session context
00476 {
00477 typespecset version1, version2;
00478 typespanpairset relation;
00479
00480 if (getshowrelationof2versions(sess, &version1, &version2)
00481 && doshowrelationof2versions(sess, version1, version2, &relation))
00482 putshowrelationof2versions(sess, relation);
00483 else
00484 putrequestfailed(sess);
00485 }
|
|
|
??? (to be defined)
Definition at line 279 of file be.cxx. References assert, debug, doappend(), docreatenewdocument(), Session::free(), getmuchtext(), Session::inp, typetext::itemid, L, typetext::length, typetext::next, NULL, prompt(), putcreatenewdocument(), typetext::string, and TEXTID.
00280 : User's session context
00281 {
00282 }
|
|
|
??? (to be defined)
Definition at line 618 of file fns.cxx. References getxaccount(), player, putrequestfailed(), putxaccount(), and user. Referenced by init().
00619 : User's session context
00620 {
00621 if (getxaccount(sess, (IStreamAddr *) &(player[user].account))) {
00622 putxaccount(sess);
00623 } else {
00624 putrequestfailed(sess);
00625 }
00626 }
|
|
|
|
|
|
Definition at line 78 of file init.cxx. Referenced by findorgl(), and main(). |
|
|
|
|
|
Definition at line 79 of file init.cxx. Referenced by init(), validrequest(), and xanadu(). |
1.3.4