ref: a30f99a4e64b55d80e9bd0d4485972a20bfa2a95
dir: /sys/src/libthread/ioclose.c/
#include <u.h>
#include <libc.h>
#include <thread.h>
#include "threadimpl.h"
static long
_ioclose(va_list *arg)
{
int fd;
fd = va_arg(*arg, int);
return close(fd);
}
int
ioclose(Ioproc *io, int fd)
{
return iocall(io, _ioclose, fd);
}