suncall.c 257 B

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