Docs » Autodocs » dos.library » DupLockFromFH
DupLockFromFH -- Gets a lock on an open file (V36)
lock = DupLockFromFH(fh) D0 D1 BPTR DupLockFromFH(BPTR)
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.
fh - Opened file for which to obtain the lock
lock - Obtained lock or NULL for failure
DupLock(), Lock(), UnLock()
|