2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: dos.library function DupLock()
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
, DupLock
,
21 AROS_LHA(BPTR
, lock
, D1
),
24 struct DosLibrary
*, DOSBase
, 16, 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 FileLock
*fl
= (struct FileLock
*)BADDR(lock
);
56 ret
= (BPTR
)dopacket1(DOSBase
, NULL
, fl
->fl_Task
, ACTION_COPY_DIR
, lock
);
57 D(bug("[DupLock] %x -> %x\n", fl
, BADDR(ret
)));