From e5888a1ffdae813d7575f5fb02275c6bb07e5199 Mon Sep 17 00:00:00 2001 From: Taru Karttunen Date: Wed, 30 Mar 2011 15:46:40 +0300 Subject: Import sources from 2011-03-30 iso image --- sys/src/libthread/ioopen.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 sys/src/libthread/ioopen.c (limited to 'sys/src/libthread/ioopen.c') diff --git a/sys/src/libthread/ioopen.c b/sys/src/libthread/ioopen.c new file mode 100755 index 000000000..9cec70464 --- /dev/null +++ b/sys/src/libthread/ioopen.c @@ -0,0 +1,21 @@ +#include +#include +#include +#include "threadimpl.h" + +static long +_ioopen(va_list *arg) +{ + char *path; + int mode; + + path = va_arg(*arg, char*); + mode = va_arg(*arg, int); + return open(path, mode); +} + +int +ioopen(Ioproc *io, char *path, int mode) +{ + return iocall(io, _ioopen, path, mode); +} -- cgit v1.2.3