2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: dos.library function DupLockFromFH()
9 #include <aros/debug.h>
10 #include <proto/exec.h>
11 #include "dos_intern.h"
13 /*****************************************************************************
16 #include <proto/dos.h>
18 AROS_LH1(BPTR
, DupLockFromFH
,
21 AROS_LHA(BPTR
, handle
, D1
),
24 struct DosLibrary
*, DOSBase
, 62, Dos
)
27 Clone a lock on a file or directory. This will only work on shared
34 The new lock or NULL in case of an error. IoErr() will give additional
35 information in that case.
47 *****************************************************************************/
51 struct FileHandle
*fh
= BADDR(handle
);
57 ret
= (BPTR
)dopacket1(DOSBase
, NULL
, fh
->fh_Type
, ACTION_COPY_DIR_FH
, fh
->fh_Arg1
);
58 D(bug("[DupLockFromFH] %x -> %x\n", fh
, BADDR(ret
)));