2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
10 /*****************************************************************************
13 #include <proto/dos.h>
15 AROS_LH2(BOOL
, SameDevice
,
18 AROS_LHA(BPTR
, lock1
, D1
),
19 AROS_LHA(BPTR
, lock2
, D2
),
22 struct DosLibrary
*, DOSBase
, 164, Dos
)
40 *****************************************************************************/
44 struct FileHandle
*fh1
, *fh2
;
46 if (lock1
== NULL
|| lock2
== NULL
)
49 fh1
= (struct FileHandle
*)BADDR(lock1
);
50 fh2
= (struct FileHandle
*)BADDR(lock2
);
52 /* XXX this isn't enough. two filesystems of the same type are different
53 * "devices" but will have the same value for fh_Device. there's no good
54 * way to fix (the only bad way involves hoops with NameFromLock() */
55 if (fh1
->fh_Device
== fh2
->fh_Device
)