xref: /plan9-contrib/sys/src/libthread/iosleep.c (revision a6a9e07217f318acf170f99684a55fba5200524f)
1 #include <u.h>
2 #include <libc.h>
3 #include <thread.h>
4 #include "threadimpl.h"
5 
6 static long
7 _iosleep(va_list *arg)
8 {
9 	long n;
10 
11 	n = va_arg(*arg, long);
12 	return sleep(n);
13 }
14 
15 int
16 iosleep(Ioproc *io, long n)
17 {
18 	return iocall(io, _iosleep, n);
19 }
20