Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_fixcpp/sys/src/libthread/ioclose.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <thread.h>
4
#include "threadimpl.h"
5
 
6
static long
7
_ioclose(va_list *arg)
8
{
9
	int fd;
10
 
11
	fd = va_arg(*arg, int);
12
	return close(fd);
13
}
14
 
15
int
16
ioclose(Ioproc *io, int fd)
17
{
18
	return iocall(io, _ioclose, fd);
19
}