From c4aad41f81d7d756eb9866fb4bfac150dcf2573c Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 27 Oct 1999 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1999-10-27 --- mpc/trap.c | 6 +++--- port/devsdp.c | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/mpc/trap.c b/mpc/trap.c index a82a6decca8c2574a2a836a34f511224d01effa7..19a1819220c8391b8dc55c884609a5aafecfab6b 100644 --- a/mpc/trap.c +++ b/mpc/trap.c @@ -462,7 +462,7 @@ dumpregs(Ureg *ur) static void linkproc(void) { -print("linkproc %ulx\n", up); +//print("linkproc %ulx\n", up); spllo(); (*up->kpfun)(up->kparg); pexit("", 0); @@ -676,7 +676,7 @@ notify(Ureg* ur) ulong s, sp; Note *n; -print("***notify %ld\n", up->pid); +//print("***notify %ld\n", up->pid); if(up->procctl) procctl(up); @@ -753,7 +753,7 @@ noted(Ureg* ureg, ulong arg0) Ureg *nureg; ulong oureg, sp; -print("***noted\n"); +//print("***noted\n"); qlock(&up->debug); if(arg0!=NRSTR && !up->notified) { qunlock(&up->debug); diff --git a/port/devsdp.c b/port/devsdp.c index c4b363f3c8ac471c6ffabf5845053405783be06d..80fd1b9e40fc776d0c072fde44ea5657a47e4c83 100644 --- a/port/devsdp.c +++ b/port/devsdp.c @@ -330,7 +330,7 @@ static Algorithm authalg[] = static Algorithm compalg[] = { "null", 0, nullcompinit, - "thwack", 0, thwackcompinit, +// "thwack", 0, thwackcompinit, nil, 0, nil, }; @@ -340,6 +340,8 @@ sdpinit(void) { int i; Dirtab *dt; + + return; // setup dirtab with non directory entries for(i=0; i= Nfs) error("bad specification"); - c = devattach('T', spec); + c = devattach('E', spec); c->qid = (Qid){QID(0, Qtopdir)|CHDIR, 0}; c->dev = dev; @@ -556,6 +558,7 @@ sdpread(Chan *ch, void *a, long n, vlong off) return readstr(off, a, n, buf); case Qcontrol: b = readcontrol(sdp->conv[CONV(ch->qid)], n); +print("readcontrol asked %ld\n", n); if(b == nil) return 0; print("readcontrol asked %ld got %ld\n", n, BLEN(b)); @@ -905,7 +908,7 @@ sdpackproc(void *a) } Dev sdpdevtab = { - 'T', + 'E', "sdp", devreset, @@ -971,7 +974,7 @@ print("convsetstate %s -> %s\n", convstatename[c->state], convstatename[state]); break; case CRemoteClose: wakeup(&c->in.controlready); - convoconnect(c, ConReset, c->dialid, c->acceptid); +// convoconnect(c, ConReset, c->dialid, c->acceptid); break; case CClosed: wakeup(&c->in.controlready);