aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/ioclose.c
blob: fbaabb7c9e6341c711175a5e3655291cfb2ce25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);
}