[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

DupLockFromFH

Gets a lock on an open file

Declaration

Source position: amigados.pas line 2305

function DupLockFromFH(

  Lock: BPTR

):BPTR;

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: 2017-01-10