2 Copyright © 1995-2013, 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.
28 lock1, lock2 - locks to compare
31 DOSTRUE when locks are on the same device
43 *****************************************************************************/
47 struct FileLock
*fl1
, *fl2
;
49 if (lock1
== BNULL
|| lock2
== BNULL
)
52 fl1
= (struct FileLock
*)BADDR(lock1
);
53 fl2
= (struct FileLock
*)BADDR(lock2
);
55 if (fl1
->fl_Volume
== fl2
->fl_Volume
&& fl1
->fl_Task
== fl2
->fl_Task
)