Lines Matching defs:fl
75 struct flock fl;
77 fl.l_type = (fLock & RTFILE_LOCK_WRITE) ? F_WRLCK : F_RDLCK;
78 fl.l_whence = SEEK_SET;
79 fl.l_start = (off_t)offLock;
80 fl.l_len = (off_t)cbLock;
81 fl.l_pid = 0;
84 if (fcntl(RTFileToNative(hFile), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
120 struct flock fl;
121 fl.l_type = F_UNLCK;
122 fl.l_whence = SEEK_SET;
123 fl.l_start = (off_t)offLock;
124 fl.l_len = (off_t)cbLock;
125 fl.l_pid = 0;
127 if (fcntl(RTFileToNative(hFile), F_SETLK, &fl) >= 0)