vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

chan.ed (936B)


      1 ,s!Lock;!Lock lk;!g
      2 /dumpmount/-1 s!static !/*static*/ !
      3 ,s!lock(r)!lock(\&r->lk)!g
      4 ,s!lock(\&chanalloc)!lock(\&chanalloc.lk)!g
      5 ,s!->ref!->ref.ref!g
      6 ,s!r->ref.ref!r->ref!g
      7 ,s!incref(pp->mtpt\[i\])!incref(\&pp->mtpt[i]->ref)!g
      8 ,s!ref(p)!ref(\&p->ref)!g
      9 ,s!ref(c)!ref(\&c->ref)!g
     10 ,s!ref(from)!ref(\&from->ref)!g
     11 g/^cl/ s/(void\*)/(void *v)/
     12 ,s!ref(c->path)!ref(\&c->path->ref)!g
     13 ,s!ref(m)!ref(\&m->ref)!g
     14 ,s!ref(m->mount->to)!ref(\&m->mount->to->ref)!g
     15 ,s!ref((\*mp)->from)!ref(\&(*mp)->from->ref)!g
     16 ,s!ref(path)!ref(\&path->ref)!g
     17 ,s!ref(cnew)!ref(\&cnew->ref)!g
     18 ,s!ref(cnew->path)!ref(\&cnew->path->ref)!g
     19 /^addelem/-1 s;static;/*static*/;
     20 /DBG("namec/i
     21 	if(tracesyscalls)
     22 		iprint("\tnamec %s\n", aname);
     23 .
     24 ,s/(ulong)name < KZERO/isuaddr(name)/
     25 /validaddr/d
     26 /ename = vmemchr(name, 0, (1<<16))/c
     27 		char *p;
     28 		uint t;
     29 		p = name;
     30 		t = BY2PG-((ulong)p&(BY2PG-1));
     31 		while((ename=vmemchr(p, 0, t)) == nil){
     32 			p += t;
     33 			t = BY2PG;
     34 		}
     35 .