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_unix/sys/src/libthread/ioopen.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
_ioopen(va_list *arg)
8
{
9
	char *path;
10
	int mode;
11
 
12
	path = va_arg(*arg, char*);
13
	mode = va_arg(*arg, int);
14
	return open(path, mode);
15
}
16
 
17
int
18
ioopen(Ioproc *io, char *path, int mode)
19
{
20
	return iocall(io, _ioopen, path, mode);
21
}