(C) 1998 AROS - The Amiga Research OS


NAME

ULONG CompareLock (Lock1 , Lock2)

LOCATION
In ArpBase at offset 76

SYNOPSIS
BPTR Lock1
BPTR Lock2

FUNCTION
This function may be used to determine if two file Locks obtained with the DOS Lock() function belong to the same file/object. Using this library call allows an application to avoid using private information; this call may be updated if/when a DOS Packet ACTION_COMPARE_LOCK is implemented.

INPUTS
D0 and D1 are Locks obtained with DOS Lock() RESULTS Return is in D0. If D0 is: 0 - Locks are identical 1 - Locks are on same Volume 2 - Locks are on different Volumes (dn_Task?) 3 - Locks are on different Volumes
Z
Flag reflects return status
RESULT

EXAMPLE
SEE ALSO

NOTES

BUGS
Caveat, this function now uses information that is considered "private" to each filehandler; thus, it is possible it will give an erroneous result if somebody implements a funny filehandler. This function was included primarily for the Rename program, to prevent Rename from creating directory loops that cause the directory to be lost in BCPL-space.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
28.03.1998 bergers
Some new functions.