shithub: riscv

ref: 9a7ee3a47de9b15b79d83fb3c5590acbc63114b3
dir: /sys/src/libthread/ioclose.c/

View raw version
#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);
}