2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Open a file from a lock
8 #include <proto/exec.h>
9 #include <dos/dosextens.h>
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH1(BPTR
, OpenFromLock
,
19 AROS_LHA(BPTR
, lock
, D1
),
22 struct DosLibrary
*, DOSBase
, 63, Dos
)
25 Convert a lock into a filehandle. If all went well the lock
26 will be gone. In case of an error it must still be freed.
29 lock - Lock to convert.
32 New filehandle or 0 in case of an error. IoErr() will give
33 additional information in that case.
36 Since locks and filehandles in AROS are identical this function
37 is just the (useless) identity operator and thus can never fail.
38 It's there for compatibility to Amiga OS.
48 *****************************************************************************/
51 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
53 /* Warning: Some very tricky operation ahead ;-). */