Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

DupLock

Duplicate a lock

Declaration

Source position: amigados.pas line 1670

function DupLock(

  lock: LongInt

):LongInt;

Arguments

lock

  

Lock to copy

Function result

Result 0 indicates an error.

Description

DupLock() is passed a shared filing system lock. This is the only way to obtain a duplicate of a lock... simply copying is not allowed.

Another lock to the same object is then returned. It is not possible to create a copy of a exclusive lock.

See also

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file

DupLockFromFH

  

Gets a lock on an open file

ParentOfFH

  

Returns a lock on the parent directory of a file


Documentation generated on: 2021-07-30