summaryrefslogtreecommitdiffstats
path: root/src/libsunrpc/suncall.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-21 03:04:30 +0000
committerrsc <devnull@localhost>2004-04-21 03:04:30 +0000
commit551445b92c1f11d4f543e96790ff29762ab1ad10 (patch)
tree5129ea4e5cc91ff823623b080540fedcfaa72786 /src/libsunrpc/suncall.c
parentfa256eecfaf035cd6c46335452357856dc0bd9e9 (diff)
downloadplan9port-551445b92c1f11d4f543e96790ff29762ab1ad10.tar.gz
plan9port-551445b92c1f11d4f543e96790ff29762ab1ad10.zip
Add sunrpc.
Diffstat (limited to 'src/libsunrpc/suncall.c')
-rw-r--r--src/libsunrpc/suncall.c14
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;
+}