aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/iodial.c
blob: 2e45cfe6291563f2b871026b48fabfe87eaa9fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "threadimpl.h"

static long
_iodial(va_list *arg)
{
	char *addr, *local, *dir;
	int *cdfp, fd;

	addr = va_arg(*arg, char*);
	local = va_arg(*arg, char*);
	dir = va_arg(*arg, char*);
	cdfp = va_arg(*arg, int*);

fprint(2, "before dial\n");
	fd = dial(addr, local, dir, cdfp);
fprint(2, "after dial\n");
	return fd;
}

int
iodial(Ioproc *io, char *addr, char *local, char *dir, int *cdfp)
{
	return iocall(io, _iodial, addr, local, dir, cdfp);
}