plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

suncall.c (257B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <thread.h>
      4 #include <sunrpc.h>
      5 
      6 void
      7 suncallsetup(SunCall *c, SunProg *prog, uint proc)
      8 {
      9 	c->rpc.prog = prog->prog;
     10 	c->rpc.vers = prog->vers;
     11 	c->rpc.proc = proc>>1;
     12 	c->rpc.iscall = !(proc&1);
     13 	c->type = proc;
     14 }