Lines Matching defs:fl
77 struct flock fl;
79 i_zero(&fl);
80 fl.l_type = lock_type;
81 fl.l_whence = SEEK_SET;
82 fl.l_start = 0;
83 fl.l_len = 0;
85 if (fcntl(lock_fd, F_GETLK, &fl) < 0 ||
86 fl.l_type == F_UNLCK || fl.l_pid == -1 || fl.l_pid == 0)
89 fl.l_type == F_RDLCK ? "READ" : "WRITE", (long)fl.l_pid);
195 struct flock fl;
197 fl.l_type = lock_type;
198 fl.l_whence = SEEK_SET;
199 fl.l_start = 0;
200 fl.l_len = 0;
202 ret = fcntl(fd, timeout_secs != 0 ? F_SETLKW : F_SETLK, &fl);