Initial revision
This commit is contained in:
20
src/libthread/ioopen.c
Normal file
20
src/libthread/ioopen.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user