unlock() Release File-Sharing Locks
#include <dos.h>
int unlock(handle,offset,length);
int handle; Handle associated with file
long offset; Address of area to be unlocked
long length; Length of area to be unlocked
unlock() unlocks 'length' bytes of the file associated with 'handle'.
Unlocking a file permits other processes to read or write to
previously locked bytes. To avoid error, lock() must be removed
before a file is closed. A program must release all locks before
completing.
Returns: 0 is returned on success; -1 is returned on error.
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster