2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: Lock the directory a file is located in
9 #include <aros/debug.h>
10 #include "dos_intern.h"
11 #include <dos/dosasl.h>
12 #include <proto/exec.h>
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH1(BPTR
, ParentOfFH
,
22 AROS_LHA(BPTR
, fh
, D1
),
25 struct DosLibrary
*, DOSBase
, 64, Dos
)
28 Lock the directory a file is located in.
31 fh - Filehandle of which you want to obtain the parent
34 lock - Lock on the parent directory of the filehandle or
44 Lock(), UnLock(), ParentDir()
48 *****************************************************************************/
52 struct FileHandle
*handle
= BADDR(fh
);
53 D(bug("[ParentOfFH] fh=%x\n", handle
));
54 return (BPTR
)dopacket1(DOSBase
, NULL
, handle
->fh_Type
, ACTION_PARENT_FH
, handle
->fh_Arg1
);