Lines Matching defs:fl
76 struct flock fl;
78 fl.l_type = (fLock & RTFILE_LOCK_WRITE) ? F_WRLCK : F_RDLCK;
79 fl.l_whence = SEEK_SET;
80 fl.l_start = (off_t)offLock;
81 fl.l_len = (off_t)cbLock;
82 fl.l_pid = 0;
85 if (fcntl(RTFileToNative(hFile), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
143 struct flock fl;
144 fl.l_type = F_UNLCK;
145 fl.l_whence = SEEK_SET;
146 fl.l_start = (off_t)offLock;
147 fl.l_len = (off_t)cbLock;
148 fl.l_pid = 0;
150 if (fcntl(RTFileToNative(hFile), F_SETLK, &fl) >= 0)