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
)
25 Checks if two locks are on the same device.
31 DOSTRUE when they are on the same device
43 *****************************************************************************/
47 struct FileHandle
*fh1
, *fh2
;
49 if (lock1
== NULL
|| lock2
== NULL
)
52 fh1
= (struct FileHandle
*)BADDR(lock1
);
53 fh2
= (struct FileHandle
*)BADDR(lock2
);
55 /* XXX this isn't enough. two filesystems of the same type are different
56 * "devices" but will have the same value for fh_Device. there's no good
57 * way to fix (the only bad way involves hoops with NameFromLock() */
58 if (fh1
->fh_Device
== fh2
->fh_Device
)