Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 601 Bytes

SameDevice.md

File metadata and controls

29 lines (18 loc) · 601 Bytes

NAME

SameDevice -- Are two locks are on partitions of the device? (V37)

SYNOPSIS

    same = SameDevice(lock1, lock2)
    D0                 D1     D2

    BOOL SameDevice( BPTR, BPTR )

FUNCTION

SameDevice() returns whether two locks refer to partitions that are on the same physical device (if it can figure it out). This may be useful in writing copy routines to take advantage of asynchronous multi-device copies.

Entry existed in V36 and always returned 0.

INPUTS

lock1,lock2 - locks

RESULT same - whether they're on the same device as far as Dos can determine.