1.open the lock of;
unlock the door
2.set free or release
3.become unlocked;
The door unlocked from the inside
函数名: unlock 功 能: 解除文件共享锁 用 法: int unlock(int handle, long offset, long length); 程序例: #include #include #include #include #include #include int main(void) { int handle, status; long length; handle = sopen("c:\\autoexec.bat",O_RDONLY,SH_DENYNO,S_IREAD); if (handle < 0) { printf("sopen failed\n"); exit(1); } length = filelength(handle); status = lock(handl