Fix for the (stupid) case of app (always) passing
[tangerine.git] / rom / dos / openfromlock.c
blobef7120c03366f53ce19ad97c3d30f9e6d9ea8b09
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Open a file from a lock
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include <dos/dosextens.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH1(BPTR, OpenFromLock,
18 /* SYNOPSIS */
19 AROS_LHA(BPTR, lock, D1),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 63, Dos)
24 /* FUNCTION
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.
28 INPUTS
29 lock - Lock to convert.
31 RESULT
32 New filehandle or 0 in case of an error. IoErr() will give
33 additional information in that case.
35 NOTES
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.
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
51 AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
53 /* Warning: Some very tricky operation ahead ;-). */
54 return lock;
55 AROS_LIBFUNC_EXIT
56 } /* OpenFromLock */