diff options
| author | rsc <devnull@localhost> | 2004-04-21 03:04:30 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-04-21 03:04:30 +0000 |
| commit | 551445b92c1f11d4f543e96790ff29762ab1ad10 (patch) | |
| tree | 5129ea4e5cc91ff823623b080540fedcfaa72786 /src/libsunrpc/suncall.c | |
| parent | fa256eecfaf035cd6c46335452357856dc0bd9e9 (diff) | |
| download | plan9port-551445b92c1f11d4f543e96790ff29762ab1ad10.tar.gz plan9port-551445b92c1f11d4f543e96790ff29762ab1ad10.zip | |
Add sunrpc.
Diffstat (limited to 'src/libsunrpc/suncall.c')
| -rw-r--r-- | src/libsunrpc/suncall.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libsunrpc/suncall.c b/src/libsunrpc/suncall.c new file mode 100644 index 00000000..d5af240b --- /dev/null +++ b/src/libsunrpc/suncall.c @@ -0,0 +1,14 @@ +#include <u.h> +#include <libc.h> +#include <thread.h> +#include <sunrpc.h> + +void +suncallsetup(SunCall *c, SunProg *prog, uint proc) +{ + c->rpc.prog = prog->prog; + c->rpc.vers = prog->vers; + c->rpc.proc = proc>>1; + c->rpc.iscall = !(proc&1); + c->type = proc; +} |
