ref: bc7d74f09b53c39ada4e73ce73c01c6c0928f9f4
dir: /sys/src/libthread/ioopen.c/
#include <u.h>
#include <libc.h>
#include <thread.h>
#include "threadimpl.h"
static long
_ioopen(va_list *arg)
{
char *path;
int mode;
path = va_arg(*arg, char*);
mode = va_arg(*arg, int);
return open(path, mode);
}
int
ioopen(Ioproc *io, char *path, int mode)
{
return iocall(io, _ioopen, path, mode);
}