Lines Matching defs:lock
194 struct flock lock;
209 lock.l_type = F_WRLCK;
210 lock.l_whence = SEEK_SET;
211 lock.l_start = 0;
212 lock.l_len = 0;
214 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) {
225 struct flock lock;
227 lock.l_type = F_UNLCK;
228 lock.l_whence = SEEK_SET;
229 lock.l_start = 0;
230 lock.l_len = 0;
232 if (fcntl(lock_fd, F_SETLK, &lock) == -1)