Make sure __u64 is defined.
[AROS.git] / arch / all-hosted / hostlib / close.c
blob30081b9a664ab80606f98a43a704f166bbd8dc8a
1 #include <proto/exec.h>
2 #include <proto/hostlib.h>
4 #include <stdarg.h>
6 #include "hostinterface.h"
7 #include "hostlib_intern.h"
9 AROS_LH2(int, HostLib_Close,
10 AROS_LHA(void *, handle, A0),
11 AROS_LHA(char **, error, A1),
12 struct HostLibBase *, HostLibBase, 2, HostLib)
14 AROS_LIBFUNC_INIT
16 int ret;
18 HOSTLIB_LOCK();
20 ret = HostLibBase->HostIFace->hostlib_Close(handle, error);
21 AROS_HOST_BARRIER
23 HOSTLIB_UNLOCK();
25 return ret;
27 AROS_LIBFUNC_EXIT