]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libthread/ioreadn.c
authsrv: get rid of needreply parameter by changing vnc protocol handler
[plan9front.git] / sys / src / libthread / ioreadn.c
1 #include <u.h>
2 #include <libc.h>
3 #include <thread.h>
4 #include "threadimpl.h"
5
6 static long
7 _ioreadn(va_list *arg)
8 {
9         int fd;
10         void *a;
11         long n;
12
13         fd = va_arg(*arg, int);
14         a = va_arg(*arg, void*);
15         n = va_arg(*arg, long);
16         return readn(fd, a, n);
17 }
18
19 long
20 ioreadn(Ioproc *io, int fd, void *a, long n)
21 {
22         return iocall(io, _ioreadn, fd, a, n);
23 }