Lines Matching defs:fl
173 struct flock *fl = ap->a_fl;
188 fl->l_type = F_UNLCK;
197 switch (fl->l_whence) {
205 start = fl->l_start;
222 (fl->l_start > 0 &&
223 size > (u_quad_t)(OFF_MAX - fl->l_start)))
225 start = size + fl->l_start;
229 LOCKF_DEBUG(0, "lf_advlock: unknown whence %d\n", fl->l_whence);
236 if (fl->l_len < 0) {
242 start += fl->l_len;
247 } else if (fl->l_len == 0)
250 oadd = fl->l_len - 1;
267 lock->lf_type = fl->l_type;
292 error = lf_getlock(lock, fl);
804 * fl Pointer to flock structure to receive
811 * *fl Contents modified to reflect the
815 * Notes: fl->l_pid will be (-1) for file locks and will only be set to
819 lf_getlock(struct lockf *lock, struct flock *fl)
829 fl->l_type = block->lf_type;
830 fl->l_whence = SEEK_SET;
831 fl->l_start = block->lf_start;
833 fl->l_len = 0;
835 fl->l_len = block->lf_end - block->lf_start + 1;
837 fl->l_pid = proc_pid((struct proc *)(block->lf_id));
839 fl->l_pid = -1;
841 fl->l_type = F_UNLCK;