Copyright clean-up (part 1):
[AROS.git] / arch / all-hosted / hostlib / open.c
blob8398d63945ef7553b086fcd5c23afe4f8b4fe56a
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/hostlib.h>
9 #include <stdarg.h>
11 #include "hostinterface.h"
12 #include "hostlib_intern.h"
14 AROS_LH2(void *, HostLib_Open,
15 AROS_LHA(const char *, filename, A0),
16 AROS_LHA(char **, error, A1),
17 struct HostLibBase *, HostLibBase, 1, HostLib)
19 AROS_LIBFUNC_INIT
21 void *ret;
23 HOSTLIB_LOCK();
25 ret = HostLibBase->HostIFace->hostlib_Open(filename, error);
26 AROS_HOST_BARRIER
28 HOSTLIB_UNLOCK();
30 return ret;
32 AROS_LIBFUNC_EXIT