Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

DupLockFromFH

Gets a lock on an open file

Declaration

Source position: amigados.pas line 2261

function DupLockFromFH(

  Lock: Pointer

):Pointer;

Arguments

Lock

  

Opened file for which to obtain the lock

Function result

Obtained lock or 0 for failure

Description

Obtain a lock on the object associated with fh. Only works if the file was opened using a non-exclusive mode. Other restrictions may be placed on success by the filesystem.

See also

DupLock

  

Duplicate a lock

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file


Documentation generated on: 2021-07-30